CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <PropertiesDatabase.hh>
Wrapper class for specializations PropertiesDatabaseIteratorBase.
Dereferencing PropertiesDatabaseIterator only provides const references, whether the underlying resource is persistent (jsonPropertiesDatabase) or temporary (other types). Changing database entries must be done via copy then insert, or update.
DatabaseIterator should always be dereferenceable (except end or when default constructed), though the reference may be invalidated when a second DatabaseIterator is dereferenced, dereferencing the first again should be valid (though it may require re-allocation):
Definition at line 113 of file PropertiesDatabase.hh.
Public Member Functions | |
PropertiesDatabaseIterator () | |
Default constructor. More... | |
PropertiesDatabaseIterator (const PropertiesDatabaseIteratorBase &it) | |
Construct iterator. More... | |
PropertiesDatabaseIteratorBase * | get () const |
Private Member Functions | |
void | increment () |
boost::iterator_facade implementation More... | |
const MappedProperties & | dereference () const |
boost::iterator_facade implementation More... | |
bool | equal (const PropertiesDatabaseIterator &B) const |
boost::iterator_facade implementation More... | |
long | distance_to (const PropertiesDatabaseIterator &B) const |
Private Attributes | |
notstd::cloneable_ptr< PropertiesDatabaseIteratorBase > | m_ptr |
|
inline |
Default constructor.
Definition at line 120 of file PropertiesDatabase.hh.
|
inline |
Construct iterator.
Definition at line 123 of file PropertiesDatabase.hh.
|
inlineprivate |
boost::iterator_facade implementation
Definition at line 135 of file PropertiesDatabase.hh.
|
inlineprivate |
Definition at line 142 of file PropertiesDatabase.hh.
|
inlineprivate |
boost::iterator_facade implementation
Definition at line 138 of file PropertiesDatabase.hh.
|
inline |
Definition at line 126 of file PropertiesDatabase.hh.
|
inlineprivate |
boost::iterator_facade implementation
Definition at line 132 of file PropertiesDatabase.hh.
|
private |
Definition at line 146 of file PropertiesDatabase.hh.