#include <vectors.h>
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 | |
| Rep * | rep () |
| const Rep * | rep () const |
| void | qset (int i, double v) |
Private Attributes | |
| Wrapper< Rep > | w |
Friends | |
| std::ostream & | operator<< (std::ostream &f, const FVector &v) |
| std::istream & | operator>> (std::istream &f, FVector &v) |
Classes | |
| struct | Rep |
| FVector::FVector | ( | ) |
| FVector::FVector | ( | int | n | ) |
| FVector::FVector | ( | const SVector & | v | ) |
| 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 | ) |
| double FVector::get | ( | int | i | ) | const |
| double FVector::getSpaceUsed | ( | ) |
| 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 | |||
| ) |
| 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.
| [out] | total_size | of the binary data written |
| std::ostream& operator<< | ( | std::ostream & | f, | |
| const FVector & | v | |||
| ) | [friend] |
| std::istream& operator>> | ( | std::istream & | f, | |
| FVector & | v | |||
| ) | [friend] |
Wrapper<Rep> FVector::w [private] |
1.4.7