public

Inheritance Graph

graph BT
	GenericAttributeMap
	GenericAttributeMap --> GenericAttribute
	click GenericAttributeMap "classUtil_1_1GenericAttributeMap"
	click GenericAttribute "classUtil_1_1GenericAttribute"

Description

Generic attribute to store a map data structure.

Public Types

   
   
typedef GenericAttributeMap attr_t
   
typedef std::unordered_map< StringIdentifier , std::unique_ptr< GenericAttribute > >:: const_iterator const_iterator
   
typedef std::unordered_map< StringIdentifier , std::unique_ptr< GenericAttribute > >:: iterator iterator

Public Functions

   
   
  GenericAttributeMap()
   
  GenericAttributeMap(const GenericAttributeMap & void)
   
  GenericAttributeMap( GenericAttributeMap && void)
   
  ~GenericAttributeMap()
   
GenericAttributeMap & operator=(const GenericAttributeMap & void)
   
GenericAttributeMap & operator=( GenericAttributeMap && void)
   
void clear()
   
void setValue(const StringIdentifier & key, GenericAttribute * attr)
   
bool unsetValue(const StringIdentifier & key)
   
bool contains(const StringIdentifier & key) const
   
GenericAttribute * getValue(const StringIdentifier & stringId) const
template< typename T >  
T * getValue(const StringIdentifier & key) const
   
bool getBool(const StringIdentifier & key, const bool defaultValue) const
   
double getDouble(const StringIdentifier & key, double defaultValue) const
   
float getFloat(const StringIdentifier & key, const float defaultValue) const
   
int getInt(const StringIdentifier & key, const int defaultValue) const
   
unsigned int getUInt(const StringIdentifier & key, const unsigned int defaultValue) const
   
std::string getString(const StringIdentifier & key, const std::string & defaultValue) const
   
void setString(const StringIdentifier & key, const std::string & value)
   
const_iterator begin() const
   
const_iterator end() const
   
size_t size() const
   
bool empty() const
   
GenericAttributeMap * clone() const
   
std::string toJSON() const
   
std::string toString() const
   
bool operator==(const GenericAttribute & void) const
Per default, the comparison returns false for unspecified types.

Documentation

typedef
Util::GenericAttributeMap::attr_t

public
 
 
typedef GenericAttributeMap attr_t

Defined in Util/GenericAttribute.h:509


typedef
Util::GenericAttributeMap::const_iterator

public
 
 
typedef std::unordered_map< StringIdentifier , std::unique_ptr< GenericAttribute > >:: const_iterator const_iterator

Defined in Util/GenericAttribute.h:511


typedef
Util::GenericAttributeMap::iterator

public
 
 
typedef std::unordered_map< StringIdentifier , std::unique_ptr< GenericAttribute > >:: iterator iterator

Defined in Util/GenericAttribute.h:512


function
Util::GenericAttributeMap::GenericAttributeMap

public
   
   
GenericAttributeMap( )

Defined in Util/GenericAttribute.h:514


function
Util::GenericAttributeMap::GenericAttributeMap

public
     
     
GenericAttributeMap( const GenericAttributeMap & void )

Defined in Util/GenericAttribute.h:515


function
Util::GenericAttributeMap::GenericAttributeMap

public
     
     
GenericAttributeMap( GenericAttributeMap && void )

Defined in Util/GenericAttribute.h:516


function
Util::GenericAttributeMap::~GenericAttributeMap

public virtual
   
   
~GenericAttributeMap( )

Defined in Util/GenericAttribute.h:517


function
Util::GenericAttributeMap::operator=

public
     
     
GenericAttributeMap & operator=( const GenericAttributeMap & void )

Defined in Util/GenericAttribute.h:519


function
Util::GenericAttributeMap::operator=

public
     
     
GenericAttributeMap & operator=( GenericAttributeMap && void )

Defined in Util/GenericAttribute.h:520


function
Util::GenericAttributeMap::clear

public inline
   
   
void clear( )

Defined in Util/GenericAttribute.h:522


function
Util::GenericAttributeMap::setValue

public
     
     
void setValue( const StringIdentifier & key,
  GenericAttribute * attr
)    

Defined in Util/GenericAttribute.h:523


function
Util::GenericAttributeMap::unsetValue

public
     
     
bool unsetValue( const StringIdentifier & key )

Defined in Util/GenericAttribute.h:524


function
Util::GenericAttributeMap::contains

public const
     
     
bool contains( const StringIdentifier & key ) const

Defined in Util/GenericAttribute.h:525


function
Util::GenericAttributeMap::getValue

public const
     
     
GenericAttribute * getValue( const StringIdentifier & stringId ) const

Defined in Util/GenericAttribute.h:526


function
Util::GenericAttributeMap::getValue

public const inline
     
template< typename T >    
T * getValue( const StringIdentifier & key ) const

Defined in Util/GenericAttribute.h:527


function
Util::GenericAttributeMap::getBool

public const inline
     
     
bool getBool( const StringIdentifier & key,
  const bool defaultValue
) const    

Defined in Util/GenericAttribute.h:528


function
Util::GenericAttributeMap::getDouble

public const inline
     
     
double getDouble( const StringIdentifier & key,
  double defaultValue
) const    

Defined in Util/GenericAttribute.h:532


function
Util::GenericAttributeMap::getFloat

public const inline
     
     
float getFloat( const StringIdentifier & key,
  const float defaultValue
) const    

Defined in Util/GenericAttribute.h:536


function
Util::GenericAttributeMap::getInt

public const inline
     
     
int getInt( const StringIdentifier & key,
  const int defaultValue
) const    

Defined in Util/GenericAttribute.h:540


function
Util::GenericAttributeMap::getUInt

public const inline
     
     
unsigned int getUInt( const StringIdentifier & key,
  const unsigned int defaultValue
) const    

Defined in Util/GenericAttribute.h:544


function
Util::GenericAttributeMap::getString

public const
     
     
std::string getString( const StringIdentifier & key,
  const std::string & defaultValue
) const    

Defined in Util/GenericAttribute.h:549


function
Util::GenericAttributeMap::setString

public
     
     
void setString( const StringIdentifier & key,
  const std::string & value
)    

Defined in Util/GenericAttribute.h:550


function
Util::GenericAttributeMap::begin

public const inline
   
   
const_iterator begin( ) const

Defined in Util/GenericAttribute.h:552


function
Util::GenericAttributeMap::end

public const inline
   
   
const_iterator end( ) const

Defined in Util/GenericAttribute.h:553


function
Util::GenericAttributeMap::size

public const inline
   
   
size_t size( ) const

Defined in Util/GenericAttribute.h:554


function
Util::GenericAttributeMap::empty

public const inline
   
   
bool empty( ) const

Defined in Util/GenericAttribute.h:555


function
Util::GenericAttributeMap::clone

public const virtual
   
   
GenericAttributeMap * clone( ) const

Create a copy of this object.

Returns

Exact copy.

Defined in Util/GenericAttribute.h:557


function
Util::GenericAttributeMap::toJSON

public const virtual
   
   
std::string toJSON( ) const

Convert the object to JavaScript Object Notation (JSON).

Returns

JSON representation;

Defined in Util/GenericAttribute.h:558


function
Util::GenericAttributeMap::toString

public const virtual
   
   
std::string toString( ) const

Convert the object to a human-readable string.

Returns

String representation.

Defined in Util/GenericAttribute.h:559


function
Util::GenericAttributeMap::operator==

public const virtual
     
     
bool operator==( const GenericAttribute & void ) const

Per default, the comparison returns false for unspecified types.

Defined in Util/GenericAttribute.h:560