![]() |
Scarab
v2.4.3
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 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 & | 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) |
void | assign (unsigned a_index, param_ptr_t a_value_ptr) |
template<typename T , typename std::enable_if< std::is_convertible< T, param_value >::value, T >::type * = nullptr> | |
void | assign (unsigned a_index, T a_value) |
void | push_back (const param &a_value) |
void | push_back (param &&a_value) |
void | push_back (param_ptr_t a_value_ptr) |
template<typename T , typename std::enable_if< std::is_convertible< T, param_value >::value, T >::type * = nullptr> | |
void | push_back (T a_value) |
void | push_front (const param &a_value) |
void | push_front (param &&a_value) |
void | push_front (param_ptr_t a_value_ptr) |
template<typename T , typename std::enable_if< std::is_convertible< T, param_value >::value, T >::type * = nullptr> | |
void | push_front (T a_value) |
void | append (const param_array &an_array) |
void | merge (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) |
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) |
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 23 of file param_array.cc.
param_array | ( | const param_array & | orig | ) |
Definition at line 29 of file param_array.cc.
param_array | ( | param_array && | orig | ) |
Definition at line 39 of file param_array.cc.
|
virtual |
Definition at line 50 of file param_array.cc.
|
inline |
Definition at line 282 of file param_array.hh.
|
inline |
Definition at line 209 of file param_array.hh.
|
inline |
Definition at line 216 of file param_array.hh.
|
inline |
Definition at line 223 of file param_array.hh.
|
inline |
Definition at line 231 of file param_array.hh.
|
inline |
Definition at line 199 of file param_array.hh.
|
inline |
Definition at line 203 of file param_array.hh.
|
inline |
Definition at line 307 of file param_array.hh.
|
inline |
Definition at line 311 of file param_array.hh.
|
inline |
Definition at line 301 of file param_array.hh.
|
inlinevirtual |
Reimplemented from param.
Definition at line 142 of file param_array.hh.
|
inline |
Definition at line 166 of file param_array.hh.
|
inline |
Definition at line 316 of file param_array.hh.
|
inline |
Definition at line 320 of file param_array.hh.
|
inline |
Definition at line 291 of file param_array.hh.
|
inline |
Definition at line 190 of file param_array.hh.
|
inline |
Definition at line 194 of file param_array.hh.
|
inline |
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 171 of file param_array.hh.
|
inline |
Definition at line 176 of file param_array.hh.
XValType get_value | ( | unsigned | a_index, |
XValType | a_default | ||
) | const |
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 137 of file param_array.hh.
|
virtual |
Reimplemented from param.
Definition at line 89 of file param_array.cc.
|
inlinevirtual |
Reimplemented from param.
Definition at line 157 of file param_array.hh.
|
inlinevirtual |
Reimplemented from param.
Definition at line 152 of file param_array.hh.
void merge | ( | const param_array & | an_array | ) |
Definition at line 105 of file param_array.cc.
|
inlinevirtual |
Reimplemented from param.
Definition at line 147 of file param_array.hh.
param_array & operator= | ( | const param_array & | rhs | ) |
Definition at line 54 of file param_array.cc.
param_array & operator= | ( | param_array && | rhs | ) |
Definition at line 66 of file param_array.cc.
|
inline |
Returns a reference to the param at a_index. Throws a std::out_of_range if a_index is out-of-range.
Definition at line 181 of file param_array.hh.
|
inline |
Returns a reference to the param at a_index. Throws a std::out_of_range if a_index is out-of-range.
Definition at line 185 of file param_array.hh.
|
inline |
Definition at line 238 of file param_array.hh.
|
inline |
Definition at line 243 of file param_array.hh.
|
inline |
Definition at line 248 of file param_array.hh.
|
inline |
Definition at line 254 of file param_array.hh.
|
inline |
Definition at line 260 of file param_array.hh.
|
inline |
Definition at line 265 of file param_array.hh.
|
inline |
Definition at line 270 of file param_array.hh.
|
inline |
Definition at line 276 of file param_array.hh.
|
inline |
Definition at line 325 of file param_array.hh.
|
inline |
Definition at line 329 of file param_array.hh.
|
inline |
Definition at line 296 of file param_array.hh.
|
inline |
Definition at line 334 of file param_array.hh.
|
inline |
Definition at line 338 of file param_array.hh.
void resize | ( | unsigned | a_size | ) |
sets the size of the array if smaller than the current size, extra elements are deleted
Definition at line 79 of file param_array.cc.
|
inline |
Definition at line 162 of file param_array.hh.
|
virtual |
Reimplemented from param.
Definition at line 149 of file param_array.cc.
|
protected |
Definition at line 132 of file param_array.hh.