PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Definition of comparison modes. More...
Public Types | |
enum | Type { UNDEFINED = 0 , EQUAL = 1 , INTERSECTION = 2 } |
Public Member Functions | |
ComparisonMode () | |
Default constructor. More... | |
ComparisonMode (Type type) | |
Assignment 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... | |
std::string | getShortName () const |
Get short name representation of type being assigned to a declared object of this class. More... | |
ComparisonMode::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 | |
ComparisonMode::Type | m_type |
Type associated to a declared object of this class. More... | |
Definition of comparison modes.
This class defines a set of enumeration values that are used to distinguish between comparison modes. In addition, a declared object of this class is always associated to one comparison mode (see ComparisonMode::m_type), so member functions can act on it. E.g.
which gives via Logger:
PARTONS::ComparisonMode::ComparisonMode | ( | ) |
Default constructor.
PARTONS::ComparisonMode::ComparisonMode | ( | Type | type | ) |
Assignment constructor.
type | Type to be assigned. |
std::string PARTONS::ComparisonMode::getShortName | ( | ) | const |
Get short name representation of type being assigned to a declared object of this class.
ComparisonMode::Type PARTONS::ComparisonMode::getType | ( | ) | const |
Get type being assigned to a declared object of this class.
PARTONS::ComparisonMode::operator ComparisonMode::Type | ( | ) | const |
Automatic cast to enum.
void PARTONS::ComparisonMode::setType | ( | Type | type | ) |
Assign type to a declared object of this class.
std::string PARTONS::ComparisonMode::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.