CASM
AClustersApproachtoStatisticalMechanics
|
#include <FunctionVisitor.hh>
Selectively relabel all Variabless in a Function tree, using their set_formula() method. VariableLabeler is constructed using a template string, which should be of the form (substr1 + "%n" + substr2 + "%p" + substr3 + "%s" + substr4), where substr1, etc, are user-defined substrings. "%n" indicates the placement of the neighbor_list index, "%p" indicates placement of the DoF-type prefix, and "%s" indicates placement of the DoF-type suffix (all ContinuousDoFs are assumed to report a type-name of the form "prefix_suffix", where 'prefix' denotes the general class of DoF and 'suffix' denotes the particular designation of the type (e.g., STRAIN_F, STRAIN_GL, disp_x, disp_y, etc)
Definition at line 97 of file FunctionVisitor.hh.
Public Member Functions | |
VariableLabeler (const std::string &_template) | |
std::string | type_name () const |
bool | visit (Variable &host, BasisSet const *bset_ptr) const |
virtual bool | visit (OccupantFunction &host, BasisSet const *bset_ptr) const |
virtual bool | visit (PolynomialFunction &host, BasisSet const *bset_ptr) const |
Private Attributes | |
Array< std::string > | m_sub_strings |
std::stringstream | m_ss |
CASM::VariableLabeler::VariableLabeler | ( | const std::string & | _template | ) |
Definition at line 66 of file FunctionVisitor.cc.
|
inlinevirtual |
Implements CASM::FunctionVisitor.
Definition at line 103 of file FunctionVisitor.hh.
|
inlinevirtualinherited |
Reimplemented in CASM::SubExpressionLabeler, CASM::OccFuncBasisIndexer, and CASM::OccFuncLabeler.
Definition at line 35 of file FunctionVisitor.hh.
|
inlinevirtualinherited |
Reimplemented in CASM::SubExpressionLabeler.
Definition at line 38 of file FunctionVisitor.hh.
Reimplemented from CASM::FunctionVisitor.
Definition at line 87 of file FunctionVisitor.cc.
|
mutableprivate |
Definition at line 99 of file FunctionVisitor.hh.
|
private |
Definition at line 98 of file FunctionVisitor.hh.