#include <include/EST_Val.h>
Public Member Functions | |
const void * | internal_ptr (void) const |
Constructor and Destructor functions | |
EST_Val () | |
EST_Val (const EST_Val &val) | |
EST_Val (const ssize_t i) | |
EST_Val (const float f) | |
EST_Val (const double d) | |
EST_Val (const EST_String &s) | |
EST_Val (const char *s) | |
EST_Val (val_type type, void *p, void(*f)(void *)) | |
~EST_Val (void) | |
Getting cast values | |
val_type | type (void) const |
int | Int (void) const |
ssize_t | I (void) const |
float | Float (void) const |
float | F (void) const |
const EST_String & | String (void) const |
const EST_String & | string (void) const |
const EST_String & | S (void) const |
const EST_String & | string_only (void) const |
Setting values | |
EST_Val & | operator= (ssize_t i) |
EST_Val & | operator= (const float f) |
EST_Val & | operator= (const double d) |
EST_Val & | operator= (const EST_String &s) |
EST_Val & | operator= (const char *s) |
EST_Val & | operator= (const EST_Val &c) |
Equivalence test | |
int | operator== (const EST_Val &a) const |
int | operator== (const EST_String &a) const |
int | operator== (const char *a) const |
int | operator== (const int &i) const |
int | operator== (const float &f) const |
int | operator== (const double &d) const |
int | operator!= (const EST_Val &a) const |
int | operator!= (const EST_String &a) const |
int | operator!= (const char *a) const |
int | operator!= (const int &i) const |
int | operator!= (const float &f) const |
int | operator!= (const double &d) const |
Automatic casting | |
operator ssize_t () const | |
operator float () const | |
operator EST_String () const | |
Friends | |
ostream & | operator<< (ostream &s, const EST_Val &a) |
The EST_Val class is a container class, used to store a single item which can be an int, float, string or other user-defined class. It is often used as the base item in the EST_Features class, to enable features to take on values of different types.
EST_Val::EST_Val | ( | const EST_Val & | val | ) |
Copy constructor for another EST_Val
Definition at line 48 of file EST_Val.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
EST_Val::EST_Val | ( | val_type | type, |
void * | p, | ||
void(*)(void *) | f | ||
) |
Definition at line 64 of file EST_Val.cc.
EST_Val::~EST_Val | ( | void | ) |
Destructor
Definition at line 71 of file EST_Val.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Assignment of val to another val
Definition at line 80 of file EST_Val.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
EST_Contents* EST_Val::pval |