mpqc::FormulaRegistry< Value > Class Template Reference
Collaboration diagram for mpqc::FormulaRegistry< Value >:
Documentation
template<typename Value>
class mpqc::FormulaRegistry< Value >
map Formula to Value object
Public Types | |
using | Key = Formula |
using | container_type = typename Registry< Key, Value >::container_type |
using | value_type = typename Registry< Key, Value >::value_type |
using | iterator = typename Registry< Key, Value >::iterator |
using | const_iterator = typename Registry< Key, Value >::const_iterator |
Public Types inherited from mpqc::Registry< Formula, Value > | |
using | container_type = std::map< Formula, Value > |
using | value_type = typename container_type::value_type |
using | iterator = typename container_type::iterator |
using | const_iterator = typename container_type::const_iterator |
Public Member Functions | |
FormulaRegistry ()=default | |
FormulaRegistry (const container_type &map) | |
FormulaRegistry (FormulaRegistry const &)=delete | |
prevent from copy and assign of FormulaRegistry More... | |
FormulaRegistry & | operator= (FormulaRegistry const &)=delete |
FormulaRegistry (FormulaRegistry &&)=default | |
FormulaRegistry & | operator= (FormulaRegistry &&)=default |
void | print_formula () const |
print out formula that stored in registry More... | |
template<typename Pred > | |
void | purge_if (const Pred &p) |
purges all objects if p(key) == true More... | |
void | purge_operator (const Operator::Type &optype) |
purges formulae that contain Operator whose type matches optype More... | |
void | purge_operator (const std::wstring &opstr) |
purges formulae that contain Operator described by string opstr More... | |
void | purge_formula (const Formula &formula) |
purges the Formula object that equals formula from the registry More... | |
void | purge_formula (const std::wstring &str) |
purges the formula that that corresponds to string str More... | |
void | purge_index (const OrbitalIndex &idx) |
purges formulae that contain index idx More... | |
void | purge () override |
purges all formula in registry More... | |
Public Member Functions inherited from mpqc::FormulaRegistryBase | |
virtual | ~FormulaRegistryBase ()=default |
void | set_verbose (bool verbose) |
Public Member Functions inherited from mpqc::Registry< Formula, Value > | |
Registry ()=default | |
Registry (const container_type &map) | |
Registry (Registry const &)=default | |
Registry (Registry &&)=default | |
Registry & | operator= (Registry const &)=default |
Registry & | operator= (Registry &&)=default |
virtual | ~Registry () |
const container_type & | registry () const |
return the registry More... | |
void | insert (const value_type &val) |
void | insert (const Formula &key, const Value &val) |
void | update (const Formula &key, const Value &val) |
update value which already exists in registry More... | |
void | update (const value_type &val) |
update value which already exists in registry More... | |
virtual void | remove (const Formula &key) |
virtual void | clear () |
clears the contents of the registry More... | |
virtual Value * | retrieve_ptr (const Formula &key) |
const Value * | retrieve_ptr (const Formula &key) const |
bool | have (const Formula &key) const |
check if have key in registry More... | |
Value & | retrieve (const Formula &key) |
const Value & | retrieve (const Formula &key) const |
void | purge_if (const Pred &p) |
purges all objects if p(value_type) == true More... | |
Additional Inherited Members | |
Protected Attributes inherited from mpqc::FormulaRegistryBase | |
bool | verbose_ = false |
Protected Attributes inherited from mpqc::Registry< Formula, Value > | |
container_type | registry_ |
Member Typedef Documentation
◆ const_iterator
template<typename Value >
using mpqc::FormulaRegistry< Value >::const_iterator = typename Registry<Key, Value>::const_iterator |
◆ container_type
template<typename Value >
using mpqc::FormulaRegistry< Value >::container_type = typename Registry<Key, Value>::container_type |
◆ iterator
template<typename Value >
using mpqc::FormulaRegistry< Value >::iterator = typename Registry<Key, Value>::iterator |
◆ Key
template<typename Value >
using mpqc::FormulaRegistry< Value >::Key = Formula |
◆ value_type
template<typename Value >
using mpqc::FormulaRegistry< Value >::value_type = typename Registry<Key, Value>::value_type |
Constructor & Destructor Documentation
◆ FormulaRegistry() [1/4]
template<typename Value >
|
default |
◆ FormulaRegistry() [2/4]
template<typename Value >
|
inline |
◆ FormulaRegistry() [3/4]
template<typename Value >
|
delete |
prevent from copy and assign of FormulaRegistry
◆ FormulaRegistry() [4/4]
template<typename Value >
|
default |
Member Function Documentation
◆ operator=() [1/2]
template<typename Value >
|
default |
◆ operator=() [2/2]
template<typename Value >
|
delete |
◆ print_formula()
template<typename Value >
|
inline |
print out formula that stored in registry
◆ purge()
template<typename Value >
|
inlineoverridevirtual |
purges all formula in registry
Implements mpqc::FormulaRegistryBase.
◆ purge_formula() [1/2]
template<typename Value >
|
inline |
purges the Formula object that equals formula
from the registry
◆ purge_formula() [2/2]
template<typename Value >
|
inline |
purges the formula that that corresponds to string str
◆ purge_if()
template<typename Value >
template<typename Pred >
|
inline |
purges all objects if p(key) == true
◆ purge_index()
template<typename Value >
|
inline |
purges formulae that contain index idx
◆ purge_operator() [1/2]
template<typename Value >
|
inline |
purges formulae that contain Operator whose type matches optype
◆ purge_operator() [2/2]
template<typename Value >
|
inline |
purges formulae that contain Operator described by string opstr
The documentation for this class was generated from the following file:
- mpqc/chemistry/qc/lcao/expression/formula_registry.h