CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <FunctionVisitor.hh>
Selectively relabel all OccupantFunctions in a Function tree, using their set_formula() method. OccFuncLabeler is constructed using a template string, which should be of the form (substr1 + "%n" + substr2 + "%f" + substr3 + "%b" + substr4), where substr1, etc, are user-defined substrings. "%n" indicates the placement of the neighbor_list index, "%f" indicates the placement of the function index, and "%b" indicates the placement of the basis site index. The relative order of "%n", "%f", and "%b" is determined by the user.
Definition at line 76 of file FunctionVisitor.hh.
Public Member Functions | |
OccFuncLabeler (const std::string &_template) | |
std::string | type_name () const |
bool | visit (OccupantFunction &host, BasisSet const *bset_ptr) const |
virtual bool | visit (Variable const &host, BasisSet const *bset_ptr) const |
virtual bool | visit (Variable &host, BasisSet const *bset_ptr) const |
virtual bool | visit (OccupantFunction const &host, BasisSet const *bset_ptr) const |
virtual bool | visit (PolynomialFunction const &host, BasisSet const *bset_ptr) const |
virtual bool | visit (PolynomialFunction &host, BasisSet const *bset_ptr) const |
Private Member Functions | |
virtual bool | _generic_visit (Function &host, BasisSet const *bset_ptr) const |
virtual bool | _generic_visit (Function const &host, BasisSet const *bset_ptr) const |
virtual bool | _visit (const Array< Function * > &host_list, BasisSet const *bset_ptr) const |
Private Attributes | |
std::vector< std::string > | m_sub_strings |
CASM::OccFuncLabeler::OccFuncLabeler | ( | const std::string & | _template | ) |
Definition at line 78 of file FunctionVisitor.cc.
|
privatevirtualinherited |
Reimplemented in CASM::SubExpressionLabeler.
Definition at line 55 of file FunctionVisitor.cc.
|
privatevirtualinherited |
Reimplemented in CASM::SubExpressionLabeler, and CASM::OccFuncEvaluator.
Definition at line 61 of file FunctionVisitor.cc.
|
inlineprivatevirtualinherited |
Definition at line 60 of file FunctionVisitor.hh.
|
inlinevirtual |
Implements CASM::FunctionVisitor.
Definition at line 82 of file FunctionVisitor.hh.
|
virtual |
Reimplemented from CASM::FunctionVisitor.
Definition at line 84 of file FunctionVisitor.cc.
|
virtualinherited |
Reimplemented in CASM::OccFuncEvaluator.
Definition at line 35 of file FunctionVisitor.cc.
|
virtualinherited |
Definition at line 50 of file FunctionVisitor.cc.
|
virtualinherited |
Definition at line 45 of file FunctionVisitor.cc.
|
virtualinherited |
Reimplemented in CASM::VariableLabeler.
Definition at line 31 of file FunctionVisitor.cc.
|
virtualinherited |
Definition at line 26 of file FunctionVisitor.cc.
|
private |
Definition at line 77 of file FunctionVisitor.hh.