CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <Selection.hh>
Definition at line 44 of file Selection.hh.
Public Types | |
typedef CASM_TMP::ConstSwitch< std::is_same< BaseIterator, std::map< std::string, bool >::const_iterator >::value, bool > | bool_type |
Public Member Functions | |
SelectionIterator () | |
Default constructor (equals end) More... | |
std::string | name () const |
Name of object the iterator points at. More... | |
bool_type & | is_selected () |
Reference to value 'is_selected'. More... | |
bool | is_selected () const |
Reference to value 'is_selected'. More... | |
Private Member Functions | |
SelectionIterator (const Selection< ObjType > &_list, BaseIterator _it, bool _selected_only) | |
Construct iterator. More... | |
void | increment () |
boost::iterator_facade implementation More... | |
void | decrement () |
boost::iterator_facade implementation More... | |
const ObjType & | dereference () const |
boost::iterator_facade implementation More... | |
bool | equal (const SelectionIterator &B) const |
boost::iterator_facade implementation More... | |
Private Attributes | |
friend | Selection< ObjType > |
const Selection< ObjType > * | m_list |
BaseIterator | m_it |
bool | m_selected_only |
typedef CASM_TMP::ConstSwitch< std::is_same<BaseIterator, std::map<std::string, bool>::const_iterator>::value, bool> CASM::DB::SelectionIterator< ObjType, BaseIterator >::bool_type |
Definition at line 53 of file Selection.hh.
|
inline |
Default constructor (equals end)
Definition at line 56 of file Selection.hh.
|
private |
Construct iterator.
Definition at line 93 of file Selection.cc.
|
private |
boost::iterator_facade implementation
Definition at line 114 of file Selection.cc.
|
private |
boost::iterator_facade implementation
Definition at line 124 of file Selection.cc.
|
private |
boost::iterator_facade implementation
Definition at line 130 of file Selection.cc.
|
private |
boost::iterator_facade implementation
Definition at line 104 of file Selection.cc.
SelectionIterator< ObjType, BaseIterator >::bool_type & CASM::DB::SelectionIterator< ObjType, BaseIterator >::is_selected |
Reference to value 'is_selected'.
Definition at line 81 of file Selection.cc.
bool CASM::DB::SelectionIterator< ObjType, BaseIterator >::is_selected |
Reference to value 'is_selected'.
Definition at line 87 of file Selection.cc.
std::string CASM::DB::SelectionIterator< ObjType, BaseIterator >::name |
Name of object the iterator points at.
Definition at line 74 of file Selection.cc.
|
private |
Definition at line 96 of file Selection.hh.
|
private |
Definition at line 95 of file Selection.hh.
|
private |
Definition at line 97 of file Selection.hh.
|
private |
Definition at line 70 of file Selection.hh.