#include <Any.hxx>
Public Member Functions | |
void | clear () |
void | popBack () |
unsigned int | size () const |
void | pushBack (const Any *elem) |
bool | operator== (const Any &other) const |
void | setEltAtRank (int i, const Any *elem) throw (Exception) |
AnyPtr | operator[] (int i) const throw (Exception) |
Any * | clone () const |
std::vector< unsigned int > | getSetItems () const |
SequenceAny * | removeUnsetItemsFromThis () const |
template<class T > | |
SequenceAny * | New (T *val, unsigned int lgth, Deallocator deAlloc) |
template<class T > | |
SequenceAny * | New (const std::vector< T > &vec) |
Public Member Functions inherited from YACS::ENGINE::ComposedAny | |
AnyPtr | operator[] (const char *key) 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 SequenceAny * | New (const std::vector< T > &vec) |
static SequenceAny * | New (const TypeCode *typeOfContent) |
static SequenceAny * | New (const TypeCode *typeOfContent, unsigned lgth) |
template<class T > | |
static SequenceAny * | New (T *val, unsigned int lgth, Deallocator deAlloc) |
Protected Member Functions | |
void | putMyReprAtPlace (char *data) const |
Protected Member Functions inherited from YACS::ENGINE::ComposedAny | |
ComposedAny (const ComposedAny &other) | |
ComposedAny (TypeCode *type, bool isNew=true) | |
void | checkTypeOf (const Any *elem) const throw (Exception) |
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) |
Protected Attributes | |
SeqAlloc | _alloc |
Private Member Functions | |
~SequenceAny () | |
SequenceAny (const SequenceAny &other) | |
SequenceAny (const TypeCode *typeOfContent) | |
SequenceAny (const TypeCode *typeOfContent, unsigned lgth) | |
SequenceAny (int *val, unsigned int lgth, Deallocator deAlloc) | |
SequenceAny (bool *val, unsigned int lgth, Deallocator deAlloc) | |
SequenceAny (double *val, unsigned int lgth, Deallocator deAlloc) | |
SequenceAny (const std::vector< int > &val) | |
SequenceAny (const std::vector< bool > &val) | |
SequenceAny (const std::vector< double > &val) | |
SequenceAny (const std::vector< std::string > &val) | |
void | realloc (char *endOfCurrentAllocated, const Any *elem) |
char * | performCpy (char *srcStart, char *srcFinish, char *destStart) |
Friends | |
class | TypeCodeSeq |
Additional Inherited Members | |
Static Public Attributes inherited from YACS::ENGINE::RefCounter | |
static unsigned int | _totalCnt =0 |
|
private |
Definition at line 620 of file Any.cxx.
References _alloc, YACS::ENGINE::SeqAlloc::_finish, YACS::ENGINE::SeqAlloc::_sizeOf1Elm, YACS::ENGINE::SeqAlloc::_start, YACS::ENGINE::Any::_type, YACS::ENGINE::TypeCode::contentType(), and YACS::ENGINE::SeqAlloc::destroy().
|
private |
Definition at line 613 of file Any.cxx.
References _alloc, YACS::ENGINE::SeqAlloc::_finish, YACS::ENGINE::SeqAlloc::_sizeOf1Elm, YACS::ENGINE::SeqAlloc::_start, YACS::ENGINE::Any::_type, YACS::ENGINE::SeqAlloc::construct(), and YACS::ENGINE::TypeCode::contentType().
Referenced by clone(), New(), and putReprAtPlace().
|
private |
|
private |
Definition at line 634 of file Any.cxx.
References _alloc, and YACS::ENGINE::SeqAlloc::initCoarseMemory().
|
private |
Definition at line 640 of file Any.cxx.
References _alloc, and YACS::ENGINE::SeqAlloc::initCoarseMemory().
|
private |
Definition at line 646 of file Any.cxx.
References _alloc, and YACS::ENGINE::SeqAlloc::initCoarseMemory().
|
private |
Definition at line 652 of file Any.cxx.
References _alloc, and YACS::ENGINE::SeqAlloc::initCoarseMemory().
|
private |
Definition at line 658 of file Any.cxx.
References _alloc, and YACS::ENGINE::SeqAlloc::initCoarseMemory().
|
private |
|
private |
Definition at line 674 of file Any.cxx.
References _alloc, and YACS::ENGINE::SeqAlloc::initCoarseMemory().
|
private |
void SequenceAny::clear | ( | ) |
Definition at line 472 of file Any.cxx.
References _alloc, YACS::ENGINE::SeqAlloc::_finish, YACS::ENGINE::SeqAlloc::_sizeOf1Elm, YACS::ENGINE::SeqAlloc::_start, YACS::ENGINE::Any::_type, YACS::ENGINE::SeqAlloc::clear(), YACS::ENGINE::TypeCode::contentType(), and YACS::ENGINE::SeqAlloc::destroy().
|
virtual |
|
staticprotected |
Definition at line 552 of file Any.cxx.
References YACS::ENGINE::RefCounter::decrRef(), and YACS::ENGINE::Any::IsNull().
Referenced by YACS::ENGINE::TypeCodeSeq::destroyZippedAny().
Definition at line 560 of file Any.cxx.
References YACS::ENGINE::RefCounter::incrRef().
Referenced by YACS::ENGINE::TypeCodeSeq::getOrBuildAnyFromZippedData().
|
inline |
|
static |
|
static |
Definition at line 585 of file Any.cxx.
References YACS::ENGINE::Runtime::_tc_string, YACS::ENGINE::TypeCode::kind(), YACS::ENGINE::Objref, and SequenceAny().
|
static |
Definition at line 596 of file Any.cxx.
References YACS::ENGINE::Runtime::_tc_string, YACS::ENGINE::TypeCode::kind(), YACS::ENGINE::Objref, and SequenceAny().
|
static |
SequenceAny* YACS::ENGINE::SequenceAny::New | ( | T * | val, |
unsigned int | lgth, | ||
Deallocator | deAlloc | ||
) |
SequenceAny* YACS::ENGINE::SequenceAny::New | ( | const std::vector< T > & | vec | ) |
|
virtual |
Implements YACS::ENGINE::Any.
Definition at line 498 of file Any.cxx.
References YACS::ENGINE::Any::_type, YACS::ENGINE::Any::getType(), CORBAEngineTest::i, YACS::ENGINE::TypeCode::isA(), and size().
Implements YACS::ENGINE::Any.
Definition at line 518 of file Any.cxx.
References CORBAEngineTest::i.
|
private |
Definition at line 709 of file Any.cxx.
References _alloc, YACS::ENGINE::SeqAlloc::_sizeOf1Elm, YACS::ENGINE::Any::_type, YACS::ENGINE::SeqAlloc::construct(), and YACS::ENGINE::TypeCode::contentType().
Referenced by realloc().
void SequenceAny::popBack | ( | ) |
Definition at line 479 of file Any.cxx.
References _alloc, YACS::ENGINE::SeqAlloc::_finish, YACS::ENGINE::SeqAlloc::_sizeOf1Elm, YACS::ENGINE::Any::_type, YACS::ENGINE::TypeCode::contentType(), and YACS::ENGINE::SeqAlloc::destroy().
void SequenceAny::pushBack | ( | const Any * | elem | ) |
Definition at line 485 of file Any.cxx.
References _alloc, YACS::ENGINE::SeqAlloc::_endOfStorage, YACS::ENGINE::SeqAlloc::_finish, YACS::ENGINE::SeqAlloc::_sizeOf1Elm, YACS::ENGINE::Any::_type, YACS::ENGINE::SeqAlloc::construct(), YACS::ENGINE::TypeCode::contentType(), YACS::ENGINE::TypeCode::isA(), YACS::ENGINE::TypeCode::kind(), and realloc().
Referenced by YACS::ENGINE::convertFromYacsSequence< NEUTRALImpl, YACS::ENGINE::Any * >::convert(), and SequenceAny().
|
protectedvirtual |
data | : already allocated memory zone where to put address of 'this' |
Implements YACS::ENGINE::Any.
Definition at line 527 of file Any.cxx.
References YACS::ENGINE::Any::_type, YACS::ENGINE::TypeCode::getSizeInByteOfAnyReprInSeq(), and YACS::ENGINE::RefCounter::incrRef().
|
staticprotected |
Definition at line 536 of file Any.cxx.
References YACS::ENGINE::TypeCode::getSizeInByteOfAnyReprInSeq(), YACS::ENGINE::RefCounter::incrRef(), and SequenceAny().
Referenced by YACS::ENGINE::TypeCodeSeq::putReprAtPlace().
|
private |
Definition at line 690 of file Any.cxx.
References _alloc, YACS::ENGINE::SeqAlloc::_endOfStorage, YACS::ENGINE::SeqAlloc::_finish, YACS::ENGINE::SeqAlloc::_sizeOf1Elm, YACS::ENGINE::SeqAlloc::_start, YACS::ENGINE::Any::_type, YACS::ENGINE::SeqAlloc::allocate(), YACS::ENGINE::SeqAlloc::construct(), YACS::ENGINE::TypeCode::contentType(), YACS::ENGINE::SeqAlloc::deallocate(), YACS::ENGINE::SeqAlloc::destroy(), and performCpy().
Referenced by pushBack().
SequenceAny * SequenceAny::removeUnsetItemsFromThis | ( | ) | const |
Definition at line 572 of file Any.cxx.
References getSetItems(), YACS::ENGINE::Any::getType(), CORBAEngineTest::i, New(), and PMMLBasicsTestLauncher::ret.
Implements YACS::ENGINE::ComposedAny.
Definition at line 511 of file Any.cxx.
References CORBAEngineTest::i.
Referenced by YACS::ENGINE::ForEachLoopPassedData::assignAlreadyDone(), and YACS::ENGINE::nodeParser::onEnd().
|
inline |
Definition at line 196 of file Any.hxx.
Referenced by YACS::ENGINE::ForEachLoopPassedData::assignAlreadyDone(), YACS::ENGINE::convertToYacsSequence< NEUTRALImpl, YACS::ENGINE::Any *, void *, IMPLOUT, TOUT >::convert(), YACS::ENGINE::ForEachLoopPassedData::ForEachLoopPassedData(), SalomeEventLoop::get(), YACS::ENGINE::SeqAnyInputPort::getNumberOfElements(), operator<<(), operator==(), and YACS::ENGINE::InPropertyPort::put().
|
staticprotected |
Definition at line 607 of file Any.cxx.
References YACS::ENGINE::TypeCode::kind(), and YACS::ENGINE::Sequence.
|
friend |
|
protected |
Definition at line 231 of file Any.hxx.
Referenced by clear(), performCpy(), popBack(), pushBack(), realloc(), SequenceAny(), and ~SequenceAny().