Class for sequence objects. More...
#include <TypeCode.hxx>


Public Member Functions | |
| TypeCodeSeq (const char *repositoryId, const char *name, const TypeCode *content) | |
| Create a sequence type with a given name, a given id and a given contained type. More... | |
| TypeCode * | clone () const |
| void | putReprAtPlace (char *pt, const char *val, bool deepCpy) const |
| void | destroyZippedAny (char *data) const |
| virtual unsigned | getSizeInByteOfAnyReprInSeq () const |
| AnyPtr | getOrBuildAnyFromZippedData (char *data) const |
| const char * | id () const |
| const char * | name () const |
| const char * | shortName () const |
| virtual std::string | getPrintStr () const |
| virtual const TypeCode * | contentType () const |
| virtual int | isA (const TypeCode *tc) const |
| virtual int | isAdaptable (const TypeCode *tc) const |
| Check if this TypeCode is adaptable to a given TypeCode (tc) More... | |
| virtual int | isEquivalent (const TypeCode *tc) const |
| Check if this TypeCode can be used in place of tc. More... | |
Public Member Functions inherited from YACS::ENGINE::TypeCode | |
| TypeCode (DynType kind) | |
| DynType | kind () const |
| const char * | getKindRepr () const |
| const TypeCode * | subContentType (int lev) const |
| virtual int | isA (const char *repositoryId) const |
Public Member Functions inherited from YACS::ENGINE::RefCounter | |
| unsigned int | getRefCnt () const |
| void | incrRef () const |
| bool | decrRef () const |
Protected Member Functions | |
| virtual | ~TypeCodeSeq () |
| TypeCodeSeq (const TypeCodeSeq &tc) | |
Protected Member Functions inherited from YACS::ENGINE::TypeCodeComposed | |
| TypeCodeComposed (const TypeCodeComposed &other) | |
| TypeCodeComposed (DynType kind, const char *repositoryId, const char *name) | |
Protected Member Functions inherited from YACS::ENGINE::TypeCode | |
| TypeCode (const TypeCode &tc) | |
| TypeCode & | operator= (const TypeCode &tc) |
| virtual | ~TypeCode () |
Protected Member Functions inherited from YACS::ENGINE::RefCounter | |
| RefCounter () | |
| RefCounter (const RefCounter &other) | |
| virtual | ~RefCounter () |
Private Attributes | |
| const TypeCode * | _content |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::ENGINE::TypeCode | |
| static const char * | getKindRepr (DynType kind) |
| static TypeCode * | interfaceTc (const char *id, const char *name) |
| static factory of object reference type given an id and a name More... | |
| static TypeCode * | interfaceTc (const char *id, const char *name, const std::list< TypeCodeObjref * > <c) |
| static factory of object reference type given an id, a name and a list of base types More... | |
| static TypeCode * | sequenceTc (const char *id, const char *name, TypeCode *content) |
| static factory of sequence type given an id, a name and a content type More... | |
| static TypeCode * | structTc (const char *id, const char *name) |
| static factory of struct type given an id and a name More... | |
Static Public Attributes inherited from YACS::ENGINE::RefCounter | |
| static unsigned int | _totalCnt =0 |
Protected Attributes inherited from YACS::ENGINE::TypeCodeComposed | |
| const std::string | _name |
| const std::string | _repoId |
| std::string | _shortName |
Protected Attributes inherited from YACS::ENGINE::TypeCode | |
| const DynType | _kind |
Protected Attributes inherited from YACS::ENGINE::RefCounter | |
| unsigned int | _cnt |
Static Protected Attributes inherited from YACS::ENGINE::TypeCode | |
| static const char * | KIND_STR_REPR [] ={ "None", "double", "int", "string", "bool", "Objref", "Sequence", "Array","Struct" } |
Class for sequence objects.
Definition at line 159 of file TypeCode.hxx.
| TypeCodeSeq::TypeCodeSeq | ( | const char * | repositoryId, |
| const char * | name, | ||
| const TypeCode * | content | ||
| ) |
Create a sequence type with a given name, a given id and a given contained type.
| repositoryId | : the given id |
| name | : the given name |
| content | : the given contained TypeCode |
Definition at line 419 of file TypeCode.cxx.
References _content, and YACS::ENGINE::RefCounter::incrRef().
Referenced by clone().
|
protectedvirtual |
|
protected |
Definition at line 513 of file TypeCode.cxx.
References _content, and YACS::ENGINE::RefCounter::incrRef().
|
virtual |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 431 of file TypeCode.cxx.
References TypeCodeSeq().
|
virtual |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 476 of file TypeCode.cxx.
References _content.
Referenced by YACS::ENGINE::isAdaptableObjref< IMPLIN, IMPLOUT >::apply(), getPrintStr(), and isAdaptable().
|
virtual |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 441 of file TypeCode.cxx.
References YACS::ENGINE::SequenceAny::destroyReprAtPlace().
|
virtual |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 451 of file TypeCode.cxx.
References YACS::ENGINE::SequenceAny::getOrBuildFromData().
|
virtual |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 470 of file TypeCode.cxx.
References contentType(), and YACS::ENGINE::TypeCode::getPrintStr().
|
virtual |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 446 of file TypeCode.cxx.
|
virtual |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 456 of file TypeCode.cxx.
References YACS::ENGINE::TypeCodeComposed::_repoId.
|
virtual |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 481 of file TypeCode.cxx.
References _content, YACS::ENGINE::TypeCode::_kind, YACS::ENGINE::TypeCode::contentType(), YACS::ENGINE::TypeCode::isA(), and YACS::ENGINE::TypeCode::kind().
|
virtual |
Check if this TypeCode is adaptable to a given TypeCode (tc)
| tc | : the given TypeCode |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 493 of file TypeCode.cxx.
References YACS::ENGINE::TypeCode::_kind, YACS::ENGINE::TypeCode::contentType(), contentType(), YACS::ENGINE::TypeCode::isAdaptable(), and YACS::ENGINE::TypeCode::kind().
|
virtual |
Check if this TypeCode can be used in place of tc.
this TypeCode is equivalent to tc if they have the same kind
| tc | : the TypeCode to compare |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 506 of file TypeCode.cxx.
References _content, YACS::ENGINE::TypeCode::_kind, YACS::ENGINE::TypeCode::contentType(), YACS::ENGINE::TypeCode::isEquivalent(), and YACS::ENGINE::TypeCode::kind().
|
virtual |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 461 of file TypeCode.cxx.
References YACS::ENGINE::TypeCodeComposed::_name.
|
virtual |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 436 of file TypeCode.cxx.
References YACS::ENGINE::SequenceAny::putReprAtPlace().
|
virtual |
Reimplemented from YACS::ENGINE::TypeCode.
Definition at line 465 of file TypeCode.cxx.
References YACS::ENGINE::TypeCodeComposed::_shortName.
|
private |
Definition at line 184 of file TypeCode.hxx.
Referenced by contentType(), isA(), isEquivalent(), TypeCodeSeq(), and ~TypeCodeSeq().