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