|
|
||||||
|
faudes::TBaseVector< T > Class Template Reference Detailed Descriptiontemplate<class T>
|
Public Types | |
typedef std::vector< int >::size_type | Position |
convenience typedef for positions More... | |
Public Types inherited from faudes::vBaseVector | |
typedef size_t | Position |
convenience typedef for positions (must be unsigned) More... | |
Public Member Functions | |
TBaseVector (void) | |
Constructor. More... | |
TBaseVector (const TBaseVector &rOtherSet) | |
Copy-constructor. More... | |
TBaseVector (const vBaseVector &rOtherSet) | |
Copy-constructor. More... | |
TBaseVector (const std::string &rFilename, const std::string &rLabel="BaseVector") | |
Constructor from file. More... | |
virtual | ~TBaseVector (void) |
Virtual destructor. More... | |
virtual const T * | Elementp (void) const |
Prototype for vector entries. More... | |
virtual bool | ElementTry (const Type &rElement) const |
Test whether the specified element is acceptebla for this vector. More... | |
virtual const T & | At (const Position &pos) const |
Access element. More... | |
virtual T & | At (const Position &pos) |
Access element. More... | |
Public Member Functions inherited from faudes::vBaseVector | |
vBaseVector (void) | |
Constructor. More... | |
vBaseVector (const vBaseVector &rOtherVector) | |
Copy-constructor. More... | |
vBaseVector (const std::string &rFilename, const std::string &rLabel="BaseVector") | |
Constructor from file. More... | |
virtual | ~vBaseVector (void) |
Virtual destructor. More... | |
virtual const Type & | Element (void) const |
Prototype for vector entries. More... | |
virtual Type * | NewElement (void) |
Factory method for vector entries. More... | |
const std::string & | Name (void) const |
Return name of vBaseVector. More... | |
void | Name (const std::string &rName) |
Set name of vBaseVector. More... | |
virtual void | Clear (void) |
Clear all vector. More... | |
Idx | Size (void) const |
Get size of vector. More... | |
void | Size (Idx len) |
Set size of vector. More... | |
bool | Empty (void) const |
Check if the vBaseVector ist Empty. More... | |
virtual void | Replace (const Position &pos, const Type &rElem) |
Replace specified entry. More... | |
virtual void | Replace (const Position &pos, Type *pElem) |
Replace specified entry. More... | |
virtual void | Replace (const Position &pos, const std::string &rFileName) |
Replace specified entry. More... | |
virtual void | Erase (const Position &pos) |
Erase entry by position. More... | |
virtual void | Insert (const Position &pos, const Type &rElem) |
Insert specified entry. More... | |
virtual void | Insert (const Position &pos, Type *rElem) |
Insert specified entry. More... | |
virtual void | Insert (const Position &pos, const std::string &rFileName) |
Insert specified entry. More... | |
virtual void | PushBack (const Type &rElem) |
Append specified entry. More... | |
virtual void | PushBack (Type *rElem) |
Append specified entry. More... | |
virtual void | PushBack (const std::string &rFileName) |
Append specified entry. More... | |
virtual void | Append (const Type &rElem) |
Append specified entry. More... | |
virtual void | Append (Type *rElem) |
Append specified entry. More... | |
virtual void | Append (const std::string &rFileName) |
Append specified entry. More... | |
void | FilenameAt (const Position &pos, const std::string &rFileName) |
Specify a filename. More... | |
const std::string & | FilenameAt (const Position &pos) const |
Get filename of entry. More... | |
void | TakeOwnership (void) |
Take ownership of all entries. More... | |
void | TakeCopies (void) |
Take local copies of all entries. More... | |
Public Member Functions inherited from faudes::Type | |
Type (void) | |
Constructor. More... | |
Type (const Type &rType) | |
Copy constructor. More... | |
virtual | ~Type (void) |
Destructor. More... | |
virtual Type * | New (void) const |
Construct on heap. More... | |
virtual Type * | Copy (void) const |
Construct on heap. More... | |
virtual const Type * | Cast (const Type *pOther) const |
Cast other object to this type. More... | |
virtual Type & | Assign (const Type &rSrc) |
Assign configuration data from other object. More... | |
virtual Type & | operator= (const Type &rSrc) |
Assign configurationdata from other object. More... | |
virtual bool | Equal (const Type &rOther) const |
Test equality of configuration data. More... | |
virtual bool | operator== (const Type &rOther) const |
Test equality of configuration data. More... | |
virtual bool | operator!= (const Type &rOther) const |
Test equality of configuration data. More... | |
virtual const std::string & | TypeName (void) const |
Get objects's type name. More... | |
void | Write (const Type *pContext=0) const |
Write configuration data to console. More... | |
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. More... | |
void | Write (const std::string &pFileName, std::ios::openmode openmode) const |
Write configuration data to a file. More... | |
void | Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
Write configuration data to TokenWriter. More... | |
virtual void | XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const |
Write configuration data to an XML file. More... | |
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. More... | |
void | XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
Write configuration data in XML format to TokenWriter. More... | |
std::string | ToString (const std::string &rLabel="", const Type *pContext=0) const |
Write configuration data to a string. More... | |
std::string | ToText (const std::string &rLabel="", const Type *pContext=0) const |
Write configuration data to a formated string. More... | |
void | DWrite (const Type *pContext=0) const |
Write configuration data to console, debugging format. More... | |
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. More... | |
void | DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
Write configuration data in debug format to TokenWriter. More... | |
void | SWrite (TokenWriter &rTw) const |
Write statistics comment to TokenWriter. More... | |
void | SWrite (void) const |
Write statistics comment to console. More... | |
std::string | ToSText (void) const |
Write statistics to a string. More... | |
void | Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) |
Read configuration data from file with label specified. More... | |
void | FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0) |
Read configuration data from a string. More... | |
void | Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
Read configuration data from TokenReader with label sepcified. More... | |
Protected Member Functions | |
void | DoAssign (const TBaseVector< T > &rSourceVector) |
Assignment method More... | |
Protected Member Functions inherited from faudes::vBaseVector | |
virtual void | DoDWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
Token output, debugging see Type::DWrite for public wrappers. More... | |
virtual void | DoSWrite (TokenWriter &rTw) const |
Token output, see Type::SWrite for public wrappers. More... | |
virtual void | DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
Token output, see Type::Write for public wrappers. More... | |
virtual void | DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
Token input, see Type::Read for public wrappers. More... | |
void | DoAssign (const vBaseVector &rSourceVector) |
Assignment method More... | |
Protected Member Functions inherited from faudes::Type | |
void | DoAssign (const Type &rSrc) |
Assign configuration data from other object. More... | |
bool | DoEqual (const Type &rOther) const |
Test equality of configuration data. More... | |
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. More... | |
virtual const TypeDefinition * | TypeDefinitionp (void) const |
Get objects's type definition. More... | |
virtual Token | XBeginTag (const std::string &rLabel="", const std::string &rFallbackLabel="") const |
Additional Inherited Members | |
Protected Types inherited from faudes::vBaseVector | |
typedef std::vector< ElementRecord >::iterator | iterator |
convenience typedef More... | |
Protected Attributes inherited from faudes::vBaseVector | |
std::vector< ElementRecord > | mVector |
STL vector of element. More... | |
typedef std::vector<int>::size_type faudes::TBaseVector< T >::Position |
convenience typedef for positions
Definition at line 623 of file cfl_basevector.h.
faudes::TBaseVector< T >::TBaseVector | ( | void | ) |
Constructor.
Definition at line 680 of file cfl_basevector.h.
faudes::TBaseVector< T >::TBaseVector | ( | const TBaseVector< T > & | rOtherSet | ) |
Copy-constructor.
rOtherSet | Source to copy from |
Definition at line 698 of file cfl_basevector.h.
faudes::TBaseVector< T >::TBaseVector | ( | const vBaseVector & | rOtherSet | ) |
Copy-constructor.
This version takes any vector as source, but throughs an exception, if element types dont match.
rOtherSet | Source to copy from |
Exception |
|
Definition at line 706 of file cfl_basevector.h.
faudes::TBaseVector< T >::TBaseVector | ( | const std::string & | rFilename, |
const std::string & | rLabel = "BaseVector" |
||
) |
Constructor from file.
rFilename | Name of File |
rLabel | Section for the set in the file; |
Definition at line 688 of file cfl_basevector.h.
|
virtual |
Virtual destructor.
Definition at line 714 of file cfl_basevector.h.
|
virtual |
Access element.
pos | Specify entry to access |
Exception |
|
Reimplemented from faudes::vBaseVector.
Definition at line 761 of file cfl_basevector.h.
|
virtual |
Access element.
pos | Specify entry to access |
Exception |
|
Reimplemented from faudes::vBaseVector.
Definition at line 742 of file cfl_basevector.h.
|
protected |
Assignment method
Definition at line 733 of file cfl_basevector.h.
|
virtual |
Prototype for vector entries.
This template class uses the virtual function to know its element type.
Reimplemented from faudes::vBaseVector.
Definition at line 720 of file cfl_basevector.h.
|
virtual |
Test whether the specified element is acceptebla for this vector.
This is a convenience wrapper for Elementp.
rElement | Element to type check. |
Reimplemented from faudes::vBaseVector.
Definition at line 726 of file cfl_basevector.h.
libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen