#include <Any.hxx>
Classes | |
union | ValueContainer |
Public Member Functions | |
Any * | clone () const |
AnyPtr | operator[] (int i) const throw (Exception) |
AnyPtr | operator[] (const char *key) const throw (Exception) |
bool | operator== (const Any &other) const |
int | getIntValue () const throw (Exception) |
bool | getBoolValue () const throw (Exception) |
double | getDoubleValue () const throw (Exception) |
std::string | getStringValue () const throw (Exception) |
Public Member Functions inherited from YACS::ENGINE::Any | |
const TypeCode * | getType () const |
Public Member Functions inherited from YACS::ENGINE::RefCounter | |
unsigned int | getRefCnt () const |
void | incrRef () const |
bool | decrRef () |
Static Public Member Functions | |
template<class T > | |
static AtomAny * | New (T val) |
static AtomAny * | New (char *val, Deallocator dealloc) |
Protected Member Functions | |
void | putMyReprAtPlace (char *data) const |
Protected Member Functions inherited from YACS::ENGINE::Any | |
virtual | ~Any () |
Any (TypeCode *type) | |
Any (const Any &other) | |
Protected Member Functions inherited from YACS::ENGINE::RefCounter | |
RefCounter () | |
RefCounter (const RefCounter &other) | |
virtual | ~RefCounter () |
Static Protected Member Functions | |
static void | putReprAtPlace (char *data, const char *src, const TypeCode *type, bool deepCpy) |
static void | destroyReprAtPlace (char *data, const TypeCode *type) |
static AnyPtr | getOrBuildFromData (char *data, const TypeCode *type) |
static bool | takeInChargeStorageOf (TypeCode *type) |
Static Protected Member Functions inherited from YACS::ENGINE::Any | |
static bool | IsNull (char *data) |
Protected Attributes | |
ValueContainer | _value |
Protected Attributes inherited from YACS::ENGINE::Any | |
TypeCode * | _type |
Protected Attributes inherited from YACS::ENGINE::RefCounter | |
unsigned int | _cnt |
Private Member Functions | |
~AtomAny () | |
AtomAny (int val) | |
AtomAny (bool val) | |
AtomAny (double val) | |
AtomAny (const char *val) | |
AtomAny (const std::string &val) | |
AtomAny (const AtomAny &other) | |
AtomAny (char *data, TypeCode *type) | |
AtomAny (char *val, Deallocator deAlloc) | |
Friends | |
class | TypeCode |
Additional Inherited Members | |
Static Public Attributes inherited from YACS::ENGINE::RefCounter | |
static unsigned int | _totalCnt =0 |
|
private |
Definition at line 309 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, YACS::ENGINE::Any::_type, _value, YACS::ENGINE::TypeCode::kind(), and YACS::ENGINE::String.
|
private |
Definition at line 100 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_i, and _value.
Referenced by clone(), getOrBuildFromData(), and New().
|
private |
Definition at line 105 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_b, and _value.
|
private |
Definition at line 110 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_d, and _value.
|
private |
Definition at line 115 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, and _value.
|
private |
Definition at line 120 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, and _value.
|
private |
Definition at line 125 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_b, YACS::ENGINE::AtomAny::ValueContainer::_d, YACS::ENGINE::AtomAny::ValueContainer::_i, YACS::ENGINE::AtomAny::ValueContainer::_s, YACS::ENGINE::Runtime::_tc_bool, YACS::ENGINE::Runtime::_tc_double, YACS::ENGINE::Runtime::_tc_int, YACS::ENGINE::Runtime::_tc_string, YACS::ENGINE::Any::_type, _value, YACS::ENGINE::TypeCode::getSizeInByteOfAnyReprInSeq(), and YACS::ENGINE::TypeCode::isA().
|
private |
Definition at line 145 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_b, YACS::ENGINE::AtomAny::ValueContainer::_d, YACS::ENGINE::AtomAny::ValueContainer::_i, YACS::ENGINE::AtomAny::ValueContainer::_s, YACS::ENGINE::Runtime::_tc_bool, YACS::ENGINE::Runtime::_tc_double, YACS::ENGINE::Runtime::_tc_int, YACS::ENGINE::Runtime::_tc_string, _value, YACS::ENGINE::TypeCode::getSizeInByteOfAnyReprInSeq(), and YACS::ENGINE::TypeCode::isA().
|
private |
Definition at line 140 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, and _value.
|
virtual |
|
staticprotected |
Definition at line 283 of file Any.cxx.
References YACS::ENGINE::Any::IsNull(), YACS::ENGINE::TypeCode::kind(), and YACS::ENGINE::String.
Referenced by YACS::ENGINE::TypeCode::destroyZippedAny().
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 206 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_b, YACS::ENGINE::Runtime::_tc_bool, YACS::ENGINE::Any::_type, _value, and YACS::ENGINE::TypeCode::isA().
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 214 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_d, YACS::ENGINE::Runtime::_tc_double, YACS::ENGINE::Any::_type, _value, and YACS::ENGINE::TypeCode::isA().
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 198 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_i, YACS::ENGINE::Runtime::_tc_int, YACS::ENGINE::Any::_type, _value, and YACS::ENGINE::TypeCode::isA().
Definition at line 296 of file Any.cxx.
References AtomAny(), and PMMLBasicsTestLauncher::ret.
Referenced by YACS::ENGINE::TypeCode::getOrBuildAnyFromZippedData().
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 222 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, YACS::ENGINE::Runtime::_tc_string, YACS::ENGINE::Any::_type, _value, YACS::ENGINE::StringOnHeap::cStr(), and YACS::ENGINE::TypeCode::isA().
|
inlinestatic |
Definition at line 116 of file Any.hxx.
Referenced by YACS::ENGINE::convertFromYacsDouble< NEUTRALImpl, YACS::ENGINE::Any * >::convert(), YACS::ENGINE::convertFromYacsInt< NEUTRALImpl, YACS::ENGINE::Any * >::convert(), YACS::ENGINE::convertFromYacsString< NEUTRALImpl, YACS::ENGINE::Any * >::convert(), YACS::ENGINE::convertFromYacsBool< NEUTRALImpl, YACS::ENGINE::Any * >::convert(), YACS::ENGINE::convertFromYacsObjref< NEUTRALImpl, YACS::ENGINE::Any * >::convert(), YACS::ENGINE::InputPort::edInit(), YACS::ENGINE::ForLoop::init(), YACS::ENGINE::SequenceAny::SequenceAny(), and YACS::ENGINE::ForLoop::updateStateOnFinishedEventFrom().
|
static |
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 181 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_b, YACS::ENGINE::AtomAny::ValueContainer::_d, YACS::ENGINE::AtomAny::ValueContainer::_i, YACS::ENGINE::AtomAny::ValueContainer::_s, YACS::ENGINE::Runtime::_tc_bool, YACS::ENGINE::Runtime::_tc_double, YACS::ENGINE::Runtime::_tc_int, YACS::ENGINE::Runtime::_tc_string, YACS::ENGINE::Any::_type, _value, YACS::ENGINE::Any::getType(), and YACS::ENGINE::TypeCode::isA().
Implements YACS::ENGINE::Any.
Definition at line 171 of file Any.cxx.
References YACS::ENGINE::Sequence.
Implements YACS::ENGINE::Any.
Definition at line 176 of file Any.cxx.
|
protectedvirtual |
data | : already allocated memory zone where to put compressed content of 'this' |
Implements YACS::ENGINE::Any.
Definition at line 237 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_b, YACS::ENGINE::AtomAny::ValueContainer::_d, YACS::ENGINE::AtomAny::ValueContainer::_i, YACS::ENGINE::AtomAny::ValueContainer::_s, YACS::ENGINE::Runtime::_tc_bool, YACS::ENGINE::Runtime::_tc_double, YACS::ENGINE::Runtime::_tc_int, YACS::ENGINE::Runtime::_tc_string, YACS::ENGINE::Any::_type, _value, YACS::ENGINE::StringOnHeap::deepCopy(), YACS::ENGINE::TypeCode::getSizeInByteOfAnyReprInSeq(), and YACS::ENGINE::TypeCode::isA().
|
staticprotected |
data | : already allocated memory zone where to put compressed content of 'this' |
src | : |
type | : |
deepCpy | : |
Definition at line 263 of file Any.cxx.
References YACS::ENGINE::Runtime::_tc_bool, YACS::ENGINE::Runtime::_tc_double, YACS::ENGINE::Runtime::_tc_int, YACS::ENGINE::Runtime::_tc_string, YACS::ENGINE::TypeCode::getSizeInByteOfAnyReprInSeq(), and YACS::ENGINE::TypeCode::isA().
Referenced by YACS::ENGINE::TypeCode::putReprAtPlace().
|
staticprotected |
Definition at line 303 of file Any.cxx.
References YACS::ENGINE::Bool, YACS::ENGINE::Double, YACS::ENGINE::Int, YACS::ENGINE::TypeCode::kind(), and YACS::ENGINE::String.
|
protected |
Definition at line 142 of file Any.hxx.
Referenced by AtomAny(), getBoolValue(), getDoubleValue(), getIntValue(), getStringValue(), operator==(), putMyReprAtPlace(), and ~AtomAny().