|   |  
  |  
||||||
| 
 |  
|||||||
| 
 faudes::TBaseVector< T > Class Template Reference   Detailed Descriptiontemplate<class T>
 | 
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Classes | |
| class | CIterator | 
| class | Iterator | 
Public Types | |
| typedef std::vector< int >::size_type | Position | 
  Public Types inherited from faudes::vBaseVector | |
| typedef size_t | Position | 
Public Member Functions | |
| TBaseVector (void) | |
| TBaseVector (const TBaseVector &rOtherSet) | |
| TBaseVector (const vBaseVector &rOtherSet) | |
| TBaseVector (const std::string &rFilename, const std::string &rLabel="BaseVector") | |
| virtual | ~TBaseVector (void) | 
| virtual const T * | Elementp (void) const | 
| virtual bool | ElementTry (const Type &rElement) const | 
| virtual const T & | At (const Position &pos) const | 
| virtual T & | At (const Position &pos) | 
| Iterator | Begin (void) | 
| CIterator | Begin (void) const | 
| Iterator | End (void) | 
| CIterator | End (void) const | 
| virtual void | Insert (const T &rElem) | 
| virtual Iterator | Erase (const Iterator &vit) | 
| virtual void | Insert (const Position &pos, const Type &rElem) | 
| virtual void | Insert (const Position &pos, Type *pElem) | 
| virtual void | Insert (const Position &pos, const std::string &rFileName) | 
| virtual void | Erase (const Position &pos) | 
  Public Member Functions inherited from faudes::vBaseVector | |
| vBaseVector (void) | |
| vBaseVector (const vBaseVector &rOtherVector) | |
| vBaseVector (const std::string &rFilename, const std::string &rLabel="Vector") | |
| virtual | ~vBaseVector (void) | 
| void | AssignByReference (vBaseVector &rSourceVector) | 
| virtual const Type & | Element (void) const | 
| virtual Type * | NewElement (void) | 
| virtual void | Clear (void) | 
| Idx | Size (void) const | 
| void | Size (Idx len) | 
| bool | IsDefault (void) const | 
| bool | Empty (void) const | 
| virtual void | Replace (const Position &pos, const Type &rElem) | 
| virtual void | Replace (const Position &pos, Type *pElem) | 
| virtual void | Replace (const Position &pos, const std::string &rFileName) | 
| virtual void | Erase (const Position &pos) | 
| virtual void | Insert (const Position &pos, const Type &rElem) | 
| virtual void | Insert (const Position &pos, Type *pElem) | 
| virtual void | Insert (const Position &pos, const std::string &rFileName) | 
| virtual void | PushBack (const Type &rElem) | 
| virtual void | PushBack (Type *rElem) | 
| virtual void | PushBack (const std::string &rFileName) | 
| virtual void | Append (const Type &rElem) | 
| virtual void | Append (Type *rElem) | 
| virtual void | Append (const std::string &rFileName) | 
| virtual Position | Find (const Type &rElem) | 
| virtual void | EraseDoublets (void) | 
| void | FilenameAt (const Position &pos, const std::string &rFileName) | 
| const std::string & | FilenameAt (const Position &pos) const | 
| void | TakeOwnership (void) | 
| void | TakeCopies (void) | 
  Public Member Functions inherited from faudes::ExtType | |
| ExtType (void) | |
| ExtType (const ExtType &rType) | |
| virtual | ~ExtType (void) | 
| const std::string & | Name (void) const | 
| void | Name (const std::string &rName) | 
| virtual const std::string & | TypeName (void) const | 
| virtual void | TypeName (const std::string &rType) | 
| virtual const std::string & | ElementTag (void) const | 
| virtual void | ElementTag (const std::string &rTag) | 
| virtual const std::string & | ElementType (void) const | 
| virtual const TypeDefinition * | TypeDefinitionp (void) const | 
| Type & | operator= (const Type &rSrc) | 
| bool | operator== (const Type &rOther) const | 
| bool | operator!= (const Type &rOther) const | 
  Public Member Functions inherited from faudes::AttrType | |
| AttrType (void) | |
| AttrType (const AttrType &rSrc) | |
| virtual | ~AttrType (void) | 
| Type & | operator= (const Type &rSrc) | 
| bool | operator== (const Type &rOther) const | 
| bool | operator!= (const Type &rOther) const | 
  Public Member Functions inherited from faudes::Type | |
| Type (void) | |
| Type (const Type &rType) | |
| virtual | ~Type (void) | 
| virtual Type * | New (void) const | 
| virtual Type * | Copy (void) const | 
| virtual const Type * | Cast (const Type *pOther) const | 
| virtual Type & | Assign (const Type &rSrc) | 
| Type & | operator= (const Type &rSrc) | 
| virtual bool | Equal (const Type &rOther) const | 
| bool | operator== (const Type &rOther) const | 
| bool | operator!= (const Type &rOther) const | 
| void | Write (const Type *pContext=0) const | 
| 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 | 
| void | Write (const std::string &pFileName, std::ios::openmode openmode) const | 
| void | Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const | 
| virtual void | XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const | 
| void | XWrite (const Type *pContext=0) const | 
| void | XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const | 
| std::string | ToString (const std::string &rLabel="", const Type *pContext=0) const | 
| std::string | ToText (const std::string &rLabel="", const Type *pContext=0) const | 
| void | DWrite (const Type *pContext=0) const | 
| 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 | 
| void | DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const | 
| void | SWrite (TokenWriter &rTw) const | 
| void | SWrite (void) const | 
| std::string | ToSText (void) const | 
| void | Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) | 
| void | FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0) | 
| void | Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) | 
Protected Member Functions | |
| void | DoAssign (const TBaseVector< T > &rSourceVector) | 
  Protected Member Functions inherited from faudes::vBaseVector | |
| virtual void | DoDWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const | 
| virtual void | DoSWrite (TokenWriter &rTw) const | 
| virtual void | DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const | 
| virtual void | DoXWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const | 
| virtual void | DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) | 
| void | DoAssign (const vBaseVector &rSourceVector) | 
| bool | DoEqual (const vBaseVector &rOther) const | 
  Protected Member Functions inherited from faudes::AttrType | |
| void | DoAssign (const AttrType &rSrc) | 
| bool | DoEqual (const AttrType &rOther) const | 
  Protected Member Functions inherited from faudes::Type | |
| void | DoAssign (const Type &rSrc) | 
| bool | DoEqual (const Type &rOther) const | 
| virtual Token | XBeginTag (const std::string &rLabel="", const std::string &rFallbackLabel="") const | 
Additional Inherited Members | |
  Static Public Member Functions inherited from faudes::AttrType | |
| static void | Skip (TokenReader &rTr) | 
  Protected Types inherited from faudes::vBaseVector | |
| typedef std::vector< ElementRecord >::iterator | iterator | 
  Protected Attributes inherited from faudes::vBaseVector | |
| std::vector< ElementRecord > | mVector | 
| std::string | mElementTagDef | 
  Protected Attributes inherited from faudes::ExtType | |
| std::string | mElementType | 
| std::string | mElementTagDef | 
| std::string | mObjectName | 
| typedef std::vector<int>::size_type faudes::TBaseVector< T >::Position | 
convenience typedef for positions
Definition at line 703 of file cfl_basevector.h.
| faudes::TBaseVector< T >::TBaseVector | ( | void | ) | 
Constructor.
Definition at line 868 of file cfl_basevector.h.
| faudes::TBaseVector< T >::TBaseVector | ( | const TBaseVector< T > & | rOtherSet | ) | 
Copy-constructor.
| rOtherSet | Source to copy from | 
Definition at line 886 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 894 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 876 of file cfl_basevector.h.
      
  | 
  virtual | 
Virtual destructor
Definition at line 902 of file cfl_basevector.h.
      
  | 
  virtual | 
Access element.
| pos | Specify entry to access | 
| Exception | 
  | 
Reimplemented from faudes::vBaseVector.
Definition at line 949 of file cfl_basevector.h.
      
  | 
  virtual | 
Access element.
| pos | Specify entry to access | 
| Exception | 
  | 
Reimplemented from faudes::vBaseVector.
Definition at line 930 of file cfl_basevector.h.
| TBaseVector< T >::Iterator faudes::TBaseVector< T >::Begin | ( | void | ) | 
| TBaseVector< T >::CIterator faudes::TBaseVector< T >::Begin | ( | void | ) | const | 
Iterator to the begin of set, const variant
Definition at line 970 of file cfl_basevector.h.
      
  | 
  protected | 
Assignment method 
 
Definition at line 921 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 908 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 914 of file cfl_basevector.h.
| TBaseVector< T >::Iterator faudes::TBaseVector< T >::End | ( | void | ) | 
| TBaseVector< T >::CIterator faudes::TBaseVector< T >::End | ( | void | ) | const | 
Iterator to the end of set, const variant
Definition at line 972 of file cfl_basevector.h.
      
  | 
  virtual | 
Erase specified entry.
| vit | Iterator to element to erase | 
Definition at line 976 of file cfl_basevector.h.
| void faudes::vBaseVector::Erase | 
Erase entry by position. If the vector owns the entry, it will be destructed.
| pos | Specify entry to erase | 
| Exception | 
  | 
Definition at line 288 of file cfl_basevector.cpp.
| void faudes::vBaseVector::Insert | ( | void | ) | 
Insert specified entry. This method reads the sepcified entry from file and the vector becomes the owner of the new entry.
| pos | Position at which to insert | 
| rFileName | Element to insert | 
| Exception | 
  | 
Definition at line 332 of file cfl_basevector.cpp.
| void faudes::vBaseVector::Insert | ( | void | ) | 
Insert specified entry. This method takes a copy of the entry to be inserted and the vector becomes the owner of the copy.
| pos | Position at which to insert | 
| rElem | Element to insert | 
| Exception | 
  | 
Definition at line 303 of file cfl_basevector.cpp.
| void faudes::vBaseVector::Insert | ( | void | ) | 
Insert specified entry. This method avoids to make a copy and inserts only a reference. The caller remains the owner and is responsable for destruction.
| pos | Position at which to insert | 
| rElem | Element to insert | 
| Exception | 
  | 
Definition at line 318 of file cfl_basevector.cpp.
      
  | 
  virtual | 
Insert specified entry.
Insert with no position defaults to Append/PushBack
| pos | Position at which to insert | 
| rElem | Element to insert | 
| Exception | 
  | 
Definition at line 975 of file cfl_basevector.h.
libFAUDES 2.33l --- 2025.09.16 --- c++ api documentaion by doxygen