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...
 
FormulaRegistryoperator= (FormulaRegistry const &)=delete
 
 FormulaRegistry (FormulaRegistry &&)=default
 
FormulaRegistryoperator= (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
 
Registryoperator= (Registry const &)=default
 
Registryoperator= (Registry &&)=default
 
virtual ~Registry ()
 
const container_typeregistry () 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 >
mpqc::FormulaRegistry< Value >::FormulaRegistry ( )
default

◆ FormulaRegistry() [2/4]

template<typename Value >
mpqc::FormulaRegistry< Value >::FormulaRegistry ( const container_type map)
inline

◆ FormulaRegistry() [3/4]

template<typename Value >
mpqc::FormulaRegistry< Value >::FormulaRegistry ( FormulaRegistry< Value > const &  )
delete

prevent from copy and assign of FormulaRegistry

◆ FormulaRegistry() [4/4]

template<typename Value >
mpqc::FormulaRegistry< Value >::FormulaRegistry ( FormulaRegistry< Value > &&  )
default

Member Function Documentation

◆ operator=() [1/2]

template<typename Value >
FormulaRegistry& mpqc::FormulaRegistry< Value >::operator= ( FormulaRegistry< Value > &&  )
default

◆ operator=() [2/2]

template<typename Value >
FormulaRegistry& mpqc::FormulaRegistry< Value >::operator= ( FormulaRegistry< Value > const &  )
delete

◆ print_formula()

template<typename Value >
void mpqc::FormulaRegistry< Value >::print_formula ( ) const
inline

print out formula that stored in registry

◆ purge()

template<typename Value >
void mpqc::FormulaRegistry< Value >::purge ( )
inlineoverridevirtual

purges all formula in registry

Implements mpqc::FormulaRegistryBase.

◆ purge_formula() [1/2]

template<typename Value >
void mpqc::FormulaRegistry< Value >::purge_formula ( const Formula formula)
inline

purges the Formula object that equals formula from the registry

◆ purge_formula() [2/2]

template<typename Value >
void mpqc::FormulaRegistry< Value >::purge_formula ( const std::wstring &  str)
inline

purges the formula that that corresponds to string str

◆ purge_if()

template<typename Value >
template<typename Pred >
void mpqc::FormulaRegistry< Value >::purge_if ( const Pred &  p)
inline

purges all objects if p(key) == true

◆ purge_index()

template<typename Value >
void mpqc::FormulaRegistry< Value >::purge_index ( const OrbitalIndex idx)
inline

purges formulae that contain index idx

◆ purge_operator() [1/2]

template<typename Value >
void mpqc::FormulaRegistry< Value >::purge_operator ( const Operator::Type optype)
inline

purges formulae that contain Operator whose type matches optype

◆ purge_operator() [2/2]

template<typename Value >
void mpqc::FormulaRegistry< Value >::purge_operator ( const std::wstring &  opstr)
inline

purges formulae that contain Operator described by string opstr


The documentation for this class was generated from the following file: