70template <
class Tto,
class Tfrom =
void>
72 return static_cast<Tto
>(
value);
77 return static_cast<Tto
>(real(
value));
88 return cast_from_complex<Tto>(
value);
92template <
class Tto,
class Tfrom>
93inline Tto
cast_at(
void* data,
int index = 0) {
94 return cast<Tto>(*((Tfrom*) data + index));
111#define DEFINE_BIND_UTILS_FOR(T) \
113 inline kids_dtype as_enum<T>() { \
117 inline std::string as_str<T>() { \
#define DEFINE_BIND_UTILS_FOR(T)
DataSet class is a tree-structured container for storage of Tensor and other DataSet.
this class provides an interface wrapper for the parameter data.
Param::LoadOption::fromString value("fromFile", Param::LoadOption::fromFile) .export_values()
< http://warp.povusers.org/FunctionParser/fparser.html
@ kids_real_type
Represents real number type.
@ kids_str_type
Represents string type.
@ kids_param_type
Represents Param type.
@ kids_complex_type
Represents complex number type.
@ kids_bool_type
Represents bool type.
@ kids_dataset_type
Represents DataSet type.
@ kids_int_type
Represents integer type.
@ kids_void_type
Represents void type.
kids_dtype as_enum()
Converts a C++ type to its corresponding kids_dtype enumeration.
double kids_real
Alias for real number type.
bool kids_bool
Alias for bool type.
std::complex< double > kids_complex
Alias for complex number type.
std::string as_str()
Converts a C++ type to its string representation.
int kids_bint
Alias for integer type.
Tto cast_from_complex(kids_complex value)
std::string kids_str
Alias for string type.
void kids_void
Alias for void type.
Tto cast_at(void *data, int index=0)
int kids_int
Alias for integer type.