Conv< T > Class Template Reference

#include <Conv.h>

List of all members.

Static Public Member Functions

static unsigned int size (const T &val)
static const T & buf2val (double **buf)
static void val2buf (const T &val, double **buf)
static void str2val (T &val, const string &s)
static void val2str (string &s, const T &val)
static string rttiType ()

template<class T>
class Conv< T >


Member Function Documentation

template<class T>
static const T& Conv< T >::buf2val ( double **  buf  )  [inline, static]

References Conv< T >::size().

Referenced by testConvVector(), and testConvVectorOfVectors().

Here is the call graph for this function:

template<class T>
static string Conv< T >::rttiType (  )  [inline, static]
template<class T>
static unsigned int Conv< T >::size ( const T &  val  )  [inline, static]

Size, in units of sizeof(double). So a double would be 1, something with 1 chars would be 1 as well, but something with 9 chars would be 2.

Referenced by Conv< string >::buf2val(), Conv< T >::buf2val(), OpFunc2Base< A1, A2 >::opVecBuffer(), Conv< vector< T > >::size(), Conv< vector< vector< T > > >::size(), testConvVector(), testConvVectorOfVectors(), Conv< string >::val2buf(), and Conv< T >::val2buf().

template<class T>
static void Conv< T >::str2val ( T &  val,
const string &  s 
) [inline, static]

Default conversion from string just puts the string into the char* pointer.

template<class T>
static void Conv< T >::val2buf ( const T &  val,
double **  buf 
) [inline, static]

Converts data contents into double* buf. Buf must be allocated ahead of time. Returns size of value. Needs to be specialized for variable size and pointer-containing types T.

References Conv< T >::size().

Referenced by testConvVector(), testConvVectorOfVectors(), Conv< vector< T > >::val2buf(), and Conv< vector< vector< T > > >::val2buf().

Here is the call graph for this function:

template<class T>
static void Conv< T >::val2str ( string &  s,
const T &  val 
) [inline, static]

Default conversion into string just puts the char* representation into the string. Arguably a bad way to do it.


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

Generated on 1 Jul 2015 for MOOSE by  doxygen 1.6.1