Teuchos::PrimitiveTypeTraits< T > Class Template Reference

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

#include <Teuchos_PrimitiveTypeTraits.hpp>

List of all members.

Public Types

typedef T primitiveType
 

Static Public Member Functions

int numPrimitiveObjs ()
 
void extractPrimitiveObjs (const T &obj, const int numPrimitiveObjs, primitiveType primitiveObjs[])
 
void loadPrimitiveObjs (const int numPrimitiveObjs, const primitiveType primitiveObjs[], T *obj)
 


Detailed Description

template<class T>
class Teuchos::PrimitiveTypeTraits< T >

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 an array of primitive data types.

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

Definition at line 58 of file Teuchos_PrimitiveTypeTraits.hpp.


Member Typedef Documentation

template<class T>
typedef T Teuchos::PrimitiveTypeTraits< T >::primitiveType
 

Definition at line 61 of file Teuchos_PrimitiveTypeTraits.hpp.


Member Function Documentation

template<class T>
int Teuchos::PrimitiveTypeTraits< T >::numPrimitiveObjs  )  [inline, static]
 

Definition at line 63 of file Teuchos_PrimitiveTypeTraits.hpp.

template<class T>
void Teuchos::PrimitiveTypeTraits< T >::extractPrimitiveObjs const T &  obj,
const int  numPrimitiveObjs,
primitiveType  primitiveObjs[]
[inline, static]
 

Definition at line 65 of file Teuchos_PrimitiveTypeTraits.hpp.

template<class T>
void Teuchos::PrimitiveTypeTraits< T >::loadPrimitiveObjs const int  numPrimitiveObjs,
const primitiveType  primitiveObjs[],
T *  obj
[inline, static]
 

Definition at line 77 of file Teuchos_PrimitiveTypeTraits.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:30:32 2008 for Teuchos - Trilinos Tools Package by doxygen 1.3.9.1