|
g4tools
5.4.0
|

Public Types | |
| enum | e_type { NONE = 0, UNSIGNED_SHORT = 12, SHORT = 13, UNSIGNED_INT = 14, INT = 15, UNSIGNED_INT64 = 16, INT64 = 17, FLOAT = 30, DOUBLE = 31, BOOL = 50, STRING = 51, VOID_STAR = 100, DOUBLE_STAR = 101, FLOAT_STAR = 102, INT_STAR = 103, ARRAY_UNSIGNED_SHORT = 1012, ARRAY_SHORT = 1013, ARRAY_UNSIGNED_INT = 1014, ARRAY_INT = 1015, ARRAY_UNSIGNED_INT64 = 1016, ARRAY_INT64 = 1017, ARRAY_FLOAT = 1030, ARRAY_DOUBLE = 1031, ARRAY_BOOL = 1050, ARRAY_STRING = 1051 } |
Public Member Functions | |
| value () | |
| value (bool a_value) | |
| value (short a_value) | |
| value (int a_value) | |
| value (int64 a_value) | |
| value (uint64 a_value) | |
| value (float a_value) | |
| value (double a_value) | |
| value (unsigned short a_value) | |
| value (unsigned int a_value) | |
| value (void *a_value) | |
| value (double *a_value) | |
| value (float *a_value) | |
| value (int *a_value) | |
| value (const char *a_value) | |
| value (const std::string &a_value) | |
| virtual | ~value () |
| value (const value &a_from) | |
| value & | operator= (const value &a_from) |
| void | set_itag (unsigned int a_itag) |
| unsigned int | itag () const |
| void | set_label (const std::string &a_s) |
| const std::string & | label () const |
| e_type | type () const |
| void | set_type (e_type a_type) |
| void | set_none () |
| void | set (short a_value) |
| void | set (unsigned short a_value) |
| void | set (int a_value) |
| void | set (unsigned int a_value) |
| void | set (int64 a_value) |
| void | set (uint64 a_value) |
| void | set (float a_value) |
| void | set (double a_value) |
| void | set (bool a_value) |
| void | set (const std::string &a_value) |
| void | set (const char *a_value) |
| void | set (void *a_value) |
| void | set (double *a_value) |
| void | set (float *a_value) |
| void | set (int *a_value) |
| unsigned int | get_unsigned_int () const |
| int | get_int () const |
| int64 | get_int64 () const |
| uint64 | get_unsigned_int64 () const |
| unsigned short | get_unsigned_short () const |
| short | get_short () const |
| float | get_float () const |
| double | get_double () const |
| void * | get_void_star () const |
| double * | get_double_star () const |
| float * | get_float_star () const |
| int * | get_int_star () const |
| bool | get_bool () const |
| const std::string & | get_string () const |
| bool | s_type (std::string &a_s) const |
| bool | tos (std::string &a_s) const |
| bool | to_double (double &a_d) const |
| bool | is_array () const |
| size_t | array_size () const |
| std::string | stype () const |
Static Public Member Functions | |
| static bool | s_type (value::e_type a_type, std::string &a_s) |
| static bool | tos (const value &a_v, std::string &a_s) |
| static std::string | stype (e_type a_type) |
| static std::string | error_div_zero () |
| static bool | assign (value &, const value &, std::string &) |
| static bool | minus (value &, std::string &) |
| static bool | do_not (value &, std::string &) |
| static bool | add (value &, const value &, std::string &) |
| static bool | subtract (value &, const value &, std::string &) |
| static bool | multiply (value &, const value &, std::string &) |
| static bool | divide (value &, const value &, std::string &) |
| static bool | if_gt (value &, const value &, std::string &) |
| static bool | if_eq (value &, const value &, std::string &) |
| static bool | if_ne (value &aThis, const value &aV, std::string &aError) |
| static bool | if_ge (value &aThis, const value &aV, std::string &aError) |
| static bool | if_lt (value &aThis, const value &aV, std::string &aError) |
| static bool | if_le (value &aThis, const value &aV, std::string &aError) |
| static bool | if_and (value &, const value &, std::string &) |
| static bool | if_or (value &, const value &, std::string &) |
| static bool | to_double (const value &, double &) |
| static bool | cxx_type (const value &, std::string &) |
| static std::string | to_string (const value &) |
Protected Member Functions | |
| void | reset () |
Protected Attributes | |
| std::string * | m_label |
| unsigned int | m_itag |
| e_type | m_type |
| union { | |
| bool m_bool | |
| int m_int | |
| short m_short | |
| int64 m_int64 | |
| float m_float | |
| double m_double | |
| unsigned short m_unsigned_short | |
| unsigned int m_unsigned_int | |
| uint64 m_unsigned_int64 | |
| void * m_void_star | |
| double * m_double_star | |
| float * m_float_star | |
| int * m_int_star | |
| std::string * m_string | |
| array< unsigned char > * m_array_unsigned_char | |
| array< char > * m_array_char | |
| array< unsigned short > * m_array_unsigned_short | |
| array< short > * m_array_short | |
| array< uint64 > * m_array_unsigned_int64 | |
| array< int64 > * m_array_int64 | |
| array< unsigned int > * m_array_unsigned_int | |
| array< int > * m_array_int | |
| array< float > * m_array_float | |
| array< double > * m_array_double | |
| array< bool > * m_array_bool | |
| array< std::string > * m_array_string | |
| } | u |
| enum tools::value::e_type |
Definition at line 24 of file value.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
static |
|
static |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
static |
|
static |
|
inlinestatic |
|
inline |
|
inline |
| union { ... } tools::value::u |