Biomechanical Joint Model
 Author: Anderson Maciel

LinAlg::VECArray Class Reference

#include <vecarray.h>

Inherits LinAlg::Vector.

Inheritance diagram for LinAlg::VECArray:

Inheritance graph
[legend]
Collaboration diagram for LinAlg::VECArray:

Collaboration graph
[legend]
List of all members.

Public Types

typedef VEC value_type
typedef VECpointer
typedef VECiterator
typedef VECreference
typedef const VECconst_iterator
typedef const VECconst_reference

Public Member Functions

 VECArray ()
 VECArray (const VECArray &A)
 VECArray (const VEC &A, unsigned row, unsigned col=1, unsigned depth=1)
 VECArray (unsigned row, unsigned col=1, unsigned depth=1, REAL value=REAL(0), unsigned K=dimspace)
virtual ~VECArray ()
unsigned size () const
unsigned getNum () const
unsigned row () const
unsigned col () const
unsigned depth () const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
reference operator[] (int i)
const_reference operator[] (int i) const
reference operator() (int i, int j)
const_reference operator() (int i, int j) const
reference operator[] (const idx3 &id)
const_reference operator[] (const idx3 &id) const
VECArrayoperator= (const VECArray &A)
VECArrayoperator+= (const VECArray &A)
VECArrayoperator-= (const VECArray &A)
VECArrayoperator *= (const REAL &scalar)
VECArrayoperator/= (const REAL &scalar)
bool operator>= (const REAL &scalar)
bool operator<= (const REAL &scalar)
bool operator> (const REAL &scalar)
bool operator< (const REAL &scalar)

Private Member Functions

virtual void initialize (unsigned N)
virtual void destroy ()
void init_vv ()

Private Attributes

unsigned k_
unsigned row_
unsigned col_
unsigned depth_
LinAlg::VECArray::specialVECvv

Friends

VECArray operator+ (const VECArray &A, const VECArray &B)
VECArray operator- (const VECArray &A, const VECArray &B)
VECArray operator * (const VECArray &A, double s)
VECArray operator * (double s, const VECArray &A)
VECArray operator/ (const VECArray &A, double s)
VECArray operator- (const VECArray &A)
std::ostream & operator<< (std::ostream &s, const VECArray &A)
VECArrayabs (VECArray &A)

Classes

struct  specialVEC

Detailed Description

Definition at line 46 of file vecarray.h.


Member Typedef Documentation

typedef const VEC* LinAlg::VECArray::const_iterator
 

Reimplemented from LinAlg::Vector.

Definition at line 71 of file vecarray.h.

typedef const VEC& LinAlg::VECArray::const_reference
 

Reimplemented from LinAlg::Vector.

Definition at line 72 of file vecarray.h.

typedef VEC* LinAlg::VECArray::iterator
 

Reimplemented from LinAlg::Vector.

Definition at line 69 of file vecarray.h.

typedef VEC* LinAlg::VECArray::pointer
 

Reimplemented from LinAlg::Vector.

Definition at line 68 of file vecarray.h.

typedef VEC& LinAlg::VECArray::reference
 

Reimplemented from LinAlg::Vector.

Definition at line 70 of file vecarray.h.

typedef VEC LinAlg::VECArray::value_type
 

Reimplemented from LinAlg::Vector.

Definition at line 63 of file vecarray.h.


Constructor & Destructor Documentation

LinAlg::VECArray::VECArray  )  [inline]
 

Definition at line 179 of file vecarray.h.

LinAlg::VECArray::VECArray const VECArray A  )  [inline]
 

Definition at line 183 of file vecarray.h.

References LinAlg::Vector::copy(), initialize(), LinAlg::Vector::n_, and LinAlg::Vector::v_.

Here is the call graph for this function:

LinAlg::VECArray::VECArray const VEC A,
unsigned  row,
unsigned  col = 1,
unsigned  depth = 1
[inline]
 

