|
IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Base class for various vector DTO (Data Transfer Objects) for vectors. Used to store a state of a vector. More...
Inheritance diagram for IG::Lib::VectorDtoBase< VectorType >:
Collaboration diagram for IG::Lib::VectorDtoBase< VectorType >:Public Member Functions | |
| VectorDtoBase () | |
| Default constructor, sets IsNull to true. | |
| VectorDtoBase (int length) | |
| Constructor, prepares the current DTO for storing a vector of the specified dimension. | |
| abstract VectorType | CreateVector (int length) |
| Creates and returns a new vector of the specified dimension. | |
| override VectorType | CreateObject () |
| Creates and returns a new vector of the specified type and dimension. | |
Protected Member Functions | |
| virtual void | AllocateComponents (int dim) |
| Allocates the array that stores vector elements. | |
| override void | CopyFromPlain (IVector vec) |
| Copies data to the current DTO from a vector object. | |
| override void | CopyToPlain (ref IVector vec) |
| Copies data from the current DTO to a vector object. | |
Protected Attributes | |
| int | _length |
| double[] | _elements |
Properties | |
| int | Length [get, set] |
| Vector dimension. | |
| double[] | Elements [get, set] |
| Vector elements. | |
Base class for various vector DTO (Data Transfer Objects) for vectors. Used to store a state of a vector.
| VectorType | Type parameter specifying the specific vector type for which concrete DTO is designed. |
$A Igor Jun09;
| VectorType | : | class | |
| VectorType | : | IVector |
| IG::Lib::VectorDtoBase< VectorType >::VectorDtoBase | ( | ) | [inline] |
Default constructor, sets IsNull to true.
| IG::Lib::VectorDtoBase< VectorType >::VectorDtoBase | ( | int | length | ) | [inline] |
Constructor, prepares the current DTO for storing a vector of the specified dimension.
| length | Dimension of a vector that is stored in the current DTO. |
| virtual void IG::Lib::VectorDtoBase< VectorType >::AllocateComponents | ( | int | dim | ) | [inline, protected, virtual] |
Allocates the array that stores vector elements.
| dim | Vector dimension. |
| abstract VectorType IG::Lib::VectorDtoBase< VectorType >::CreateVector | ( | int | length | ) | [pure virtual] |
Creates and returns a new vector of the specified dimension.
| length | Vector dimension. |
| override VectorType IG::Lib::VectorDtoBase< VectorType >::CreateObject | ( | ) | [inline, virtual] |
Creates and returns a new vector of the specified type and dimension.
Implements IG::Lib::SerializationDtoBase< Type, BaseType >.
| override void IG::Lib::VectorDtoBase< VectorType >::CopyFromPlain | ( | IVector | vec | ) | [inline, protected] |
Copies data to the current DTO from a vector object.
| vec | Vector object from which data is copied. |
| override void IG::Lib::VectorDtoBase< VectorType >::CopyToPlain | ( | ref IVector | vec | ) | [inline, protected] |
Copies data from the current DTO to a vector object.
| vec | Vector object that data is copied to. |
int IG::Lib::VectorDtoBase< VectorType >::_length [protected] |
double [] IG::Lib::VectorDtoBase< VectorType >::_elements [protected] |
int IG::Lib::VectorDtoBase< VectorType >::Length [get, set] |
Vector dimension.
double [] IG::Lib::VectorDtoBase< VectorType >::Elements [get, set] |
Vector elements.