Public Member Functions |
| TBaseVector (void) |
| Constructor.
|
| TBaseVector (const TBaseVector &rOtherSet) |
| Copy-constructor.
|
| TBaseVector (const vBaseVector &rOtherSet) |
| Copy-constructor.
|
| TBaseVector (const std::string &rFilename, const std::string &rLabel="BaseVector") |
| Constructor from file.
|
virtual | ~TBaseVector (void) |
| Virtual destructor.
|
virtual const T * | Elementp (void) const |
| Prototype for vector entries.
|
virtual bool | ElementTry (const Type &rElement) const |
| Test whether the specified element is acceptebla for this vector.
|
virtual const T & | At (const Position &pos) const |
| Access element.
|
virtual T & | At (const Position &pos) |
| Access element.
|
| vBaseVector (void) |
| Constructor.
|
| vBaseVector (const vBaseVector &rOtherVector) |
| Copy-constructor.
|
| vBaseVector (const std::string &rFilename, const std::string &rLabel="BaseVector") |
| Constructor from file.
|
virtual | ~vBaseVector (void) |
| Virtual destructor.
|
virtual const Type & | Element (void) const |
| Prototype for vector entries.
|
virtual Type * | NewElement (void) |
| Factory method for vector entries.
|
const std::string & | Name (void) const |
| Return name of vBaseVector.
|
void | Name (const std::string &rName) |
| Set name of vBaseVector.
|
virtual void | Clear (void) |
| Clear all vector.
|
Idx | Size (void) const |
| Get size of vector.
|
void | Size (Idx len) |
| Set size of vector.
|
bool | Empty (void) const |
| Check if the vBaseVector ist Empty.
|
virtual void | Replace (const Position &pos, const Type &rElem) |
| Replace specified entry.
|
virtual void | Replace (const Position &pos, Type *pElem) |
| Replace specified entry.
|
virtual void | Replace (const Position &pos, const std::string &rFileName) |
| Replace specified entry.
|
virtual void | Erase (const Position &pos) |
| Erase entry by position.
|
virtual void | Insert (const Position &pos, const Type &rElem) |
| Insert specified entry.
|
virtual void | Insert (const Position &pos, Type *rElem) |
| Insert specified entry.
|
virtual void | Insert (const Position &pos, const std::string &rFileName) |
| Insert specified entry.
|
virtual void | PushBack (const Type &rElem) |
| Append specified entry.
|
virtual void | PushBack (Type *rElem) |
| Append specified entry.
|
virtual void | PushBack (const std::string &rFileName) |
| Append specified entry.
|
virtual void | Append (const Type &rElem) |
| Append specified entry.
|
virtual void | Append (Type *rElem) |
| Append specified entry.
|
virtual void | Append (const std::string &rFileName) |
| Append specified entry.
|
void | FilenameAt (const Position &pos, const std::string &rFileName) |
| Specify a filename.
|
const std::string & | FilenameAt (const Position &pos) const |
| Get filename of entry.
|
void | TakeOwnership (void) |
| Take ownership of all entries.
|
void | TakeCopies (void) |
| Take local copies of all entries.
|
| Type (void) |
| Constructor.
|
| Type (const Type &rType) |
| Copy constructor.
|
virtual | ~Type (void) |
| Destructor.
|
virtual Type * | New (void) const |
| Construct on heap.
|
virtual Type * | Copy (void) const |
| Construct on heap.
|
virtual const Type * | Cast (const Type *pOther) const |
| Cast other object to this type.
|
virtual Type & | Assign (const Type &rSrc) |
| Assign configuration data from other object.
|
virtual Type & | operator= (const Type &rSrc) |
| Assign configurationdata from other object.
|
virtual bool | Equal (const Type &rOther) const |
| Test equality of configuration data.
|
virtual bool | operator== (const Type &rOther) const |
| Test equality of configuration data.
|
virtual bool | operator!= (const Type &rOther) const |
| Test equality of configuration data.
|
void | Write (const Type *pContext=0) const |
| Write configuration data to console.
|
void | Write (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const |
| Write configuration data to a file.
|
void | Write (const std::string &pFileName, std::ios::openmode openmode) const |
| Write configuration data to a file.
|
void | Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data to TokenWriter.
|
virtual void | XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data to an XML file.
|
void | XWrite (const Type *pContext=0) const |
| Write configuration data in XML format to concole Note: this write function uses the virtual function DoXWrite(), to be reimplemented by derived classes.
|
void | XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data in XML format to TokenWriter.
|
std::string | ToString (const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data to a string.
|
std::string | ToText (const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data to a formated string.
|
void | DWrite (const Type *pContext=0) const |
| Write configuration data to console, debugging format.
|
void | DWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const |
| Write configuration data to a file, debugging format.
|
void | DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data in debug format to TokenWriter.
|
void | SWrite (TokenWriter &rTw) const |
| Write statistics comment to TokenWriter.
|
void | SWrite (void) const |
| Write statistics comment to console.
|
std::string | ToSText (void) const |
| Write statistics to a string.
|
void | Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) |
| Read configuration data from file with label specified.
|
void | FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0) |
| Read configuration data from a string.
|
void | Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
| Read configuration data from TokenReader with label sepcified.
|
Protected Member Functions |
void | DoAssign (const TBaseVector< T > &rSourceVector) |
| Assignment method.
|
virtual void | DoDWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Token output, debugging see Type::DWrite for public wrappers.
|
virtual void | DoSWrite (TokenWriter &rTw) const |
| Token output, see Type::SWrite for public wrappers.
|
virtual void | DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Token output, see Type::Write for public wrappers.
|
virtual void | DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
| Token input, see Type::Read for public wrappers.
|
void | DoAssign (const vBaseVector &rSourceVector) |
| Assignment method.
|
void | DoAssign (const Type &rSrc) |
| Assign configuration data from other object.
|
bool | DoEqual (const Type &rOther) const |
| Test equality of configuration data.
|
virtual void | DoXWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data of this object to TokenWriter in XML format.
|
virtual const TypeDefinition * | TypeDefinitionp (void) const |
| Get objects's type definition.
|
virtual const std::string & | TypeName (void) const |
| Get objects's type name.
|
virtual Token | XBeginTag (const std::string &rLabel="", const std::string &rFallbackLabel="") const |
template<class T>
class faudes::TBaseVector< T >
Vector template.
The vector templates specializes the bass vBaseVector in that it uses the template paremeter to specify the type of its entries. See vBaseVector for element access methods.
TVectorSet serves is used to implement the libFaudes vectors
- GeneratorVector (vector or generators)
- SytemVector (vector or generators)
- EventSetVector (vector of event sets)
- AlphabetVector (vector of event sets)
Definition at line 554 of file cfl_basevector.h.