![]() |
SynAPSE
0.6.0
Synergistic Analysis of Phase Space Evolution
|
Represents a single global variable and defines the methods to read it. More...
#include <Globals.hh>
Public Member Functions | |
| Global () | |
| Default constructor, initializes everything to 0. More... | |
| Global (const std::string &val) | |
| Proper constructor. More... | |
| Global (const Global &global) | |
| Copy constructor. More... | |
| Global & | operator= (const Global &global) |
| Equality operator. More... | |
| ~Global () | |
| Destructor. More... | |
| bool | AsBool () const |
| Returns the variable as a bool. More... | |
| int | AsInt () const |
| Returns the variable as an int. More... | |
| long int | AsLongInt () const |
| Returns the variable as a long int. More... | |
| long int | AsBase (int base) const |
| Returns the variable as an int in the requested base. More... | |
| float | AsFloat () const |
| Returns the variable as a float. More... | |
| double | AsDouble () const |
| Returns the variable as a double. More... | |
| void | SetDescription (const std::string &des) |
| Sets the decription of the varibale. More... | |
| const std::string & | Description () const |
| Returns the decription of the varibale. More... | |
| const std::string & | AsString () const |
| Returns the variable as an std::string. More... | |
| bool | operator! () const |
| Overload the unary ! operator. More... | |
| operator bool () const | |
| Overload the bool cast operator. More... | |
| operator int () const | |
| Overload the int cast operator. More... | |
| operator long int () const | |
| Overload the long int cast operator. More... | |
| operator size_t () const | |
| Overload the size_t cast operator. More... | |
| operator float () const | |
| Overload the float cast operator. More... | |
| operator double () const | |
| Overload the double cast operator. More... | |
| operator std::string () const | |
| Overload the std::string cast operator. More... | |
Private Attributes | |
| std::string | _val |
| Global variable stored as an std::string. More... | |
| std::string | _des |
| Description of the global variable. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Global &global) |
| Overloads the ostream operator. More... | |
Represents a single global variable and defines the methods to read it.
|
inline |
Default constructor, initializes everything to 0.
|
inline |
Proper constructor.
|
inline |
Copy constructor.
|
inline |
Destructor.
|
inline |
Returns the variable as an int in the requested base.
|
inline |
Returns the variable as a bool.
|
inline |
Returns the variable as a double.
|
inline |
Returns the variable as a float.
|
inline |
Returns the variable as an int.
|
inline |
Returns the variable as a long int.
|
inline |
Returns the variable as an std::string.
|
inline |
Returns the decription of the varibale.
|
inline |
Overload the bool cast operator.
|
inline |
Overload the double cast operator.
|
inline |
Overload the float cast operator.
|
inline |
Overload the int cast operator.
|
inline |
Overload the long int cast operator.
|
inline |
Overload the size_t cast operator.
|
inline |
Overload the std::string cast operator.
|
inline |
Overload the unary ! operator.
|
inline |
Sets the decription of the varibale.
|
friend |
Overloads the ostream operator.
|
private |
Description of the global variable.
|
private |
Global variable stored as an std::string.
1.8.6