Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

FD::BaseVector Class Reference

#include <Vector.h>

Inheritance diagram for FD::BaseVector:

Inheritance graph
[legend]
Collaboration diagram for FD::BaseVector:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BaseVector ()
 constructor
virtual size_t vsize () const =0
 return vector size
virtual bool vempty () const =0
 return true if vector empty
virtual ObjectRef range (size_t startInd, size_t endInd)=0
virtual ObjectRef getIndex (int pos)=0
virtual void setIndex (int pos, ObjectRef val)=0
virtual ObjectRef clone ()=0

Detailed Description

Base class for all vector types, it holds the size and handles some common operations for all vector types.
Author:
Jean-Marc Valin


Member Function Documentation

virtual ObjectRef FD::BaseVector::clone  )  [pure virtual]
 

Clone the vector and return an identical copy (deep copy)

Reimplemented from FD::Object.

Implemented in FD::Vector< T >, FD::Vector< RCPtr< Covariance > >, FD::Vector< double >, FD::Vector< RCPtr< GMM > >, FD::Vector< float >, FD::Vector< int >, FD::Vector< Vector< float > >, FD::Vector< RCPtr< FFLayer > >, FD::Vector< RCPtr< Mean > >, FD::Vector< RCPtr< Gaussian > >, and FD::Vector< ObjectRef >.

virtual ObjectRef FD::BaseVector::getIndex int  pos  )  [pure virtual]
 

Returns an element (in an ObjectRef) of the vector

Parameters:
pos the position of the element
Returns:
ObjectRef the newly created Object

Implemented in FD::Vector< T >, FD::Vector< RCPtr< Covariance > >, FD::Vector< double >, FD::Vector< RCPtr< GMM > >, FD::Vector< float >, FD::Vector< int >, FD::Vector< Vector< float > >, FD::Vector< RCPtr< FFLayer > >, FD::Vector< RCPtr< Mean > >, FD::Vector< RCPtr< Gaussian > >, and FD::Vector< ObjectRef >.

virtual ObjectRef FD::BaseVector::range size_t  startInd,
size_t  endInd
[pure virtual]
 

Returns a new vector (in an ObjectRef) with a range of indexes of the same type.

Parameters:
startInd start index
endInd end indix
Returns:
new vector in an ObjectRef

Implemented in FD::Vector< T >, FD::Vector< RCPtr< Covariance > >, FD::Vector< double >, FD::Vector< RCPtr< GMM > >, FD::Vector< float >, FD::Vector< int >, FD::Vector< Vector< float > >, FD::Vector< RCPtr< FFLayer > >, FD::Vector< RCPtr< Mean > >, FD::Vector< RCPtr< Gaussian > >, and FD::Vector< ObjectRef >.

virtual void FD::BaseVector::setIndex int  pos,
ObjectRef  val
[pure virtual]
 

Set an element value at the desired position

Parameters:
pos The position in the vector
val The value to put at the desired position

Implemented in FD::Vector< T >, FD::Vector< RCPtr< Covariance > >, FD::Vector< double >, FD::Vector< RCPtr< GMM > >, FD::Vector< float >, FD::Vector< int >, FD::Vector< Vector< float > >, FD::Vector< RCPtr< FFLayer > >, FD::Vector< RCPtr< Mean > >, FD::Vector< RCPtr< Gaussian > >, and FD::Vector< ObjectRef >.


The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:30:11 2005 for FlowDesigner by  doxygen 1.4.4