![]() |
Scarab
v2.4.11
Project 8 C++ Utility Library
|
#include <param_value.hh>
Classes | |
class | are_loose_equals |
class | are_strict_equals |
class | as_bool_visitor |
class | as_double_visitor |
class | as_int_visitor |
class | as_path_visitor |
class | as_string_visitor |
class | as_uint_visitor |
class | clear_visitor |
class | get_visitor |
class | is_bool_visitor |
class | is_double_visitor |
class | is_int_visitor |
class | is_string_visitor |
class | is_uint_visitor |
class | type_visitor |
Public Member Functions | |
param_value () | |
param_value (bool a_value) | |
param_value (uint8_t a_value) | |
param_value (uint16_t a_value) | |
param_value (uint32_t a_value) | |
param_value (uint64_t a_value) | |
param_value (int8_t a_value) | |
param_value (int16_t a_value) | |
param_value (int32_t a_value) | |
param_value (int64_t a_value) | |
param_value (float a_value) | |
param_value (double a_value) | |
param_value (const std::string &a_value) | |
param_value (const char *a_value) | |
param_value (const param_value &orig) | |
param_value (param_value &&orig) | |
virtual | ~param_value () |
param_value & | operator= (const param_value &rhs) |
param_value & | operator= (param_value &&rhs) |
virtual param_ptr_t | clone () const |
virtual param_ptr_t | move_clone () |
bool | operator== (const param_value &rhs) const |
Strict equality. More... | |
bool | strict_is_equal_to (const param_value &rhs) const |
bool | loose_is_equal_to (const param_value &rhs) const |
bool | empty () const |
virtual bool | is_null () const |
virtual bool | is_value () const |
virtual bool | has_subset (const param &a_subset) const |
std::string | type () const |
bool | is_bool () const |
bool | is_uint () const |
bool | is_int () const |
bool | is_double () const |
bool | is_string () const |
bool | as_bool () const |
uint64_t | as_uint () const |
int64_t | as_int () const |
double | as_double () const |
std::string | as_string () const |
path | as_path () const |
template<typename XValType > | |
XValType | as () const |
template<typename XValType , typename std::enable_if< std::is_convertible< XValType, param_value >::value, XValType >::type * = nullptr> | |
void | set (XValType a_value) |
virtual std::string | to_string () const |
void | clear () |
template<> | |
bool | as () const |
template<> | |
uint64_t | as () const |
template<> | |
int64_t | as () const |
template<> | |
double | as () const |
![]() | |
param () | |
param (const param &orig) | |
param (param &&orig) | |
virtual | ~param () |
param & | operator= (const param &rhs) |
param & | operator= (param &&) |
virtual bool | is_array () const |
virtual bool | is_node () const |
param_value & | as_value () |
param_array & | as_array () |
param_node & | as_node () |
const param_value & | as_value () const |
const param_array & | as_array () const |
const param_node & | as_node () const |
const param_value & | operator() () const |
Assumes that the parameter is a value, and returns a reference to itself. More... | |
param_value & | operator() () |
Assumes that the parameter is a value, and returns a reference to itself. More... | |
const param & | operator[] (unsigned a_index) const |
param & | operator[] (unsigned a_index) |
const param & | operator[] (const std::string &a_name) const |
param & | operator[] (const std::string &a_name) |
std::string | get_value (const std::string &a_name, const std::string &a_default) const |
std::string | get_value (const std::string &a_name, const char *a_default) const |
template<typename XValType > | |
XValType | get_value (const std::string &a_name, XValType a_default) const |
std::string | get_value (unsigned a_index, const std::string &a_default) const |
std::string | get_value (unsigned a_index, const char *a_default) const |
template<typename XValType > | |
XValType | get_value (unsigned a_index, XValType a_default) const |
void | merge (const param &a_param) |
Private Attributes | |
boost::variant< bool, uint64_t, int64_t, double, std::string > | f_value |
Additional Inherited Members | |
![]() | |
static unsigned | s_indent_level = 0 |
Definition at line 27 of file param_value.hh.
param_value | ( | ) |
Definition at line 24 of file param_value.cc.
param_value | ( | bool | a_value | ) |
Definition at line 31 of file param_value.cc.
param_value | ( | uint8_t | a_value | ) |
Definition at line 39 of file param_value.cc.
param_value | ( | uint16_t | a_value | ) |
Definition at line 46 of file param_value.cc.
param_value | ( | uint32_t | a_value | ) |
Definition at line 53 of file param_value.cc.
param_value | ( | uint64_t | a_value | ) |
Definition at line 60 of file param_value.cc.
param_value | ( | int8_t | a_value | ) |
Definition at line 67 of file param_value.cc.
param_value | ( | int16_t | a_value | ) |
Definition at line 74 of file param_value.cc.
param_value | ( | int32_t | a_value | ) |
Definition at line 82 of file param_value.cc.
param_value | ( | int64_t | a_value | ) |
Definition at line 89 of file param_value.cc.
param_value | ( | float | a_value | ) |
Definition at line 96 of file param_value.cc.
param_value | ( | double | a_value | ) |
Definition at line 103 of file param_value.cc.
param_value | ( | const std::string & | a_value | ) |
Definition at line 117 of file param_value.cc.
param_value | ( | const char * | a_value | ) |
Definition at line 110 of file param_value.cc.
param_value | ( | const param_value & | orig | ) |
Definition at line 124 of file param_value.cc.
param_value | ( | param_value && | orig | ) |
Definition at line 131 of file param_value.cc.
|
virtual |
Definition at line 137 of file param_value.cc.
XValType as | ( | ) | const |
Definition at line 440 of file param_value.hh.
|
inline |
Definition at line 404 of file param_value.hh.
|
inline |
Definition at line 410 of file param_value.hh.
|
inline |
Definition at line 416 of file param_value.hh.
|
inline |
Definition at line 422 of file param_value.hh.
|
inline |
Definition at line 512 of file param_value.hh.
|
inline |
Definition at line 527 of file param_value.hh.
|
inline |
Definition at line 522 of file param_value.hh.
|
inline |
Definition at line 537 of file param_value.hh.
|
inline |
Definition at line 532 of file param_value.hh.
|
inline |
Definition at line 517 of file param_value.hh.
|
inline |
Definition at line 554 of file param_value.hh.
|
inlinevirtual |
Reimplemented from param.
Definition at line 446 of file param_value.hh.
bool empty | ( | ) | const |
|
virtual |
Reimplemented from param.
Definition at line 159 of file param_value.cc.
|
inline |
Definition at line 487 of file param_value.hh.
|
inline |
Definition at line 502 of file param_value.hh.
|
inline |
Definition at line 497 of file param_value.hh.
|
inlinevirtual |
Reimplemented from param.
Definition at line 477 of file param_value.hh.
|
inline |
Definition at line 507 of file param_value.hh.
|
inline |
Definition at line 492 of file param_value.hh.
|
inlinevirtual |
Reimplemented from param.
Definition at line 482 of file param_value.hh.
|
inline |
Definition at line 467 of file param_value.hh.
|
inlinevirtual |
Reimplemented from param.
Definition at line 452 of file param_value.hh.
param_value & operator= | ( | const param_value & | rhs | ) |
Definition at line 141 of file param_value.cc.
param_value & operator= | ( | param_value && | rhs | ) |
Definition at line 150 of file param_value.cc.
|
inline |
Strict equality.
Definition at line 457 of file param_value.hh.
void set | ( | XValType | a_value | ) |
Definition at line 543 of file param_value.hh.
|
inline |
Definition at line 462 of file param_value.hh.
|
inlinevirtual |
Reimplemented from param.
Definition at line 549 of file param_value.hh.
|
inline |
Definition at line 472 of file param_value.hh.
|
private |
Definition at line 94 of file param_value.hh.