9 #ifndef ThePEG_Direction_H 10 #define ThePEG_Direction_H 13 #include "ThePEG/Config/ThePEG.h" 14 #include "Direction.xh" 64 else throw UndefinedDirectionException(I);
97 static void set(
Dir newDirection) {
100 else throw UndefinedDirectionException(I);
static Dir dir()
Return the direction.
Direction(bool p)
Create an object with a positive direction if p is true, otherwise set the negative direction...
static void reverse()
Reverse the direction.
~Direction()
Destructure makeing the static variable undefined.
This is the main namespace within which all identifiers in ThePEG are declared.
Standard (positive) direction.
static bool pos()
Return true if the direction is positive.
static Dir theDirection
The direction.
Direction()
Default ctors and assignment is private and not implemented.
Dir
The enum defining the directions.
No direction has been defined.
Direction(double rnd)
Create an object with a positive direction if rnd > 0.5, otherwise set the negative direction...
static bool neg()
Return true if the direction is negative (reversed).
Standard (positive) direction.
Direction & operator=(const Direction &)
Default ctors and assignment is private and not implemented.
Direction(Dir newDirection)
Create an object with a given direction.
A Direction object can be used to specify that some following operations should be assumed to be perf...