Fundamental Vector Reduction/Transformation Operator (RTOp) Interfaces  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Static Public Member Functions | List of all members
RTOpPack::PrimitiveTypeTraits< Scalar, ConcreteObj > Class Template Reference

A templated traits class for decomposing object into an array of primitive objects. More...

#include <RTOpPack_Types.hpp>

Public Types

typedef Scalar primitiveType
 

Static Public Member Functions

static int numPrimitiveObjs ()
 
static int numIndexObjs ()
 
static int numCharObjs ()
 
static void extractPrimitiveObjs (const Scalar &obj, const ArrayView< primitiveType > &primitiveObjs, const ArrayView< index_type > &indexObjs, const ArrayView< char > &charObjs)
 
static void loadPrimitiveObjs (const ArrayView< const primitiveType > &primitiveObjs, const ArrayView< const index_type > &indexObjs, const ArrayView< const char > &charObjs, const Ptr< Scalar > &obj)
 

Detailed Description

template<class Scalar, class ConcreteObj>
class RTOpPack::PrimitiveTypeTraits< Scalar, ConcreteObj >

A templated traits class for decomposing object into an array of primitive objects.

The idea behind this traits class it that it allows an object of semi-complex structure to be externalized into arrays of primitive data types.

This default traits class works just fine for types that are already primitive.

Definition at line 534 of file RTOpPack_Types.hpp.

Member Typedef Documentation

template<class Scalar, class ConcreteObj>
typedef Scalar RTOpPack::PrimitiveTypeTraits< Scalar, ConcreteObj >::primitiveType

Definition at line 537 of file RTOpPack_Types.hpp.

Member Function Documentation

template<class Scalar, class ConcreteObj>
static int RTOpPack::PrimitiveTypeTraits< Scalar, ConcreteObj >::numPrimitiveObjs ( )
inlinestatic

Definition at line 539 of file RTOpPack_Types.hpp.

template<class Scalar, class ConcreteObj>
static int RTOpPack::PrimitiveTypeTraits< Scalar, ConcreteObj >::numIndexObjs ( )
inlinestatic

Definition at line 542 of file RTOpPack_Types.hpp.

template<class Scalar, class ConcreteObj>
static int RTOpPack::PrimitiveTypeTraits< Scalar, ConcreteObj >::numCharObjs ( )
inlinestatic

Definition at line 545 of file RTOpPack_Types.hpp.

template<class Scalar, class ConcreteObj>
static void RTOpPack::PrimitiveTypeTraits< Scalar, ConcreteObj >::extractPrimitiveObjs ( const Scalar &  obj,
const ArrayView< primitiveType > &  primitiveObjs,
const ArrayView< index_type > &  indexObjs,
const ArrayView< char > &  charObjs 
)
inlinestatic

Definition at line 548 of file RTOpPack_Types.hpp.

template<class Scalar, class ConcreteObj>
static void RTOpPack::PrimitiveTypeTraits< Scalar, ConcreteObj >::loadPrimitiveObjs ( const ArrayView< const primitiveType > &  primitiveObjs,
const ArrayView< const index_type > &  indexObjs,
const ArrayView< const char > &  charObjs,
const Ptr< Scalar > &  obj 
)
inlinestatic

Definition at line 558 of file RTOpPack_Types.hpp.


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