CASM
AClustersApproachtoStatisticalMechanics
|
#include <ConfigSelection.hh>
Definition at line 13 of file ConfigSelection.hh.
Public Types | |
typedef std::conditional < IsConstIterator, std::map < std::string, bool > ::const_iterator, std::map < std::string, bool > ::iterator >::type | MapIterator |
typedef CASM_TMP::ConstSwitch < IsConst, PrimClex > | PrimClexType |
typedef std_iterator_type::reference | reference |
typedef std_iterator_type::pointer | pointer |
Public Member Functions | |
ConfigSelectionIterator () | |
ConfigSelectionIterator (const MapIterator &it, const MapIterator &begin, const MapIterator &end, PrimClexType *prim, bool _selected_only=false) | |
template<bool ArgIsConst, bool ArgIsConstIterator> | |
ConfigSelectionIterator (const ConfigSelectionIterator< ArgIsConst, ArgIsConstIterator > &iter) | |
bool | selected () const |
void | set_selected (bool is_selected) |
const std::string & | name () const |
bool | operator== (const ConfigSelectionIterator &_it) const |
bool | operator!= (const ConfigSelectionIterator &_it) const |
reference | operator* () const |
pointer | operator-> () const |
ConfigSelectionIterator & | operator++ () |
ConfigSelectionIterator | operator++ (int) |
ConfigSelectionIterator & | operator-- () |
ConfigSelectionIterator | operator-- (int) |
template<bool IsConst, bool IsConstIterator> | |
ConfigSelectionIterator (const typename ConfigSelectionIterator< IsConst, IsConstIterator >::MapIterator &it, const typename ConfigSelectionIterator< IsConst, IsConstIterator >::MapIterator &begin, const typename ConfigSelectionIterator< IsConst, IsConstIterator >::MapIterator &end, typename ConfigSelectionIterator< IsConst, IsConstIterator >::PrimClexType *prim, bool _selected_only) | |
Private Types | |
typedef std::iterator < std::bidirectional_iterator_tag, typename std::conditional < IsConstIterator, const Configuration, CASM_TMP::ConstSwitch< IsConst, Configuration > >::type > | std_iterator_type |
Private Attributes | |
PrimClexType * | m_primclex |
MapIterator | m_it |
MapIterator | m_begin |
MapIterator | m_end |
bool | m_selected_only |
Friends | |
class | ConfigSelectionIterator< IsConst,!IsConstIterator > |
class | ConfigSelection< IsConst > |
typedef std::conditional<IsConstIterator, std::map<std::string, bool>::const_iterator, std::map<std::string, bool>::iterator>::type CASM::ConfigSelectionIterator< IsConst, IsConstIterator >::MapIterator |
Definition at line 37 of file ConfigSelection.hh.
typedef std_iterator_type::pointer CASM::ConfigSelectionIterator< IsConst, IsConstIterator >::pointer |
Definition at line 40 of file ConfigSelection.hh.
typedef CASM_TMP::ConstSwitch<IsConst, PrimClex> CASM::ConfigSelectionIterator< IsConst, IsConstIterator >::PrimClexType |
Definition at line 38 of file ConfigSelection.hh.
typedef std_iterator_type::reference CASM::ConfigSelectionIterator< IsConst, IsConstIterator >::reference |
Definition at line 39 of file ConfigSelection.hh.
|
private |
Definition at line 31 of file ConfigSelection.hh.
CASM::ConfigSelectionIterator< IsConst, IsConstIterator >::ConfigSelectionIterator | ( | const MapIterator & | it, |
const MapIterator & | begin, | ||
const MapIterator & | end, | ||
PrimClexType * | prim, | ||
bool | _selected_only = false |
||
) |
|
friend |
Definition at line 78 of file ConfigSelection.hh.
|
friend |
Definition at line 77 of file ConfigSelection.hh.
|
private |
Definition at line 82 of file ConfigSelection.hh.
|
private |
Definition at line 83 of file ConfigSelection.hh.
|
private |
Definition at line 81 of file ConfigSelection.hh.
|
private |
Definition at line 80 of file ConfigSelection.hh.
|
private |
Definition at line 84 of file ConfigSelection.hh.