A.I.M.S algorithms


aims::knn::Database::Vector Class Reference

#include <aims/math/knn.h>

Public Member Functions

 Vector (Database *db, unsigned int ind)
 
 Vector (const Vector &v)
 
double * operator* (void)
 
const double * operator* (void) const
 
virtual ~Vector ()
 
void init (Database *db, unsigned int ind)
 
void free ()
 
double operator() (unsigned int dim) const
 
void update (const Vector &v)
 
void update (Database *db, unsigned int ind)
 
Vectoroperator= (const Vector &v)
 

Detailed Description

Definition at line 184 of file knn.h.

Constructor & Destructor Documentation

aims::knn::Database::Vector::Vector ( Database db,
unsigned int  ind 
)
inline

Definition at line 187 of file knn.h.

References init().

aims::knn::Database::Vector::Vector ( const Vector v)
inline

Definition at line 191 of file knn.h.

virtual aims::knn::Database::Vector::~Vector ( )
inlinevirtual

Definition at line 209 of file knn.h.

References free().

Member Function Documentation

void aims::knn::Database::Vector::free ( )
inline

Definition at line 229 of file knn.h.

Referenced by update(), and ~Vector().

void aims::knn::Database::Vector::init ( Database db,
unsigned int  ind 
)
inline

Definition at line 214 of file knn.h.

References aims::knn::Database::dim().

Referenced by update(), and Vector().

double aims::knn::Database::Vector::operator() ( unsigned int  dim) const
inline

Definition at line 234 of file knn.h.

References aims::knn::Database::dim().

double* aims::knn::Database::Vector::operator* ( void  )
inline

Definition at line 199 of file knn.h.

const double* aims::knn::Database::Vector::operator* ( void  ) const
inline

Definition at line 204 of file knn.h.

Vector& aims::knn::Database::Vector::operator= ( const Vector v)
inline

Definition at line 252 of file knn.h.

void aims::knn::Database::Vector::update ( const Vector v)
inline

Definition at line 239 of file knn.h.

Referenced by aims::knn::Database::iterator::operator*().

void aims::knn::Database::Vector::update ( Database db,
unsigned int  ind 
)
inline

Definition at line 246 of file knn.h.

References free(), and init().


The documentation for this class was generated from the following file: