![]() |
Scarab
v1.6.1
Project 8 C++ Utility Library
|
#include <param.hh>
Public Types | |
typedef std::deque< param * > | contents |
typedef contents::iterator | iterator |
typedef contents::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) | |
virtual | ~param_array () |
param_array & | operator= (const param_array &rhs) |
virtual param * | clone () const |
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 | push_back (const param &a_value) |
void | push_back (param *a_value_ptr) |
void | push_front (const param &a_value) |
void | push_front (param *a_value_ptr) |
void | append (const param_array &an_array) |
void | erase (unsigned a_index) |
param * | 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) | |
virtual | ~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 |
typedef contents::const_iterator const_iterator |
typedef contents::const_reverse_iterator const_reverse_iterator |
typedef contents::value_type contents_type |
typedef contents::reverse_iterator reverse_iterator |
param_array | ( | ) |
param_array | ( | const param_array & | orig | ) |
|
virtual |
|
inline |
|
inline |
Returns a pointer to the param_array (static-ly cast) corresponding to a_name. Returns NULL if a_name is not present.
|
inline |
Returns a pointer to the param_array (static-ly cast) corresponding to a_name. Returns NULL if a_name is not present.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
XValType get_value | ( | unsigned | a_index | ) | const |
|
inline |
|
inline |
XValType get_value | ( | unsigned | a_index, |
XValType | a_default | ||
) | const |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Returns a pointer to the param_node (static-ly cast) corresponding to a_name. Returns NULL if a_name is not present.
|
inline |
Returns a pointer to the param_node (static-ly cast) corresponding to a_name. Returns NULL if a_name is not present.
param_array & operator= | ( | const param_array & | rhs | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void resize | ( | unsigned | a_size | ) |
|
virtual |
|
inline |
Returns a pointer to the param_value (static-ly cast) corresponding to a_name. Returns NULL if a_name is not present.
|
inline |
Returns a pointer to the param_value (static-ly cast) corresponding to a_name. Returns NULL if a_name is not present.