Configuration::Parameter< T > Class Template Reference

A configurable parameter. More...

Inheritance diagram for Configuration::Parameter< T >:
Reference::Able Reference::HeapTracked

Classes

class  ParseLoader
 Uses an intermediate parser to load from configuration. More...

Public Member Functions

 Parameter (const T &val)
 Parameter (const std::string &_key, Configuration *config, T default_value)
 Parameter (const std::string &_key, Configuration *config)
template<typename Parser>
 Parameter (const std::string &_key, Configuration *config, Parser *parser, const std::string &default_value)
 operator T& ()
 Cast to T& operator.
get_value () const
 Get a copy of the value.
void set_value (const T &val)
 Set the value.
T & operator= (const T &t)
 Set equal to T operator.
bool operator== (const T &t) const
 Equality test operator.
std::string get_key () const
void set_key (const std::string &_key)
void set_loader (Loader *_load)
Public Member Functions inherited from Reference::Able
 Able ()
 Default constructor.
 Able (const Able &)
 Copy constructor.
Ableoperator= (const Able &)
 Assignment operator.
virtual ~Able ()
 Destructor.
unsigned get_reference_count () const
 Returns the number of references there are to this.
Public Member Functions inherited from Reference::HeapTracked
 HeapTracked ()
 Default constructor.
 HeapTracked (const HeapTracked &)
 Copy constructor.
HeapTrackedoperator= (const HeapTracked &)
 Assignment operator.
virtual ~HeapTracked ()
 Destructor.
bool __is_on_heap () const
 Return true if this instance is found in heap addresses.

Protected Attributes

std::string key
value
Loader * loader

Additional Inherited Members

Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 Returns the current number instances in existence.
Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 Records the addresses of new instances allocated on the heap.
static void operator delete (void *location, void *ptr)
 Placement delete overload to match the placement new overload.
static void operator delete (void *location)
 Regular delete overload.
static size_t get_heap_queue_size ()
 Return the number of heap addresses awaiting processing.
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 Add the address of a reference to this object.
void __dereference (bool auto_delete=true) const
 Remove the address of a reference to this object.

Detailed Description

template<class T>
class Configuration::Parameter< T >

A configurable parameter.


The documentation for this class was generated from the following file:

Generated using doxygen 1.14.0