FVector Class Reference

#include <vectors.h>

List of all members.

Public Member Functions

 FVector ()
 FVector (int n)
 FVector (const SVector &v)
int size () const
double get (int i) const
double set (int i, double v)
 operator const VFloat * () const
 operator VFloat * ()
void clear ()
void resize (int n)
void touch (int i)
FVector slice (int fi, int ti) const
void add (double c1)
void add (const FVector &v2)
void add (const SVector &v2)
void add (const FVector &v2, double c2)
void add (const SVector &v2, double c2)
void add (const FVector &v2, double c2, const FVector &q2)
void add (const SVector &v2, double c2, const FVector &q2)
void scale (double c1)
void combine (double c1, const FVector &v2, double c2)
void combine (double c1, const SVector &v2, double c2)
bool save (std::ostream &f) const
bool load (std::istream &f)
void loadString (std::string str)
int fromPSQL (std::string str)
 Parses given database string and convert it into FVector.
double getSpaceUsed ()
 Calculates the space used by the FVector.
void * write_bin (size_t &total_size)
 Writes the FVector as a binary data.
int read_bin (void *data, size_t length)
 Reads the FVector from the given binary data.

Private Member Functions

Reprep ()
const Reprep () const
void qset (int i, double v)

Private Attributes

Wrapper< Repw

Friends

std::ostream & operator<< (std::ostream &f, const FVector &v)
std::istream & operator>> (std::istream &f, FVector &v)

Classes

struct  Rep


Constructor & Destructor Documentation

FVector::FVector (  ) 

FVector::FVector ( int  n  ) 

FVector::FVector ( const SVector v  ) 


Member Function Documentation

void FVector::add ( const SVector v2,
double  c2,
const FVector q2 
)

void FVector::add ( const FVector v2,
double  c2,
const FVector q2 
)

void FVector::add ( const SVector v2,
double  c2 
)

void FVector::add ( const FVector v2,
double  c2 
)

void FVector::add ( const SVector v2  ) 

void FVector::add ( const FVector v2  ) 

void FVector::add ( double  c1  ) 

void FVector::clear (  ) 

void FVector::combine ( double  c1,
const SVector v2,
double  c2 
)

void FVector::combine ( double  c1,
const FVector v2,
double  c2 
)

int FVector::fromPSQL ( std::string  str  ) 

Parses given database string and convert it into FVector.

Parameters:
[in] str database string format of FVector
Returns:
success

double FVector::get ( int  i  )  const

double FVector::getSpaceUsed (  ) 

Calculates the space used by the FVector.

Returns:
space used by FVector in bytes

bool FVector::load ( std::istream &  f  ) 

void FVector::loadString ( std::string  str  ) 

FVector::operator const VFloat * (  )  const [inline]

FVector::operator VFloat * (  )  [inline]

void FVector::qset ( int  i,
double  v 
) [private]

int FVector::read_bin ( void *  data,
size_t  length 
)

Reads the FVector from the given binary data.

Parameters:
[in] data void pointer to the binary data
[in] length of the data in bytes
Returns:
# of elements in FVector

const Rep* FVector::rep (  )  const [inline, private]

Rep* FVector::rep (  )  [inline, private]

void FVector::resize ( int  n  ) 

bool FVector::save ( std::ostream &  f  )  const

void FVector::scale ( double  c1  ) 

double FVector::set ( int  i,
double  v 
)

int FVector::size (  )  const [inline]

FVector FVector::slice ( int  fi,
int  ti 
) const

void FVector::touch ( int  i  ) 

void * FVector::write_bin ( size_t &  total_size  ) 

Writes the FVector as a binary data.

Parameters:
[out] total_size of the binary data written
Returns:
void pointer to the binary data which is constructor by this method


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  f,
const FVector v 
) [friend]

std::istream& operator>> ( std::istream &  f,
FVector v 
) [friend]


Member Data Documentation

Wrapper<Rep> FVector::w [private]


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 10:46:16 2010 for Hazy_System by  doxygen 1.4.7