#include <Vector.h>
Inheritance diagram for FD::Vector< T >:


Public Types | |
| typedef T | basicType |
| You can always get the type of the Vector elements by using typename Vector<T>::basicType. | |
Public Member Functions | |
| Vector () | |
| Default constructor, size of the vector is 0. | |
| Vector (const Vector< T > &v) | |
| Copy constructor. | |
| Vector (size_t n, const T &x=T()) | |
| ~Vector () | |
| Destructor. | |
| virtual size_t | vsize () const |
| return vector size | |
| virtual bool | vempty () const |
| return true if vector empty | |
| void | prettyPrint (std::ostream &out=std::cout) const |
| void | printOn (std::ostream &out) const |
| void | readFrom (std::istream &in=std::cin) |
| virtual void | serialize (std::ostream &out) const |
| virtual void | unserialize (std::istream &in) |
| virtual void | destroy () |
| destroy() will be called by the vector pool to permanently delete a Vector<T> object | |
| std::string | getClassName () |
| ObjectRef | range (size_t startInd, size_t endInd) |
| virtual ObjectRef | getIndex (int pos) |
| virtual void | setIndex (int pos, ObjectRef val) |
| virtual ObjectRef | clone () |
| clone default implementation | |
| template<> | |
| void | printOn (std::ostream &out) const |
| template<> | |
| void | destroy () |
Static Public Member Functions | |
| static Vector< T > * | alloc (size_t size) |
| static std::string | GetClassName () |
|
||||||||||||||||
|
Constructor with a size and an initialization value.
|
|
||||||||||
|
alloc() is called to allocate a vector on the vector pool. The vector, if not used will be placed in the vector pool to be reused later.
|
|
|||||||||
|
clone default implementation Clone the vector and return an identical copy (deep copy) Implements FD::BaseVector. |
|
|||||||||
|
Causes the object to be destroyed, it might be redefined for an object pool Reimplemented from FD::Object. |
|
|||||||||
|
Returns the class name : Vector<T>
|
|
|||||||||
|
Returns the class name : Vector<T>
|
|
||||||||||
|
Returns an element at a desired position in the vector
Implements FD::BaseVector. |
|
||||||||||
|
Formatted output (only values) for Vectors Reimplemented from FD::Object. |
|
||||||||||
|
Generic print function Implements FD::Object. |
|
||||||||||
|
Formatted output in the FlowDesigner format
Implements FD::Object. |
|
||||||||||||||||
|
Returns a new vector containing data from start to end indexes.
Implements FD::BaseVector. |
|
||||||||||
|
Formatted input in the FlowDesigner format
Reimplemented from FD::Object. |
|
||||||||||
|
Binary output in the FlowDesigner format
Reimplemented from FD::Object. |
|
||||||||||||||||
|
Set an element value at the desired position
Implements FD::BaseVector. |
|
||||||||||
|
Binary input in the FlowDesigner format
Reimplemented from FD::Object. |
1.4.4