|
CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <Calculable.hh>
Inheritance diagram for CASM::Calculable< _Base >:Definition at line 23 of file Calculable.hh.
Public Types | |
| typedef DB::Indexed< _Base > | Base |
| typedef Base::MostDerived | MostDerived |
Public Member Functions | |
| MappedProperties const & | calc_properties (std::string calctype="") const |
| Return MappedProperties for requested calctype. More... | |
| void | set_calc_properties (const MappedProperties &_prop, std::string calctype="") |
| void | refresh_calc_properties (std::string calctype="") |
| grabs properties from the indicated calctype and adds info to calc_properties_map More... | |
| const jsonParser & | source () const |
| void | set_source (const jsonParser &source) |
| void | push_back_source (const jsonParser &source) |
| std::map< std::string, MappedProperties > | calc_properties_map () const |
| template<typename T > | |
| void | cache_insert (std::string name, const T &data) const |
| void | set_initial_cache (jsonParser const &_cache) |
| Set the configuration cache as read from the database. More... | |
| void | update_cache (jsonParser const &_cache) |
| Upate the configuration cache. More... | |
| const jsonParser & | cache () const |
| Access the configuration cache, which will be saved in the database. More... | |
| bool | cache_updated () const |
| Check if cache updated. More... | |
| void | cache_clear () const |
| std::string | id () const |
| std::string | name () const |
| std::string | alias () const |
| Return "alias" if object stored in database and alias exists, return empty string otherwise. More... | |
Protected Member Functions | |
| void | _modify_dof () |
| Call in MostDerived any time DoF may be modified. More... | |
| void | _refresh_calc_properties (std::string calctype="") const |
| grabs properties from the indicated calctype and adds info to calc_properties_map More... | |
| jsonParser & | cache () |
| void | clear_name () const |
| Unset "id" and "name", if object is modified. More... | |
| void | set_id (Index _id) const |
| Set id. More... | |
| void | set_id (std::string _id) const |
| Set id. More... | |
| void | regenerate_name () const |
| Regenerate "name". More... | |
| void | set_name (std::string _name) const |
| Set "name", explicity. More... | |
Private Attributes | |
| std::map< std::string, MappedProperties > | m_calc_properties_map |
| jsonParser | m_source |
| jsonParser | m_cache |
| bool | m_cache_updated |
| friend | ValDatabase< MostDerived > |
| std::string | m_id |
| std::string | m_name |
| typedef DB::Indexed<_Base> CASM::Calculable< _Base >::Base |
Definition at line 25 of file Calculable.hh.
| typedef Base::MostDerived CASM::Calculable< _Base >::MostDerived |
Definition at line 26 of file Calculable.hh.
|
protected |
Call in MostDerived any time DoF may be modified.
Call in _Base any time DoF may be modified.
Definition at line 104 of file Calculable.cc.
|
protected |
grabs properties from the indicated calctype and adds info to calc_properties_map
Definition at line 116 of file Calculable.cc.
|
inherited |
Return "alias" if object stored in database and alias exists, return empty string otherwise.
Definition at line 34 of file Named_impl.hh.
|
inlineprotectedinherited |
Access the configuration cache, which will be saved in the database
|
inlineinherited |
|
inlineinherited |
Clear the cache
|
inlineinherited |
Insert data in the configuration cache, which will be saved in the database
|
inlineinherited |
| MappedProperties const & CASM::Calculable< _Base >::calc_properties | ( | std::string | calctype = "" | ) | const |
Return MappedProperties for requested calctype.
Definition at line 17 of file Calculable.cc.
|
inline |
Definition at line 45 of file Calculable.hh.
|
protectedinherited |
Unset "id" and "name", if object is modified.
Definition at line 65 of file Named_impl.hh.
|
inherited |
Definition at line 50 of file Named_impl.hh.
|
inherited |
Definition at line 56 of file Named_impl.hh.
| void CASM::Calculable< _Base >::push_back_source | ( | const jsonParser & | source | ) |
Definition at line 68 of file Calculable.cc.
| void CASM::Calculable< _Base >::refresh_calc_properties | ( | std::string | calctype = "" | ) |
grabs properties from the indicated calctype and adds info to calc_properties_map
Definition at line 45 of file Calculable.cc.
|
protectedinherited |
Regenerate "name".
Definition at line 41 of file Named_impl.hh.
| void CASM::Calculable< _Base >::set_calc_properties | ( | const MappedProperties & | _prop, |
| std::string | calctype = "" |
||
| ) |
Definition at line 32 of file Calculable.cc.
|
protectedinherited |
Set id.
Setting id should be done through Database<Derived> implementations
Definition at line 76 of file Named_impl.hh.
|
protectedinherited |
Set id.
Setting id should be done through Database<Derived> implementations
Definition at line 86 of file Named_impl.hh.
|
inlineinherited |
|
protectedinherited |
| void CASM::Calculable< _Base >::set_source | ( | const jsonParser & | source | ) |
Definition at line 56 of file Calculable.cc.
| const jsonParser & CASM::Calculable< _Base >::source |
Definition at line 51 of file Calculable.cc.
|
inlineinherited |
|
mutableprivateinherited |
|
mutableprivateinherited |
|
mutableprivate |
Definition at line 58 of file Calculable.hh.
|
mutableprivateinherited |
|
mutableprivateinherited |
|
private |
Definition at line 59 of file Calculable.hh.
|
privateinherited |