MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <Conv.h>
Static Public Member Functions | |
static const T & | buf2val (double **buf) |
static string | rttiType () |
static unsigned int | size (const T &val) |
static void | str2val (T &val, const string &s) |
static void | val2buf (const T &val, double **buf) |
static void | val2str (string &s, const T &val) |
|
inlinestatic |
Definition at line 44 of file Conv.h.
References Conv< T >::size().
Referenced by GetHopFunc< A >::op(), OpFunc2Base< A1, A2 >::opBuffer(), OpFunc3Base< A1, A2, A3 >::opBuffer(), OpFunc4Base< A1, A2, A3, A4 >::opBuffer(), OpFunc5Base< A1, A2, A3, A4, A5 >::opBuffer(), OpFunc6Base< A1, A2, A3, A4, A5, A6 >::opBuffer(), SrcFinfo2< T1, T2 >::sendBuffer(), SrcFinfo3< T1, T2, T3 >::sendBuffer(), SrcFinfo4< T1, T2, T3, T4 >::sendBuffer(), SrcFinfo5< T1, T2, T3, T4, T5 >::sendBuffer(), SrcFinfo6< T1, T2, T3, T4, T5, T6 >::sendBuffer(), testConvVector(), and testConvVectorOfVectors().
|
inlinestatic |
Definition at line 82 of file Conv.h.
References name.
Referenced by ElementValueFinfo< T, F >::rttiType(), LookupElementValueFinfo< T, L, F >::rttiType(), ValueFinfo< T, F >::rttiType(), LookupValueFinfo< T, L, F >::rttiType(), ReadOnlyElementValueFinfo< T, F >::rttiType(), ReadOnlyLookupElementValueFinfo< T, L, F >::rttiType(), ReadOnlyValueFinfo< T, F >::rttiType(), ReadOnlyLookupValueFinfo< T, L, F >::rttiType(), OpFunc1Base< ProcPtr >::rttiType(), FieldElementFinfo< T, F >::rttiType(), OpFunc2Base< A1, A2 >::rttiType(), SrcFinfo1< T >::rttiType(), OpFunc3Base< A1, A2, A3 >::rttiType(), OpFunc4Base< A1, A2, A3, A4 >::rttiType(), OpFunc5Base< A1, A2, A3, A4, A5 >::rttiType(), SrcFinfo2< T1, T2 >::rttiType(), OpFunc6Base< A1, A2, A3, A4, A5, A6 >::rttiType(), SrcFinfo3< T1, T2, T3 >::rttiType(), SrcFinfo4< T1, T2, T3, T4 >::rttiType(), LookupGetOpFuncBase< L, A >::rttiType(), SrcFinfo5< T1, T2, T3, T4, T5 >::rttiType(), SrcFinfo6< T1, T2, T3, T4, T5, T6 >::rttiType(), Conv< vector< vector< T > > >::rttiType(), and Conv< vector< T > >::rttiType().
|
inlinestatic |
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.
Definition at line 38 of file Conv.h.
Referenced by Conv< T >::buf2val(), Conv< string >::buf2val(), GetOpFuncBase< A >::opBuffer(), Conv< vector< vector< T > > >::size(), Conv< vector< T > >::size(), testConvVector(), testConvVectorOfVectors(), Conv< T >::val2buf(), and Conv< string >::val2buf().
|
inlinestatic |
Default conversion from string just puts the string into the char* pointer.
Definition at line 65 of file Conv.h.
Referenced by LookupField< L, A >::innerStrGet(), SetGet1< A >::innerStrSet(), Field< A >::innerStrSet(), SetGet2< L, A >::innerStrSet(), LookupField< L, A >::innerStrSet(), SetGet3< A1, A2, A3 >::innerStrSet(), SetGet4< A1, A2, A3, A4 >::innerStrSet(), SetGet5< A1, A2, A3, A4, A5 >::innerStrSet(), and SetGet6< A1, A2, A3, A4, A5, A6 >::innerStrSet().
|
inlinestatic |
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.
Definition at line 56 of file Conv.h.
References Conv< T >::size().
Referenced by HopFunc1< A >::op(), HopFunc2< A1, A2 >::op(), HopFunc3< A1, A2, A3 >::op(), HopFunc4< A1, A2, A3, A4 >::op(), HopFunc5< A1, A2, A3, A4, A5 >::op(), HopFunc6< A1, A2, A3, A4, A5, A6 >::op(), GetOpFuncBase< A >::opBuffer(), testConvVector(), testConvVectorOfVectors(), Conv< vector< vector< T > > >::val2buf(), and Conv< vector< T > >::val2buf().
|
inlinestatic |
Default conversion into string just puts the char* representation into the string. Arguably a bad way to do it.
Definition at line 74 of file Conv.h.
Referenced by Field< A >::innerStrGet(), and LookupField< L, A >::innerStrGet().