faudes::TBaseVector< T > Class Template Reference
|
Public Types | |
typedef std::vector< int > ::size_type | Position |
convenience typedef for positions | |
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. | |
Protected Member Functions | |
virtual void | DoAssign (const TBaseVector< T > &rSourceVector) |
Assignment method. |
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
Definition at line 554 of file cfl_basevector.h.
typedef std::vector<int>::size_type faudes::TBaseVector< T >::Position |
convenience typedef for positions
Reimplemented from faudes::vBaseVector.
Definition at line 623 of file cfl_basevector.h.
faudes::TBaseVector< T >::TBaseVector | ( | void | ) | [inline] |
Constructor.
Definition at line 680 of file cfl_basevector.h.
faudes::TBaseVector< T >::TBaseVector | ( | const TBaseVector< T > & | rOtherSet | ) | [inline] |
Copy-constructor.
rOtherSet | Source to copy from |
Definition at line 698 of file cfl_basevector.h.
faudes::TBaseVector< T >::TBaseVector | ( | const vBaseVector & | rOtherSet | ) | [inline] |
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" | |||
) | [inline] |
Constructor from file.
rFilename | Name of File | |
rLabel | Section for the set in the file; |
Definition at line 688 of file cfl_basevector.h.
faudes::TBaseVector< T >::~TBaseVector | ( | void | ) | [inline, virtual] |
Virtual destructor.
Definition at line 714 of file cfl_basevector.h.
T & faudes::TBaseVector< T >::At | ( | const Position & | pos | ) | [inline, virtual] |
Access element.
pos | Specify entry to access |
Exception |
|
Reimplemented from faudes::vBaseVector.
Definition at line 761 of file cfl_basevector.h.
const T & faudes::TBaseVector< T >::At | ( | const Position & | pos | ) | const [inline, virtual] |
Access element.
pos | Specify entry to access |
Exception |
|
Reimplemented from faudes::vBaseVector.
Definition at line 742 of file cfl_basevector.h.
void faudes::TBaseVector< T >::DoAssign | ( | const TBaseVector< T > & | rSourceVector | ) | [inline, protected, virtual] |
Assignment method.
Definition at line 733 of file cfl_basevector.h.
const T * faudes::TBaseVector< T >::Elementp | ( | void | ) | const [inline, 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.
bool faudes::TBaseVector< T >::ElementTry | ( | const Type & | rElement | ) | const [inline, 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.23h --- 2014.04.03 --- c++ api documentaion by doxygen