Logo Search packages:      
Sourcecode: condor version File versions  Download package

Value Class Reference

#include <value.h>

List of all members.


Detailed Description

Represents the result of an evaluation.

Definition at line 38 of file value.h.


Public Types

enum  NumberFactor {
  NO_FACTOR = 0, B_FACTOR = 1, K_FACTOR = 2, M_FACTOR = 3,
  G_FACTOR = 4, T_FACTOR = 5
}
 Number factors. More...
enum  ValueType {
  NULL_VALUE = 0, ERROR_VALUE = 1<<0, UNDEFINED_VALUE = 1<<1, BOOLEAN_VALUE = 1<<2,
  INTEGER_VALUE = 1<<3, REAL_VALUE = 1<<4, RELATIVE_TIME_VALUE = 1<<5, ABSOLUTE_TIME_VALUE = 1<<6,
  STRING_VALUE = 1<<7, CLASSAD_VALUE = 1<<8, LIST_VALUE = 1<<9
}
 Value types. More...

Public Member Functions

void Clear (void)
void clear (void)
void CopyFrom (const Value &v)
ValueType GetType () const
ValueType getType ()
bool IsAbsoluteTimeValue (abstime_t &secs) const
bool IsAbsoluteTimeValue () const
bool IsBooleanValue () const
bool IsBooleanValue (bool &b) const
bool IsClassAdValue () const
bool IsClassAdValue (ClassAd *&c)
bool IsClassAdValue (const ClassAd *&c) const
bool IsErrorValue () const
bool isErrorValue (void)
bool IsExceptional () const
bool IsIntegerValue () const
bool IsIntegerValue (int &i) const
bool isIntegerValue (int &i)
bool IsListValue () const
bool IsListValue (ExprList *&l)
bool IsListValue (const ExprList *&l) const
bool IsNumber (double &r) const
bool IsNumber (int &i) const
bool IsNumber () const
bool isNumber (double &)
bool isNumber (int &)
bool IsRealValue () const
bool IsRealValue (double &r) const
bool isRealValue (double &r)
bool IsRelativeTimeValue (time_t &secs) const
bool IsRelativeTimeValue (double &secs) const
bool IsRelativeTimeValue () const
bool IsStringValue () const
bool IsStringValue (int &size) const
bool IsStringValue (char *str, int len) const
bool IsStringValue (const char *&str) const
bool IsStringValue (std::string &str) const
bool isStringValue (char *&s)
bool IsUndefinedValue () const
bool isUndefinedValue (void)
Valueoperator= (const Value &value)
 Assignment operator.
const Valueoperator= (const Value &)
bool SameAs (const Value &otherValue) const
void SetAbsoluteTimeValue (abstime_t secs)
void SetBooleanValue (bool b)
void SetClassAdValue (ClassAd *c)
void SetErrorValue (void)
void setErrorValue (void)
void SetIntegerValue (int i)
void setIntegerValue (int i)
void SetListValue (ExprList *l)
void SetRealValue (double r)
void setRealValue (double r)
void SetRelativeTimeValue (double secs)
void SetRelativeTimeValue (time_t secs)
void SetStringValue (const char *str)
void SetStringValue (const std::string &str)
void setStringValue (char *s)
void SetUndefinedValue (void)
void setUndefinedValue (void)
 Value (const Value &value)
 Copy Constructor.
 Value ()
 Constructor.
 ~Value ()
 Destructor.

Public Attributes

StatStructInode asInode
IntVal asInt
struct {
   IntVal   maxVal
   IntVal   minVal
asRange
const char * asStr
abstime_t absTimeValueSecs
bool booleanValue
ClassAdclassadValue
ExprListlistValue
double relTimeValueSecs

Static Public Attributes

static const double ScaleFactor []
 Values of number multiplication factors.

Private Attributes

union {
   abstime_t   absTimeValueSecs
   bool   booleanValue
   ClassAd *   classadValue
   int   integerValue
   ExprList *   listValue
   double   realValue
   double   relTimeValueSecs
}; 
int integerValue
double realValue
std::string strValue
char * strValue
ValueType valueType

Friends

class ClassAd
class ExprTree
class Literal
std::ostream & operator<< (std::ostream &stream, Value &value)
bool operator== (const Value &value1, const Value &value2)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index