Definition at line 190 of file vecarray.h.

References LinAlg::Vector::dim(), initialize(), k_, and LinAlg::Vector::v_.

Here is the call graph for this function:

LinAlg::VECArray::VECArray unsigned  row,
unsigned  col = 1,
unsigned  depth = 1,
REAL  value = REAL(0),
unsigned  K = dimspace
[inline]
 

Definition at line 200 of file vecarray.h.

References initialize(), and LinAlg::Vector::set().

Here is the call graph for this function:

LinAlg::VECArray::~VECArray  )  [virtual]
 

Definition at line 14 of file vecarray.cpp.

References destroy().

Here is the call graph for this function:


Member Function Documentation

const_iterator LinAlg::VECArray::begin  )  const [inline]
 

Reimplemented from LinAlg::Vector.

Definition at line 75 of file vecarray.h.

iterator LinAlg::VECArray::begin  )  [inline]
 

Reimplemented from LinAlg::Vector.

Definition at line 73 of file vecarray.h.

unsigned LinAlg::VECArray::col  )  const [inline]
 

Definition at line 62 of file vecarray.h.

Referenced by operator()(), and operator[]().

unsigned LinAlg::VECArray::depth  )  const [inline]
 

Definition at line 63 of file vecarray.h.

Referenced by operator()(), and operator[]().

void LinAlg::VECArray::destroy  )  [private, virtual]
 

Reimplemented from LinAlg::Vector.

Definition at line 40 of file vecarray.cpp.

References LinAlg::Vector::destroy(), and vv.

Referenced by ~VECArray().

Here is the call graph for this function:

const_iterator LinAlg::VECArray::end  )  const [inline]
 

Reimplemented from LinAlg::Vector.

Definition at line 76 of file vecarray.h.

iterator LinAlg::VECArray::end  )  [inline]
 

Reimplemented from LinAlg::Vector.

Definition at line 74 of file vecarray.h.

unsigned LinAlg::VECArray::getNum  )  const [inline]
 

Definition at line 60 of file vecarray.h.

void LinAlg::VECArray::init_vv  )  [private]
 

Definition at line 19 of file vecarray.cpp.

References k_, LinAlg::Vector::n_, LinAlg::VECArray::specialVEC::redirect(), LinAlg::VECArray::specialVEC::resize(), LinAlg::Vector::v_, and vv.

Referenced by initialize(), and operator=().

Here is the call graph for this function:

void LinAlg::VECArray::initialize unsigned  N  )  [private, virtual]
 

Reimplemented from LinAlg::Vector.

Definition at line 34 of file vecarray.cpp.

References init_vv(), and LinAlg::Vector::initialize().

Referenced by VECArray().

Here is the call graph for this function:

VECArray & LinAlg::VECArray::operator *= const REAL &  scalar  )  [inline]
 

Definition at line 298 of file vecarray.h.

References LinAlg::Vector::operator *=().

Here is the call graph for this function:

VECArray::const_reference LinAlg::VECArray::operator() int  i,
int  j
const [inline]
 

Definition at line 248 of file vecarray.h.

References col(), depth(), row(), and vv.

Here is the call graph for this function:

VECArray::reference LinAlg::VECArray::operator() int  i,
int  j
[inline]
 

Definition at line 237 of file vecarray.h.

References col(), depth(), row(), and vv.

Here is the call graph for this function:

VECArray & LinAlg::VECArray::operator+= const VECArray A  )  [inline]
 

Definition at line 286 of file vecarray.h.

References LinAlg::Vector::operator+=().

Here is the call graph for this function:

VECArray & LinAlg::VECArray::operator-= const VECArray A  )  [inline]
 

Definition at line 292 of file vecarray.h.

References LinAlg::Vector::operator-=().

Here is the call graph for this function:

VECArray & LinAlg::VECArray::operator/= const REAL &  scalar  )  [inline]
 

