#include </usr1/tp517/Tumble/trunk/src/tumble/util.h>
Public Member Functions | |
LinearData () | |
length of the data array No allocation of memmory | |
LinearData (int len) | |
Create fields of specified length, and fill with zeros. | |
LinearData (double *data, int len) | |
Set fields to given data. | |
LinearData (const std::vector< double > &data) | |
Set fields to given data. | |
LinearData (const LinearData &ld) | |
Copy consttructor. | |
~LinearData () | |
Destructor. | |
int | update (const std::vector< double > &data) |
Modify and reallocate fields to hold new data. | |
int | update (double *data, int len) |
Modify and reallocate fields to hold new data. | |
void | resize (int len) |
Resize fields to given size, keeping data. | |
void | zero () |
Zero out fields. | |
void | set (double d, int i) |
Data accessor. | |
double | operator[] (int i) const |
Data accessor. | |
double | get (int i) const |
Data accessor. | |
LinearData & | operator= (const LinearData &d) |
Assignment operator. | |
LinearData & | operator+= (const LinearData &d) |
LinearData & | operator-= (const LinearData &d) |
LinearData & | operator *= (double s) |
LinearData & | operator/= (double s) |
LinearData | operator+ (const LinearData &d) const |
LinearData | operator- (const LinearData &d) const |
LinearData | operator * (double s) const |
LinearData | operator/ (double s) const |
void | print () |
Public Attributes | |
double * | fields |
int | length |
pointer to the data array | |
Friends | |
std::ostream & | operator<< (std::ostream &, const LinearData &) |
Definition at line 259 of file util.h.
LinearData::LinearData | ( | ) |
LinearData::LinearData | ( | int | len | ) |
LinearData::LinearData | ( | double * | data, | |
int | len | |||
) |
LinearData::LinearData | ( | const std::vector< double > & | data | ) |
Set fields to given data.
LinearData::LinearData | ( | const LinearData & | ld | ) |
LinearData::~LinearData | ( | ) |
int LinearData::update | ( | const std::vector< double > & | data | ) |
int LinearData::update | ( | double * | data, | |
int | len | |||
) |
void LinearData::resize | ( | int | len | ) |
void LinearData::zero | ( | ) |
void LinearData::set | ( | double | d, | |
int | i | |||
) | [inline] |
Data accessor.
Definition at line 280 of file util.h.
References fields, and length.
Referenced by DataStore::add_channels(), BezierEdge::set_data(), and BezierVertex::set_data().
double LinearData::operator[] | ( | int | i | ) | const [inline] |
double LinearData::get | ( | int | i | ) | const [inline] |
LinearData & LinearData::operator= | ( | const LinearData & | d | ) |
LinearData & LinearData::operator+= | ( | const LinearData & | d | ) |
LinearData & LinearData::operator-= | ( | const LinearData & | d | ) |
LinearData & LinearData::operator *= | ( | double | s | ) |
LinearData & LinearData::operator/= | ( | double | s | ) |
LinearData LinearData::operator+ | ( | const LinearData & | d | ) | const |
LinearData LinearData::operator- | ( | const LinearData & | d | ) | const |
LinearData LinearData::operator * | ( | double | s | ) | const |
LinearData LinearData::operator/ | ( | double | s | ) | const |
std::ostream& operator<< | ( | std::ostream & | , | |
const LinearData & | ||||
) | [friend] |
double* LinearData::fields |
Definition at line 261 of file util.h.
Referenced by compute_displacement(), get(), LinearData(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator[](), resize(), set(), update(), MeshBinaryOutput::write(), zero(), and ~LinearData().
pointer to the data array
Definition at line 262 of file util.h.
Referenced by get(), LinearData(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), operator=(), operator[](), BezierMesh::reinterpolate(), resize(), set(), update(), MeshBinaryOutput::write(), zero(), and ~LinearData().