CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
TestCompN.hh
Go to the documentation of this file.
1 #ifndef CASM_TestCompN
2 #define CASM_TestCompN
3 
4 #include "casm/clex/ConfigIO.hh"
5 
6 extern "C" {
8 }
9 
10 namespace CASM {
11 
12  namespace ConfigIO {
13 
18 
19  public:
20 
21  static const std::string Name;
22 
23  static const std::string Desc;
24 
25 
27  MolDependent(Name, Desc) {}
28 
29 
30  // --- Required implementations -----------
31 
33  Eigen::VectorXd evaluate(const Configuration &config) const override;
34 
36  std::unique_ptr<TestCompN> clone() const {
37  return std::unique_ptr<TestCompN>(this->_clone());
38  }
39 
40  private:
41 
43  TestCompN *_clone() const override {
44  return new TestCompN(*this);
45  }
46 
47  };
48 
49  }
50 
51 }
52 
53 #endif
Calculate number of each species per unit cell.
Definition: TestCompN.hh:17
Main CASM namespace.
Definition: complete.cpp:8
static const std::string Desc
Definition: TestCompN.hh:23
MolDependent(const std::string &_name, const std::string &_desc)
Definition: ConfigIO.hh:42
Eigen::VectorXd evaluate(const Configuration &config) const override
Returns the parametric composition.
Definition: TestCompN.cc:22
Eigen::VectorXd VectorXd
CASM::BaseDatumFormatter< CASM::Configuration > * make_TestCompN_formatter()
Definition: TestCompN.cc:5
Abstract base class from which all other DatumFormatter classes inherit.
Returns fraction of sites occupied by a species.
Definition: ConfigIO.hh:38
std::unique_ptr< TestCompN > clone() const
Clone using copy constructor.
Definition: TestCompN.hh:36
static const std::string Name
Definition: TestCompN.hh:21
TestCompN * _clone() const override
Clone using copy constructor.
Definition: TestCompN.hh:43
A Configuration represents the values of all degrees of freedom in a Supercell.