SecondKeyProxy Class Reference
Detailed Description
template<typename _FirstContainer, typename _FirstContainerItem, typename _SecondContainer, typename _SecondContainerItem, typename _Value>
class lemon::DynamicAsymMatrixMap< _FirstContainer, _FirstContainerItem, _SecondContainer, _SecondContainerItem, _Value >::SecondKeyProxy
The proxy class belongs to the SecondKey type. It is necessary because if one want use the same conatainer types and same nested types but on other instances of containers than due to the type equiality of nested types it requires a proxy mechanism.
#include <lemon/matrix_maps.h>
List of all members.
|
Public Member Functions |
| SecondKeyProxy (DynamicAsymMatrixMap &_map) |
| Constructor.
|
Protected Member Functions |
virtual void | add (const SecondKey &_secondKey) |
| Add a new SecondKey to the map.
|
virtual void | add (const std::vector< SecondKey > &_secondKeys) |
| Add more new SecondKey to the map.
|
virtual void | erase (const SecondKey &_secondKey) |
| Erase a SecondKey from the map.
|
virtual void | erase (const std::vector< SecondKey > &_secondKeys) |
| Erase more SecondKeys from the map.
|
virtual void | build () |
| Builds the map.
|
virtual void | clear () |
| Clear the map.
|
Private Attributes |
DynamicAsymMatrixMap & | _owner |
| The type of map for which it is attached.
|
Member Function Documentation
virtual void add |
( |
const SecondKey & |
_secondKey |
) |
[inline, protected, virtual] |
It adds a new SecondKey to the map. It is called by the observer notifier and it is ovverride the add() virtual member function in the observer base. It will call the maps addSecondKey() function.
virtual void add |
( |
const std::vector< SecondKey > & |
_secondKeys |
) |
[inline, protected, virtual] |
It adds more new SecondKey to the map. It is called by the observer notifier and it is ovverride the add() virtual member function in the observer base. It will call the maps addSecondKeys() function.
virtual void erase |
( |
const SecondKey & |
_secondKey |
) |
[inline, protected, virtual] |
Erase a SecondKey from the map. It called by the observer notifier and it overrides the erase() virtual member function of the observer base. It will call the map's eraseSecondKey() function.
virtual void erase |
( |
const std::vector< SecondKey > & |
_secondKeys |
) |
[inline, protected, virtual] |
Erase more SecondKey from the map. It called by the observer notifier and it overrides the erase() virtual member function of the observer base. It will call the map's eraseSecondKeys() function.
virtual void build |
( |
|
) |
[inline, protected, virtual] |
It buildes the map. It called by the observer notifier and it overrides the build() virtual member function of the observer base. It will call the map's build() function.
virtual void clear |
( |
|
) |
[inline, protected, virtual] |
It erases all items from the map. It called by the observer notifier and it overrides the clear() virtual memeber function of the observer base. It will call the map's clear() function.