STK++ 0.9.13
STK::hidden::Traits< CAllocator< Type_, SizeRows_, SizeCols_, Orient_ > > Struct Template Reference

Specialization of Traits class for CAllocator. More...

#include <STK_CAllocator.h>

Public Types

enum  {
  structure_ , orient_ = Orient_ , sizeRows_ = SizeRows_ , sizeCols_ = SizeCols_ ,
  sizeProd_ = ProductSizeRowsBySizeCols<SizeRows_, SizeCols_>::prod_ , storage_ = Arrays::dense_
}
 
typedef Type_ Type
 
typedef RemoveConst< Type_ >::Type constTypeConst
 
typedef CAllocator< Type_, 1, SizeCols_, Orient_Row
 
typedef CAllocator< Type_, SizeRows_, 1, Orient_Col
 
typedef MemAllocator< Type_, sizeProd_Allocator
 Type of the base allocator allocating data.
 

Detailed Description

template<typename Type_, int SizeRows_, int SizeCols_, bool Orient_>
struct STK::hidden::Traits< CAllocator< Type_, SizeRows_, SizeCols_, Orient_ > >

Specialization of Traits class for CAllocator.

Definition at line 55 of file STK_CAllocator.h.

Member Typedef Documentation

◆ Allocator

template<typename Type_ , int SizeRows_, int SizeCols_, bool Orient_>
typedef MemAllocator<Type_, sizeProd_> STK::hidden::Traits< CAllocator< Type_, SizeRows_, SizeCols_, Orient_ > >::Allocator

Type of the base allocator allocating data.

Definition at line 77 of file STK_CAllocator.h.

◆ Col

template<typename Type_ , int SizeRows_, int SizeCols_, bool Orient_>
typedef CAllocator<Type_, SizeRows_, 1, Orient_> STK::hidden::Traits< CAllocator< Type_, SizeRows_, SizeCols_, Orient_ > >::Col

Definition at line 74 of file STK_CAllocator.h.

◆ Row

template<typename Type_ , int SizeRows_, int SizeCols_, bool Orient_>
typedef CAllocator<Type_, 1, SizeCols_, Orient_> STK::hidden::Traits< CAllocator< Type_, SizeRows_, SizeCols_, Orient_ > >::Row

Definition at line 73 of file STK_CAllocator.h.

◆ Type

template<typename Type_ , int SizeRows_, int SizeCols_, bool Orient_>
typedef Type_ STK::hidden::Traits< CAllocator< Type_, SizeRows_, SizeCols_, Orient_ > >::Type

Definition at line 57 of file STK_CAllocator.h.

◆ TypeConst

template<typename Type_ , int SizeRows_, int SizeCols_, bool Orient_>
typedef RemoveConst<Type_>::Type const& STK::hidden::Traits< CAllocator< Type_, SizeRows_, SizeCols_, Orient_ > >::TypeConst

Definition at line 58 of file STK_CAllocator.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Type_ , int SizeRows_, int SizeCols_, bool Orient_>
anonymous enum
Enumerator
structure_ 
orient_ 
sizeRows_ 
sizeCols_ 
sizeProd_ 
storage_ 

Definition at line 60 of file STK_CAllocator.h.

61 {
62 structure_ = (SizeRows_==1) ? (SizeCols_== 1) ? Arrays::number_ : Arrays::point_
63 : (SizeCols_== 1) ? Arrays::vector_
64 : (SizeRows_ == SizeCols_ && SizeRows_!= UnknownSize) ?
65 Arrays::square_ : Arrays::array2D_,
66 orient_ = Orient_,
67 sizeRows_ = SizeRows_,
68 sizeCols_ = SizeCols_,
69 sizeProd_ = ProductSizeRowsBySizeCols<SizeRows_, SizeCols_>::prod_,
70 storage_ = Arrays::dense_ // always dense
71 };
@ dense_
dense matrix/vector/array/expression
@ array2D_
general matrix/array/expression
@ number_
(1,1) matrix/vector/array/expression (like a number)
@ point_
row oriented vector/array/expression
@ vector_
column oriented vector/array/expression
@ square_
square matrix/array/expression
const int UnknownSize
This value means that an integer is not known at compile-time, and that instead the value is stored i...

The documentation for this struct was generated from the following file: