![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <container/UntypedRegistry.hpp>

Public Types | |
| typedef ChamaeleonBase::BadCast | BadCast |
| typedef InstanceContainer::DuplicateKeyValue | DuplicateKeyValue |
| typedef InstanceContainer::KeyList | KeyList |
| typedef KEY | KeyType |
| typedef InstanceContainer::UnknownKeyValue | UnknownKeyValue |
Public Member Functions | |
| virtual void | clear () |
| Clears the container. | |
| virtual bool | empty () const throw () |
| True if size of Registry is 0. | |
| virtual void | erase (const KEY &key) throw (UnknownKeyValue) |
| remove the instance registered under the given name, | |
| template<typename T> | |
| T | find (const KEY &key) const throw (UnknownKeyValue, BadCast) |
| return an instance of type T according to the name it has been registerd with | |
| template<typename ELEMENT> | |
| void | insert (const KEY &key, ELEMENT element) throw (DuplicateKeyValue) |
| add an instance with a unique name | |
| virtual KeyList | keys () const throw () |
| virtual bool | knows (const KEY &key) const |
| Is an instance with this name known? | |
| virtual size_t | size () const throw () |
| Return the size of the registry. | |
| UntypedRegistry () | |
| Empty registry. | |
| template<typename ELEMENT> | |
| void | update (const KeyType &key, ELEMENT element) throw (UnknownKeyValue) |
| Update the element found by key. | |
| virtual | ~UntypedRegistry () |
| All entries in the registry will be erased. | |
Private Types | |
| typedef wns::container::Registry< KEY, ChamaeleonBase *, wns::container::registry::DeleteOnErase, SORTINGPOLICY > | InstanceContainer |
Private Member Functions | |
| UntypedRegistry (const UntypedRegistry &) | |
Private Attributes | |
| InstanceContainer | instances_ |
Definition at line 43 of file UntypedRegistry.hpp.
| typedef ChamaeleonBase::BadCast wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::BadCast |
Definition at line 56 of file UntypedRegistry.hpp.
| typedef InstanceContainer::DuplicateKeyValue wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::DuplicateKeyValue |
Definition at line 54 of file UntypedRegistry.hpp.
typedef wns::container::Registry<KEY, ChamaeleonBase*, wns::container::registry::DeleteOnErase, SORTINGPOLICY> wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::InstanceContainer [private] |
Definition at line 50 of file UntypedRegistry.hpp.
| typedef InstanceContainer::KeyList wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::KeyList |
Definition at line 55 of file UntypedRegistry.hpp.
| typedef KEY wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::KeyType |
Definition at line 52 of file UntypedRegistry.hpp.
| typedef InstanceContainer::UnknownKeyValue wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::UnknownKeyValue |
Definition at line 53 of file UntypedRegistry.hpp.
| wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::UntypedRegistry | ( | ) | [inline] |
Definition at line 61 of file UntypedRegistry.hpp.
| virtual wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::~UntypedRegistry | ( | ) | [inline, virtual] |
Definition at line 70 of file UntypedRegistry.hpp.
| wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::UntypedRegistry | ( | const UntypedRegistry< KEY, SORTINGPOLICY > & | ) | [private] |
| virtual void wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::clear | ( | ) | [inline, virtual] |
Definition at line 156 of file UntypedRegistry.hpp.
| virtual bool wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::empty | ( | ) | const throw () [inline, virtual] |
Definition at line 165 of file UntypedRegistry.hpp.
| virtual void wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::erase | ( | const KEY & | key | ) | throw (UnknownKeyValue) [inline, virtual] |
Definition at line 145 of file UntypedRegistry.hpp.
| T wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::find | ( | const KEY & | key | ) | const throw (UnknownKeyValue, BadCast) [inline] |
Definition at line 106 of file UntypedRegistry.hpp.
| void wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::insert | ( | const KEY & | key, | |
| ELEMENT | element | |||
| ) | throw (DuplicateKeyValue) [inline] |
Definition at line 79 of file UntypedRegistry.hpp.
| virtual KeyList wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::keys | ( | ) | const throw () [inline, virtual] |
Definition at line 182 of file UntypedRegistry.hpp.
| virtual bool wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::knows | ( | const KEY & | key | ) | const [inline, virtual] |
Definition at line 95 of file UntypedRegistry.hpp.
| virtual size_t wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::size | ( | ) | const throw () [inline, virtual] |
Definition at line 175 of file UntypedRegistry.hpp.
| void wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::update | ( | const KeyType & | key, | |
| ELEMENT | element | |||
| ) | throw (UnknownKeyValue) [inline] |
| UnkownKeyValue | Thrown if element to key is not found |
Definition at line 129 of file UntypedRegistry.hpp.
InstanceContainer wns::container::UntypedRegistry< KEY, SORTINGPOLICY >::instances_ [private] |
Definition at line 192 of file UntypedRegistry.hpp.
1.5.5