|
MorphoGraphX
2.0-1-227
|
Attribute map wraps std::map. More...
#include <Attributes.hpp>
Public Types | |
| typedef std::pair< KeyT, ValueT > | pair |
| typedef STD_MAP< KeyT, ValueT >::iterator | iterator |
| typedef STD_MAP< KeyT, ValueT >::const_iterator | const_iterator |
Public Member Functions | |
| AttrMap () | |
| AttrMap (const ValueT &defaultVal) | |
| template<typename IterT > | |
| AttrMap (IterT first, IterT last, const ValueT &defaultVal=ValueT()) | |
| AttrMap (const AttrMap &a) | |
| AttrMap & | operator= (const AttrMap &a) |
| ~AttrMap () | |
| const ValueT & | operator[] (const KeyT &key) const |
| const Accessor More... | |
| ValueT & | operator[] (const KeyT &key) |
| Accessor. More... | |
| const ValueT & | at (const KeyT &key) const |
| Counterpart to map::at(), which returns reference to default value if key is not found. More... | |
| const ValueT & | defaultVal () const |
| Get a reference to the default value. More... | |
| ValueT & | defaultVal () |
| ValueT & | defaulVal () |
| The default value. More... | |
| const ValueT & | defaulVal () const |
| size_t | size () const |
| bool | empty () const |
| size_t | count (const KeyT &key) const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| iterator | find (const KeyT &key) |
| const_iterator | find (const KeyT &key) const |
| void | erase (iterator pos) |
| size_t | erase (const KeyT &key) |
| void | erase (iterator first, iterator last) |
| void | clear () |
| template<typename IterT > | |
| void | insert (IterT first, IterT last) |
Attribute map wraps std::map.
The following customizations are made to std::map's behavior:
Note that this does not make the class thread safe, but reads and writes that go to different entries are safe.
Definition at line 686 of file Attributes.hpp.
| typedef STD_MAP<KeyT, ValueT>::const_iterator mgx::AttrMap< KeyT, ValueT >::const_iterator |
Definition at line 691 of file Attributes.hpp.
| typedef STD_MAP<KeyT, ValueT>::iterator mgx::AttrMap< KeyT, ValueT >::iterator |
Definition at line 690 of file Attributes.hpp.
| typedef std::pair<KeyT, ValueT> mgx::AttrMap< KeyT, ValueT >::pair |
Definition at line 689 of file Attributes.hpp.
|
inline |
Definition at line 694 of file Attributes.hpp.
|
inlineexplicit |
Definition at line 698 of file Attributes.hpp.
|
inline |
Definition at line 705 of file Attributes.hpp.
|
inline |
Definition at line 712 of file Attributes.hpp.
|
inline |
Definition at line 727 of file Attributes.hpp.
|
inline |
Counterpart to map::at(), which returns reference to default value if key is not found.
Definition at line 759 of file Attributes.hpp.
|
inline |
Definition at line 805 of file Attributes.hpp.
|
inline |
Definition at line 806 of file Attributes.hpp.
|
inline |
Definition at line 817 of file Attributes.hpp.
|
inline |
Definition at line 804 of file Attributes.hpp.
|
inline |
Definition at line 771 of file Attributes.hpp.
|
inline |
Get a reference to the default value.
Definition at line 767 of file Attributes.hpp.
|
inline |
The default value.
Definition at line 792 of file Attributes.hpp.
|
inline |
Definition at line 796 of file Attributes.hpp.
|
inline |
Definition at line 803 of file Attributes.hpp.
|
inline |
Definition at line 807 of file Attributes.hpp.
|
inline |
Definition at line 808 of file Attributes.hpp.
|
inline |
Definition at line 814 of file Attributes.hpp.
|
inline |
Definition at line 815 of file Attributes.hpp.
|
inline |
Definition at line 813 of file Attributes.hpp.
|
inline |
Definition at line 809 of file Attributes.hpp.
|
inline |
Definition at line 810 of file Attributes.hpp.
|
inline |
Definition at line 819 of file Attributes.hpp.
|
inline |
Definition at line 718 of file Attributes.hpp.
|
inline |
Accessor.
Put a lock around this for omp. Note that this will not protect an iterator somewhere else.
Definition at line 751 of file Attributes.hpp.
|
inline |
const Accessor
If value does not exist, return a reference to the default value. Unlike map, this method is const
Definition at line 737 of file Attributes.hpp.
|
inline |
Definition at line 802 of file Attributes.hpp.
1.8.17