![]() |
Scarab
v2.2.3
Project 8 C++ Utility Library
|
#include <param_base.hh>
Public Member Functions | |
param () | |
param (const param &orig) | |
param (param &&orig) | |
virtual | ~param () |
param & | operator= (const param &rhs) |
param & | operator= (param &&) |
virtual param_ptr_t | clone () const |
virtual param_ptr_t | move_clone () |
virtual bool | is_null () const |
virtual bool | is_value () const |
virtual bool | is_array () const |
virtual bool | is_node () const |
virtual bool | has_subset (const param &a_subset) 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) |
virtual std::string | to_string () const |
Static Public Attributes | |
static unsigned | s_indent_level = 0 |
Definition at line 26 of file param_base.hh.
param | ( | ) |
Definition at line 23 of file param_base.cc.
Definition at line 27 of file param_base.cc.
Definition at line 31 of file param_base.cc.
|
virtual |
Definition at line 35 of file param_base.cc.
|
inline |
Definition at line 74 of file param_base_impl.hh.
|
inline |
Definition at line 92 of file param_base_impl.hh.
|
inline |
Definition at line 80 of file param_base_impl.hh.
|
inline |
Definition at line 98 of file param_base_impl.hh.
|
inline |
Definition at line 68 of file param_base_impl.hh.
|
inline |
Definition at line 86 of file param_base_impl.hh.
|
inlinevirtual |
Reimplemented in param_node, param_value, and param_array.
Definition at line 30 of file param_base_impl.hh.
|
inline |
If the derived param type is param_node, forwards the reqeust to param_node; otherwise throws an error. Returns the result of param_value::get if a_name is present and is of type param_value Returns a_default if a_name is not present or is not of type param_value
Definition at line 134 of file param_base_impl.hh.
|
inline |
Definition at line 139 of file param_base_impl.hh.
|
inline |
If the derived param type is param_node, forwards the reqeust to param_node; otherwise throws an error. Returns the result of param_value::get if a_name is present and is of type param_value Returns a_default if a_name is not present or is not of type param_value
Definition at line 145 of file param_base_impl.hh.
|
inline |
If the derived param type is param_node, forwards the reqeust to param_node; otherwise throws an error. Returns the result of param_value::get if a_name is present and is of type param_value Returns a_default if a_name is not present or is not of type param_value
Definition at line 150 of file param_base_impl.hh.
|
inline |
Definition at line 155 of file param_base_impl.hh.
|
inline |
If the derived param type is param_node, forwards the reqeust to param_node; otherwise throws an error. Returns the result of param_value::get if a_name is present and is of type param_value Returns a_default if a_name is not present or is not of type param_value
Definition at line 161 of file param_base_impl.hh.
|
inlinevirtual |
Reimplemented in param_node, param_value, and param_array.
Definition at line 62 of file param_base_impl.hh.
|
inlinevirtual |
Reimplemented in param_array.
Definition at line 52 of file param_base_impl.hh.
|
inlinevirtual |
Reimplemented in param_node.
Definition at line 57 of file param_base_impl.hh.
|
inlinevirtual |
Reimplemented in param_node, param_value, and param_array.
Definition at line 42 of file param_base_impl.hh.
|
inlinevirtual |
Reimplemented in param_value.
Definition at line 47 of file param_base_impl.hh.
|
inline |
Definition at line 39 of file param_base.cc.
|
inlinevirtual |
Reimplemented in param_node, param_value, and param_array.
Definition at line 36 of file param_base_impl.hh.
|
inline |
Assumes that the parameter is a value, and returns a reference to itself.
Definition at line 104 of file param_base_impl.hh.
|
inline |
Assumes that the parameter is a value, and returns a reference to itself.
Definition at line 109 of file param_base_impl.hh.
Definition at line 20 of file param_base_impl.hh.
Definition at line 25 of file param_base_impl.hh.
|
inline |
Assumes that the parameter is an array, and returns a reference to the param at a_index. Behavior is undefined if a_index is out-of-range.
Definition at line 114 of file param_base_impl.hh.
|
inline |
Assumes that the parameter is an array, and returns a reference to the param at a_index. Behavior is undefined if a_index is out-of-range.
Definition at line 119 of file param_base_impl.hh.
|
inline |
Assumes that the parameter is a node, and returns a reference to the param corresponding to a_name. Throws a scarab::error if a_name is not present.
Definition at line 124 of file param_base_impl.hh.
|
inline |
Assumes that the parameter is a node, and returns a reference to the param corresponding to a_name. Throws a scarab::error if a_name is not present.
Definition at line 129 of file param_base_impl.hh.
|
inlinevirtual |
Reimplemented in param_node, param_array, and param_value.
Definition at line 166 of file param_base_impl.hh.
|
static |
Definition at line 100 of file param_base.hh.