CASM
AClustersApproachtoStatisticalMechanics
|
#include <CoordinateSystems.hh>
COORD_MODE specifies the current coordinate mode (Fractional or Cartesian)
COORD_MODE is a container for the global coordinate system mode i.e., fractional or cartesian. The global coordinate mode is contained in ACTIVE_MODE. In order for ACTIVE_MODE to be initialized properly, the following line must be added before 'int main()': COORD_TYPE COORD_MODE::ACTIVE_MODE = FRAC;
Definition at line 40 of file CoordinateSystems.hh.
Public Member Functions | |
COORD_MODE (COORD_TYPE new_mode) | |
~COORD_MODE () | |
void | set (const COORD_TYPE new_mode) |
COORD_TYPE | check () |
Static Public Member Functions | |
static bool | IS_CART () |
Static method to check if mode is CART (call using COORD_MODE::IS_CART() ) More... | |
static bool | IS_FRAC () |
Static method to check if mode is FRAC (call using COORD_MODE::IS_FRAC() ) More... | |
static COORD_TYPE | CHECK () |
get the current mode (call using COORD_MODE::CHECK()) More... | |
static std::string | NAME () |
get a string with the name of the active mode More... | |
static std::string | NAME (COORD_TYPE mode) |
Private Attributes | |
COORD_TYPE | old_mode |
old_mode specifies the value of ACTIVE_MODE when this COORD_MODE object was instantiated More... | |
Static Private Attributes | |
static COORD_TYPE | ACTIVE_MODE = FRAC |
|
inline |
Definition at line 75 of file CoordinateSystems.hh.
|
inline |
Definition at line 79 of file CoordinateSystems.hh.
|
inlinestatic |
get the current mode (call using COORD_MODE::CHECK())
Definition at line 61 of file CoordinateSystems.hh.
|
inline |
Definition at line 86 of file CoordinateSystems.hh.
|
inlinestatic |
Static method to check if mode is CART (call using COORD_MODE::IS_CART() )
Definition at line 52 of file CoordinateSystems.hh.
|
inlinestatic |
Static method to check if mode is FRAC (call using COORD_MODE::IS_FRAC() )
Definition at line 56 of file CoordinateSystems.hh.
|
inlinestatic |
get a string with the name of the active mode
Definition at line 66 of file CoordinateSystems.hh.
|
inlinestatic |
Definition at line 69 of file CoordinateSystems.hh.
|
inline |
Definition at line 83 of file CoordinateSystems.hh.
|
staticprivate |
ACTIVE_MODE is a hidden global variable that specifies what coordinate system (CART or FRAC) is currently in use
Definition at line 45 of file CoordinateSystems.hh.
|
private |
old_mode specifies the value of ACTIVE_MODE when this COORD_MODE object was instantiated
Definition at line 48 of file CoordinateSystems.hh.