PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Definition of kinematics types. More...
Public Types | |
enum | Type { UNDEFINED = 0 , THEO = 1 , EXP = 2 } |
Public Member Functions | |
KinematicType () | |
Default constructor. More... | |
KinematicType (Type type) | |
Assignment constructor. More... | |
KinematicType (const KinematicType &other) | |
Copy constructor. More... | |
operator Type () const | |
Automatic cast to enum. More... | |
std::string | toString () const |
Get string representation of type being assigned to a declared object of this class. More... | |
KinematicType::Type | getType () const |
Get type being assigned to a declared object of this class. More... | |
void | setType (Type type) |
Assign type to a declared object of this class. More... | |
Private Attributes | |
KinematicType::Type | m_type |
Type associated to a declared object of this class. More... | |
Definition of kinematics types.
This class defines a set of enumeration values that are used to distinguish between kinematics type. In addition, a declared object of this class is always associated to one kinematics type (see KinematicType::m_type), so member functions can act on it. E.g.
which gives via Logger:
PARTONS::KinematicType::KinematicType | ( | ) |
Default constructor.
PARTONS::KinematicType::KinematicType | ( | Type | type | ) |
Assignment constructor.
type | Type to be assigned. |
PARTONS::KinematicType::KinematicType | ( | const KinematicType & | other | ) |
Copy constructor.
other | Object to be copied. |
KinematicType::Type PARTONS::KinematicType::getType | ( | ) | const |
Get type being assigned to a declared object of this class.
PARTONS::KinematicType::operator KinematicType::Type | ( | ) | const |
Automatic cast to enum.
void PARTONS::KinematicType::setType | ( | Type | type | ) |
Assign type to a declared object of this class.
std::string PARTONS::KinematicType::toString | ( | ) | const |
Get string representation of type being assigned to a declared object of this class.
|
private |
Type associated to a declared object of this class.