Definition at line 304 of file vecarray.h.

References LinAlg::Vector::operator/=().

Here is the call graph for this function:

bool LinAlg::VECArray::operator< const REAL &  scalar  )  [inline]
 

Definition at line 99 of file vecarray.h.

References LinAlg::operator<().

Here is the call graph for this function:

bool LinAlg::VECArray::operator<= const REAL &  scalar  )  [inline]
 

Definition at line 97 of file vecarray.h.

References LinAlg::operator<=().

Here is the call graph for this function:

VECArray & LinAlg::VECArray::operator= const VECArray A  )  [inline]
 

Definition at line 207 of file vecarray.h.

References init_vv(), k_, LinAlg::Vector::operator=(), and vv.

Here is the call graph for this function:

bool LinAlg::VECArray::operator> const REAL &  scalar  )  [inline]
 

Definition at line 98 of file vecarray.h.

References LinAlg::operator>().

Here is the call graph for this function:

bool LinAlg::VECArray::operator>= const REAL &  scalar  )  [inline]
 

Definition at line 96 of file vecarray.h.

References LinAlg::operator>=().

Here is the call graph for this function:

VECArray::const_reference LinAlg::VECArray::operator[] const idx3 id  )  const [inline]
 

Definition at line 271 of file vecarray.h.

References col(), depth(), row(), and vv.

Here is the call graph for this function:

VECArray::reference LinAlg::VECArray::operator[] const idx3 id  )  [inline]
 

Definition at line 259 of file vecarray.h.

References col(), depth(), row(), and vv.

Here is the call graph for this function:

VECArray::const_reference LinAlg::VECArray::operator[] int  i  )  const [inline]
 

Reimplemented from LinAlg::Vector.

Definition at line 229 of file vecarray.h.

References LinAlg::Vector::dim(), k_, and vv.

Here is the call graph for this function:

VECArray::reference LinAlg::VECArray::operator[] int  i  )  [inline]
 

Reimplemented from LinAlg::Vector.

Definition at line 221 of file vecarray.h.

References LinAlg::Vector::dim(), k_, and vv.

Here is the call graph for this function:

unsigned LinAlg::VECArray::row  )  const [inline]
 

Definition at line 61 of file vecarray.h.

Referenced by operator()(), and operator[]().

unsigned LinAlg::VECArray::size  )  const [inline]
 

Definition at line 59 of file vecarray.h.

Referenced by LinAlg::abs(), BBox::extendBy(), find_closest(), and Mesh::Mesh().


Friends And Related Function Documentation

VECArray& abs VECArray A  )  [friend]
 

VECArray operator * double  s,
const VECArray A
[friend]
 

VECArray operator * const VECArray A,
double  s
[friend]
 

VECArray operator+ const VECArray A,
const VECArray B
[friend]
 

VECArray operator- const VECArray A  )  [friend]
 

VECArray operator- const VECArray A,
const VECArray B
[friend]
 

VECArray operator/ const VECArray A,
double  s
[friend]
 

std::ostream& operator<< std::ostream &  s,
const VECArray A
[friend]
 


Member Data Documentation

unsigned LinAlg::VECArray::col_ [private]
 

Definition at line 115 of file vecarray.h.

unsigned LinAlg::VECArray::depth_ [private]
 

Definition at line 115 of file vecarray.h.

unsigned LinAlg::VECArray::k_ [private]
 

Definition at line 114 of file vecarray.h.

Referenced by init_vv(), LinAlg::operator<<(), operator=(), operator[](), and VECArray().

unsigned LinAlg::VECArray::row_ [private]
 

Definition at line 115 of file vecarray.h.

LinAlg::VECArray::specialVEC * LinAlg::VECArray::vv [private]
 

Referenced by LinAlg::abs(), destroy(), init_vv(), operator()(), operator=(), and operator[]().


The documentation for this class was generated from the following files:
Generated on Thu Dec 1 10:14:47 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5