LinearData Class Reference

A vector class used to represent functional data on the mesh. More...

#include </usr1/tp517/Tumble/trunk/src/tumble/util.h>

List of all members.

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.
LinearDataoperator= (const LinearData &d)
 Assignment operator.
LinearDataoperator+= (const LinearData &d)
LinearDataoperator-= (const LinearData &d)
LinearDataoperator *= (double s)
LinearDataoperator/= (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 &)


Detailed Description

A vector class used to represent functional data on the mesh.

Definition at line 259 of file util.h.


Constructor & Destructor Documentation

LinearData::LinearData (  ) 

length of the data array No allocation of memmory

Definition at line 96 of file util.C.

References fields, and length.

LinearData::LinearData ( int  len  ) 

Create fields of specified length, and fill with zeros.

Definition at line 102 of file util.C.

References fields, and length.

LinearData::LinearData ( double *  data,
int  len 
)

Set fields to given data.

Definition at line 120 of file util.C.

References fields, and length.

LinearData::LinearData ( const std::vector< double > &  data  ) 

Set fields to given data.

LinearData::LinearData ( const LinearData ld  ) 

Copy consttructor.

Definition at line 150 of file util.C.

References fields, and length.

LinearData::~LinearData (  ) 

Destructor.

Definition at line 164 of file util.C.

References fields, and length.


Member Function Documentation

int LinearData::update ( const std::vector< double > &  data  ) 

Modify and reallocate fields to hold new data.

Referenced by MeshInput::Node::Node().

int LinearData::update ( double *  data,
int  len 
)

Modify and reallocate fields to hold new data.

Definition at line 193 of file util.C.

References fields, and length.

void LinearData::resize ( int  len  ) 

Resize fields to given size, keeping data.

Definition at line 203 of file util.C.

References fields, length, and zero().

Here is the call graph for this function:

void LinearData::zero (  ) 

Zero out fields.

Definition at line 217 of file util.C.

References fields, and length.

Referenced by BezierMesh::reinterpolate(), and resize().

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]

Data accessor.

Definition at line 286 of file util.h.

References fields, and length.

double LinearData::get ( int  i  )  const [inline]

Data accessor.

Definition at line 292 of file util.h.

References fields, and length.

LinearData & LinearData::operator= ( const LinearData d  ) 

Assignment operator.

Definition at line 170 of file util.C.

References fields, and length.

LinearData & LinearData::operator+= ( const LinearData d  ) 

Definition at line 223 of file util.C.

References fields, and length.

LinearData & LinearData::operator-= ( const LinearData d  ) 

Definition at line 229 of file util.C.

References fields, and length.

LinearData & LinearData::operator *= ( double  s  ) 

Definition at line 235 of file util.C.

References fields, and length.

LinearData & LinearData::operator/= ( double  s  ) 

Definition at line 240 of file util.C.

References fields, and length.

LinearData LinearData::operator+ ( const LinearData d  )  const

Definition at line 247 of file util.C.

References fields, and length.

LinearData LinearData::operator- ( const LinearData d  )  const

Definition at line 254 of file util.C.

References fields, and length.

LinearData LinearData::operator * ( double  s  )  const

Definition at line 261 of file util.C.

References fields, and length.

LinearData LinearData::operator/ ( double  s  )  const

Definition at line 267 of file util.C.

References fields, and length.

void LinearData::print (  )  [inline]

Definition at line 313 of file util.h.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const LinearData  
) [friend]


Member Data Documentation

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().

int LinearData::length

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().


The documentation for this class was generated from the following files:
Generated on Mon May 24 09:53:34 2010 for TUMBLE by  doxygen 1.5.2