cuIBM
A GPU-based Immersed Boundary Method code
|
Stores information about a property in a generic way. More...
#include <parameterDB.h>
Public Member Functions | |
property () | |
Constructor. Initializes the memory to zero. More... | |
template<typename T > | |
T | get () |
Gets the value of the property as a given type. More... | |
template<typename T > | |
void | set (T v) |
Sets the value of the property given a type. More... | |
const char * | print () |
Returns a string describing the value of property as appropriate. More... | |
template<> | |
std::string | get () |
Gets the value of the property as a string. More... | |
template<> | |
void | set (std::string s) |
Sets the value of the property given a string. More... | |
Private Member Functions | |
template<typename T > | |
T | getInternal () |
Private Attributes | |
const std::type_info * | type |
char | value [256] |
Stores information about a property in a generic way.
Definition at line 23 of file parameterDB.h.
|
inline |
Constructor. Initializes the memory to zero.
Definition at line 37 of file parameterDB.h.
References print().
T property::get | ( | ) |
Gets the value of the property as a given type.
Definition at line 70 of file parameterDB.cu.
References value.
template boundaryCondition ** property::get< boundaryCondition ** > | ( | ) |
Gets the value of the property as a string.
Definition at line 58 of file parameterDB.cu.
References value.
|
private |
const char * property::print | ( | ) |
Returns a string describing the value of property as appropriate.
Definition at line 96 of file parameterDB.cu.
References toString(), type, and value.
Referenced by property().
void property::set | ( | T | v | ) |
Sets the value of the property given a type.
v | the value |
Definition at line 132 of file parameterDB.cu.
void property::set | ( | std::string | s | ) |
Sets the value of the property given a string.
s | a string |
Definition at line 120 of file parameterDB.cu.
References value.
|
private |
Definition at line 28 of file parameterDB.h.
|
private |
Definition at line 31 of file parameterDB.h.