#include <Any.hxx>


Classes | |
| union | ValueContainer |
Public Member Functions | |
| Any * | clone () const |
| AnyPtr | operator[] (int i) const |
| AnyPtr | operator[] (const char *key) const |
| bool | operator== (const Any &other) const |
| int | getIntValue () const |
| bool | getBoolValue () const |
| double | getDoubleValue () const |
| std::string | getStringValue () const |
| const char * | getBytesValue (std::size_t &len) const |
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 () const |
Static Public Member Functions | |
| template<class T > | |
| static AtomAny * | New (T val) |
| static AtomAny * | New (char *val, Deallocator dealloc) |
| static AtomAny * | New (const std::string &val, TypeCode *type) |
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 std::string &val, TypeCode *type) | |
| AtomAny (const AtomAny &other) | |
| AtomAny (char *data, TypeCode *type) | |
| AtomAny (char *val, Deallocator deAlloc) | |
Friends | |
| class | TypeCode |
| class | TypeCodeObjref |
Additional Inherited Members | |
Static Public Attributes inherited from YACS::ENGINE::RefCounter | |
| static unsigned int | _totalCnt =0 |
|
private |
Definition at line 494 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, YACS::ENGINE::Any::_type, _value, YACS::ENGINE::TypeCode::kind(), YACS::ENGINE::Objref, and YACS::ENGINE::String.
|
private |
Definition at line 258 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_i, and _value.
Referenced by clone(), getOrBuildFromData(), and New().
|
private |
Definition at line 263 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_b, and _value.
|
private |
Definition at line 268 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_d, and _value.
|
private |
Definition at line 273 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, and _value.
|
private |
Definition at line 278 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, and _value.
|
private |
Definition at line 283 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, and _value.
|
private |
Definition at line 288 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(), YACS::ENGINE::TypeCode::isA(), YACS::ENGINE::TypeCode::kind(), and YACS::ENGINE::Objref.
|
private |
Definition at line 308 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(), YACS::ENGINE::TypeCode::isA(), YACS::ENGINE::TypeCode::kind(), and YACS::ENGINE::Objref.
|
private |
Definition at line 303 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, and _value.
|
virtual |
|
staticprotected |
Definition at line 468 of file Any.cxx.
References YACS::ENGINE::Any::IsNull(), YACS::ENGINE::TypeCode::kind(), YACS::ENGINE::Objref, and YACS::ENGINE::String.
Referenced by YACS::ENGINE::TypeCode::destroyZippedAny(), and YACS::ENGINE::TypeCodeObjref::destroyZippedAny().
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 374 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().
| const char * AtomAny::getBytesValue | ( | std::size_t & | len | ) | const |
Definition at line 404 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, YACS::ENGINE::Runtime::_tc_string, YACS::ENGINE::Any::_type, _value, YACS::ENGINE::StringOnHeap::cStr(), YACS::ENGINE::TypeCode::isA(), YACS::ENGINE::TypeCode::kind(), YACS::ENGINE::Objref, and YACS::ENGINE::StringOnHeap::size().
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 382 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 366 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 481 of file Any.cxx.
References AtomAny().
Referenced by YACS::ENGINE::TypeCode::getOrBuildAnyFromZippedData(), and YACS::ENGINE::TypeCodeObjref::getOrBuildAnyFromZippedData().
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 390 of file Any.cxx.
References YACS::ENGINE::AtomAny::ValueContainer::_s, YACS::ENGINE::Runtime::_tc_string, YACS::ENGINE::Any::_type, _value, YACS::ENGINE::StringOnHeap::cStr(), YACS::ENGINE::TypeCode::isA(), YACS::ENGINE::TypeCode::kind(), YACS::ENGINE::Objref, and YACS::ENGINE::StringOnHeap::size().
|
static |
|
inlinestatic |
Definition at line 126 of file Any.hxx.
Referenced by YACS::ENGINE::convertFromYacsBool< NEUTRALImpl, YACS::ENGINE::Any * >::convert(), 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::convertFromYacsObjref< NEUTRALImpl, YACS::ENGINE::Any * >::convert(), YACS::ENGINE::InputPort::edInit(), YACS::ENGINE::ForLoop::init(), YACS::ENGINE::SequenceAny::SequenceAny(), and YACS::ENGINE::ForLoop::updateStateOnFinishedEventFrom().
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 349 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(), YACS::ENGINE::TypeCode::isA(), YACS::ENGINE::TypeCode::kind(), and YACS::ENGINE::Objref.
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 344 of file Any.cxx.
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 339 of file Any.cxx.
References YACS::ENGINE::Any::_type, YACS::ENGINE::TypeCode::kind(), and YACS::ENGINE::Sequence.
|
protectedvirtual |
| data | : already allocated memory zone where to put compressed content of 'this' |
Implements YACS::ENGINE::Any.
Definition at line 422 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(), YACS::ENGINE::TypeCode::isA(), YACS::ENGINE::TypeCode::kind(), and YACS::ENGINE::Objref.
|
staticprotected |
| data | : already allocated memory zone where to put compressed content of 'this' |
| src | : |
| type | : |
| deepCpy | : |
Definition at line 448 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(), YACS::ENGINE::TypeCode::isA(), YACS::ENGINE::TypeCode::kind(), and YACS::ENGINE::Objref.
Referenced by YACS::ENGINE::TypeCode::putReprAtPlace(), and YACS::ENGINE::TypeCodeObjref::putReprAtPlace().
|
staticprotected |
Definition at line 488 of file Any.cxx.
References YACS::ENGINE::Bool, YACS::ENGINE::Double, YACS::ENGINE::Int, YACS::ENGINE::TypeCode::kind(), and YACS::ENGINE::String.
|
friend |
|
protected |
Definition at line 155 of file Any.hxx.
Referenced by AtomAny(), getBoolValue(), getBytesValue(), getDoubleValue(), getIntValue(), getStringValue(), operator==(), putMyReprAtPlace(), and ~AtomAny().