CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <unique_map.hh>
An iterator over a UniqueMap.
UniqueType should be Unique or const Unique, and MapIteratorType should be std::map<int, std::unique_ptr<UniqueType> > with const-ness matching the UniqueType.
Definition at line 19 of file unique_map.hh.
Public Types | |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef MapIteratorType::difference_type | difference_type |
typedef std::result_of< TransformFunc(typename MapIteratorType::reference)>::type | reference |
typedef std::remove_reference< reference >::type | value_type |
typedef value_type * | pointer |
Public Member Functions | |
UniqueMapIterator () | |
UniqueMapIterator (MapIteratorType map_it) | |
template<typename T , typename M > | |
UniqueMapIterator (const UniqueMapIterator< T, M > &umap_it) | |
template<typename T , typename M > | |
bool | operator== (const UniqueMapIterator< T, M > &B) const |
template<typename T , typename M > | |
bool | operator!= (const UniqueMapIterator< T, M > &B) const |
int | type () const |
reference | operator* () const |
pointer | operator-> () const |
UniqueMapIterator & | operator++ () |
UniqueMapIterator | operator++ (int) |
UniqueMapIterator & | operator-- () |
UniqueMapIterator | operator-- (int) |
MapIteratorType | base () const |
Private Attributes | |
MapIteratorType | m_it |
TransformFunc | m_transform |
typedef MapIteratorType::difference_type notstd::UniqueMapIterator< TransformFunc, MapIteratorType >::difference_type |
Definition at line 22 of file unique_map.hh.
typedef std::bidirectional_iterator_tag notstd::UniqueMapIterator< TransformFunc, MapIteratorType >::iterator_category |
Definition at line 21 of file unique_map.hh.
typedef value_type* notstd::UniqueMapIterator< TransformFunc, MapIteratorType >::pointer |
Definition at line 26 of file unique_map.hh.
typedef std::result_of<TransformFunc( typename MapIteratorType::reference)>::type notstd::UniqueMapIterator< TransformFunc, MapIteratorType >::reference |
Definition at line 24 of file unique_map.hh.
typedef std::remove_reference<reference>::type notstd::UniqueMapIterator< TransformFunc, MapIteratorType >::value_type |
Definition at line 25 of file unique_map.hh.
|
inline |
Definition at line 28 of file unique_map.hh.
|
inlineexplicit |
Definition at line 30 of file unique_map.hh.
|
inline |
Definition at line 34 of file unique_map.hh.
|
inline |
Definition at line 79 of file unique_map.hh.
|
inline |
Definition at line 43 of file unique_map.hh.
|
inline |
Definition at line 49 of file unique_map.hh.
|
inline |
Definition at line 54 of file unique_map.hh.
|
inline |
Definition at line 60 of file unique_map.hh.
|
inline |
Definition at line 67 of file unique_map.hh.
|
inline |
Definition at line 73 of file unique_map.hh.
|
inline |
Definition at line 51 of file unique_map.hh.
|
inline |
Definition at line 38 of file unique_map.hh.
|
inline |
Definition at line 47 of file unique_map.hh.
|
private |
Definition at line 82 of file unique_map.hh.
|
private |
Definition at line 83 of file unique_map.hh.