![]() |
Scarab
v2.1.0
Project 8 C++ Utility Library
|
#include <param_array.hh>
Public Types | |
typedef param_array_contents | contents |
typedef param_array_iterator | iterator |
typedef param_array_const_iterator | const_iterator |
typedef contents::reverse_iterator | reverse_iterator |
typedef contents::const_reverse_iterator | const_reverse_iterator |
typedef contents::value_type | contents_type |
Public Member Functions | |
param_array () | |
param_array (const param_array &orig) | |
param_array (param_array &&orig) | |
virtual | ~param_array () |
param_array & | operator= (const param_array &rhs) |
param_array & | operator= (param_array &&rhs) |
virtual param_ptr_t | clone () const |
virtual param_ptr_t | move_clone () |
virtual bool | is_null () const |
virtual bool | is_array () const |
virtual bool | has_subset (const param &a_subset) const |
unsigned | size () const |
bool | empty () const |
void | resize (unsigned a_size) |
std::string | get_value (unsigned a_index) const |
template<typename XValType > | |
XValType | get_value (unsigned a_index) 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 |
const param & | at (unsigned a_index) const |
param & | at (unsigned a_index) |
const param_value & | value_at (unsigned a_index) const |
param_value & | value_at (unsigned a_index) |
const param_array & | array_at (unsigned a_index) const |
param_array & | array_at (unsigned a_index) |
const param_node & | node_at (unsigned a_index) const |
param_node & | node_at (unsigned a_index) |
const param & | operator[] (unsigned a_index) const |
param & | operator[] (unsigned a_index) |
const param & | front () const |
param & | front () |
const param & | back () const |
param & | back () |
void | assign (unsigned a_index, const param &a_value) |
void | assign (unsigned a_index, param &&a_value_ptr) |
void | assign (unsigned a_index, param_ptr_t a_value_ptr) |
void | push_back (const param &a_value) |
void | push_back (param &&a_value) |
void | push_back (param_ptr_t a_value_ptr) |
void | push_front (const param &a_value) |
void | push_front (param &&a_value) |
void | push_front (param_ptr_t a_value_ptr) |
void | append (const param_array &an_array) |
void | erase (unsigned a_index) |
param_ptr_t | remove (unsigned a_index) |
void | clear () |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
virtual std::string | to_string () const |
![]() | |
param () | |
param (const param &orig) | |
param (param &&orig) | |
virtual | ~param () |
param & | operator= (const param &rhs) |
param & | operator= (param &&) |
virtual bool | is_value () 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) |
Protected Attributes | |
contents | f_contents |
Additional Inherited Members | |
![]() | |
static unsigned | s_indent_level = 0 |
Definition at line 31 of file param_array.hh.
Definition at line 36 of file param_array.hh.
typedef contents::const_reverse_iterator const_reverse_iterator |
Definition at line 38 of file param_array.hh.
typedef param_array_contents contents |
Definition at line 34 of file param_array.hh.
typedef contents::value_type contents_type |
Definition at line 39 of file param_array.hh.
typedef param_array_iterator iterator |
Definition at line 35 of file param_array.hh.
typedef contents::reverse_iterator reverse_iterator |
Definition at line 37 of file param_array.hh.
param_array | ( | ) |
Definition at line 20 of file param_array.cc.
param_array | ( | const param_array & | orig | ) |
Definition at line 26 of file param_array.cc.
param_array | ( | param_array && | orig | ) |
Definition at line 36 of file param_array.cc.
|
virtual |
Definition at line 47 of file param_array.cc.
|
inline |
Definition at line 342 of file param_array.hh.
|
inline |
Returns the param_array corresponding to a_name. Throws a scarab::error if a_index is out-of-range.
Definition at line 243 of file param_array.hh.
|
inline |
Returns the param_array corresponding to a_name. Throws a scarab::error if a_index is out-of-range.
Definition at line 247 of file param_array.hh.
|
inline |
Definition at line 289 of file param_array.hh.
|
inline |
Definition at line 296 of file param_array.hh.
|
inline |
Definition at line 303 of file param_array.hh.
|
inline |
Returns the param corresponding to a_name. Throws a scarab::error if a_index is out-of-range.
Definition at line 225 of file param_array.hh.
|
inline |
Returns the param corresponding to a_name. Throws a scarab::error if a_index is out-of-range.
Definition at line 229 of file param_array.hh.
|
inline |
Definition at line 279 of file param_array.hh.
|
inline |
Definition at line 283 of file param_array.hh.
|
inline |
Definition at line 367 of file param_array.hh.
|
inline |
Definition at line 371 of file param_array.hh.
|
inline |
Definition at line 361 of file param_array.hh.
|
inlinevirtual |
Reimplemented from param.
Definition at line 175 of file param_array.hh.
|
inline |
Definition at line 199 of file param_array.hh.
|
inline |
Definition at line 376 of file param_array.hh.
|
inline |
Definition at line 380 of file param_array.hh.
|
inline |
Definition at line 351 of file param_array.hh.
|
inline |
Definition at line 270 of file param_array.hh.
|
inline |
Definition at line 274 of file param_array.hh.
|
inline |
Returns the result of ParamValue::get if a_name is present and is of type param_value Throws an error if a_name is not present or is not of type param_value
Definition at line 210 of file param_array.hh.
XValType get_value | ( | unsigned | a_index | ) | const |
Returns the result of ParamValue::get if a_name is present and is of type param_value Throws an error if a_name is not present or is not of type param_value
Definition at line 164 of file param_array.hh.
|
inline |
Returns the result of ParamValue::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 215 of file param_array.hh.
|
inline |
Definition at line 220 of file param_array.hh.
XValType get_value | ( | unsigned | a_index, |
XValType | a_default | ||
) | const |
Returns the result of ParamValue::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 170 of file param_array.hh.
|
virtual |
Reimplemented from param.
Definition at line 76 of file param_array.cc.
|
inlinevirtual |
Reimplemented from param.
Definition at line 190 of file param_array.hh.
|
inlinevirtual |
Reimplemented from param.
Definition at line 185 of file param_array.hh.
|
inlinevirtual |
Reimplemented from param.
Definition at line 180 of file param_array.hh.
|
inline |
Returns the param_node corresponding to a_name. Throws a scarab::error if a_index is not present
Definition at line 252 of file param_array.hh.
|
inline |
Returns the param_node corresponding to a_name. Throws a scarab::error if a_index is out-of-range.
Definition at line 256 of file param_array.hh.
param_array & operator= | ( | const param_array & | rhs | ) |
Definition at line 51 of file param_array.cc.
param_array & operator= | ( | param_array && | rhs | ) |
Definition at line 63 of file param_array.cc.
|
inline |
Returns a reference to the param at a_index. Behavior is undefined if a_index is out-of-range.
Definition at line 261 of file param_array.hh.
|
inline |
Returns a reference to the param at a_index. Behavior is undefined if a_index is out-of-range.
Definition at line 265 of file param_array.hh.
|
inline |
Definition at line 310 of file param_array.hh.
|
inline |
Definition at line 315 of file param_array.hh.
|
inline |
Definition at line 320 of file param_array.hh.
|
inline |
Definition at line 326 of file param_array.hh.
|
inline |
Definition at line 331 of file param_array.hh.
|
inline |
Definition at line 336 of file param_array.hh.
|
inline |
Definition at line 385 of file param_array.hh.
|
inline |
Definition at line 389 of file param_array.hh.
|
inline |
Definition at line 356 of file param_array.hh.
|
inline |
Definition at line 394 of file param_array.hh.
|
inline |
Definition at line 398 of file param_array.hh.
|
inline |
sets the size of the array if smaller than the current size, extra elements are deleted
Definition at line 204 of file param_array.hh.
|
inline |
Definition at line 195 of file param_array.hh.
|
virtual |
Reimplemented from param.
Definition at line 92 of file param_array.cc.
|
inline |
Returns the param_value corresponding to a_name. Throws a scarab::error if a_index is not present
Definition at line 234 of file param_array.hh.
|
inline |
Returns the param_value corresponding to a_name. Throws a scarab::error if a_index is out-of-range.
Definition at line 238 of file param_array.hh.
|
protected |
Definition at line 159 of file param_array.hh.