Represent one side of a mass constraint equation. Contains the abstract base class Constraint_Intermed and concrete implementations Constraint_Intermed_Constant and Constraint_Intermed_Labels. More...
#include <iosfwd>
#include <vector>
#include <string>
#include <memory>
Go to the source code of this file.
Classes | |
class | hitfit::Constraint_Intermed |
Abstract base classes for describing one side of a mass constraint. More... | |
class | hitfit::Constraint_Intermed_Constant |
Concrete class for one side of mass constraint equation of the type: . More... | |
class | hitfit::Constraint_Intermed_Labels |
Concrete class for one side of mass constraint equation of the type: . More... | |
Namespaces | |
hitfit | |
Functions | |
std::unique_ptr< Constraint_Intermed > | hitfit::make_constraint_intermed (std::string s) |
std::ostream & | hitfit::operator<< (std::ostream &s, const hitfit::Constraint_Intermed &ci) |
Output stream operator, print the content of this Constraint_Intermed to an output stream. More... | |
Represent one side of a mass constraint equation. Contains the abstract base class Constraint_Intermed and concrete implementations Constraint_Intermed_Constant and Constraint_Intermed_Labels.
Mass constraints come in two varieties, either saying that the sum of a set of labels should equal a constant:
.
or that two such sums should equal each other:
.
These classes represent one side of such an equation. There is an abstract base class Constraint_Intermed, and then the concrete implementations of the two cases, Constraint_Intermed_Constant and Constraint_Intermed_Labels. There is also a free function make_constant_intermed() to parse a string representation one side of the constraint and return the appropriate Constraint_Intermed instance.
Definition in file Constraint_Intermed.h.