Public Types | Public Member Functions | List of all members
DictionaryPtr< K, V > Class Template Reference

Associates type info. More...

#include <Dictionary.h>

Inheritance diagram for DictionaryPtr< K, V >:
Inheritance graph
[legend]
Collaboration diagram for DictionaryPtr< K, V >:
Collaboration graph
[legend]

Public Types

typedef Dictionary< K, V * > parent_t
 
- Public Types inherited from Dictionary< K, V * >
typedef K key_t
 
typedef V * value_t
 
typedef std::pair< K, V * > entry_t
 
typedef std::list< entry_t > container_t
 
typedef std::list< key_t > keylist_t
 
typedef std::list< value_t > valuelist_t
 

Public Member Functions

void add (const K &key, const V &value)
 
parent_t::container_t::const_iterator findByValue (const V &value) const
 
const V & getValue (const K &key) const
 
const K & getKey (const V &value) const
 
- Public Member Functions inherited from Dictionary< K, V * >
 Dictionary (const Dictionary &d)
 
 Dictionary (std::initializer_list< entry_t > d)
 
const container_t & getContainer () const
 
entry_t & add (const K &key, const V * &value)
 
entry_t & set (const K &key, const V * &value)
 Replaces existing or adds.
 
const V * & operator[] (const K &key) const
 
const V * & operator() (const V * &value) const
 
container_t::const_iterator findByKey (const K &key) const
 
container_t::const_iterator findByValue (const V * &value) const
 
bool hasKey (const K &key) const
 
bool hasValue (const V * &value) const
 Given a key, return the first value associated with it.
 
const V * & getValue (const K &key) const
 Given a key, return the first value associated with it.
 
const K & getKey (const V * &value) const
 Given a value, return the first key associated with it.
 
const keylist_t & getKeys () const
 
void getKeys (keylist_t &l) const
 
const valuelist_t & getValues () const
 
void getValues (keylist_t &l) const
 

Additional Inherited Members

- Public Attributes inherited from Dictionary< K, V * >
char separator
 
- Protected Attributes inherited from Dictionary< K, V * >
keylist_t keyList
 
valuelist_t valueList
 

Detailed Description

template<class K, class V>
class drain::DictionaryPtr< K, V >

Associates type info.


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