AmbiVector< _Scalar > Class Template Reference

#include <AmbiVector.h>

List of all members.

Classes

class  Iterator
struct  ListEl

Public Types

typedef NumTraits< Scalar >::Real RealScalar
typedef _Scalar Scalar

Public Member Functions

 AmbiVector (int size)
Scalar coeff (int i)
ScalarcoeffRef (int i)
void init (int mode)
void init (RealScalar estimatedDensity)
void nonZeros () const
void resize (int size)
void restart ()
void setBounds (int start, int end)
void setZero ()
int size () const
 ~AmbiVector ()

Protected Member Functions

void reallocate (int size)
void reallocateSparse ()

Protected Attributes

int m_allocatedElements
int m_allocatedSize
Scalarm_buffer
int m_end
int m_llCurrent
int m_llSize
int m_llStart
int m_mode
int m_size
int m_start

Private Member Functions

 AmbiVector (const AmbiVector &)

Detailed Description

template<typename _Scalar>
class AmbiVector< _Scalar >

Definition at line 33 of file AmbiVector.h.


Member Typedef Documentation

template<typename _Scalar>
typedef NumTraits<Scalar>::Real AmbiVector< _Scalar >::RealScalar

Definition at line 37 of file AmbiVector.h.

template<typename _Scalar>
typedef _Scalar AmbiVector< _Scalar >::Scalar

Definition at line 36 of file AmbiVector.h.


Constructor & Destructor Documentation

template<typename _Scalar>
AmbiVector< _Scalar >::AmbiVector ( int  size  )  [inline]

Definition at line 38 of file AmbiVector.h.

template<typename _Scalar>
AmbiVector< _Scalar >::~AmbiVector (  )  [inline]

Definition at line 60 of file AmbiVector.h.

template<typename _Scalar>
AmbiVector< _Scalar >::AmbiVector ( const AmbiVector< _Scalar > &   )  [private]

Member Function Documentation

template<typename Scalar >
Scalar AmbiVector< Scalar >::coeff ( int  i  )  [inline]

Definition at line 262 of file AmbiVector.h.

template<typename Scalar >
Scalar & AmbiVector< Scalar >::coeffRef ( int  i  )  [inline]

Definition at line 193 of file AmbiVector.h.

template<typename Scalar >
void AmbiVector< Scalar >::init ( int  mode  )  [inline]

Definition at line 154 of file AmbiVector.h.

template<typename Scalar >
void AmbiVector< Scalar >::init ( RealScalar  estimatedDensity  )  [inline]

Definition at line 145 of file AmbiVector.h.

template<typename Scalar >
void AmbiVector< Scalar >::nonZeros (  )  const [inline]
Returns:
the number of non zeros in the current sub vector

Definition at line 136 of file AmbiVector.h.

template<typename _Scalar>
void AmbiVector< _Scalar >::reallocate ( int  size  )  [inline, protected]

Definition at line 73 of file AmbiVector.h.

template<typename _Scalar>
void AmbiVector< _Scalar >::reallocateSparse (  )  [inline, protected]

Definition at line 94 of file AmbiVector.h.

template<typename _Scalar>
void AmbiVector< _Scalar >::resize ( int  size  )  [inline]

Definition at line 62 of file AmbiVector.h.

template<typename Scalar >
void AmbiVector< Scalar >::restart (  )  [inline]

Must be called whenever we might perform a write access with an index smaller than the previous one.

Don't worry, this function is extremely cheap.

Definition at line 170 of file AmbiVector.h.

template<typename _Scalar>
void AmbiVector< _Scalar >::setBounds ( int  start,
int  end 
) [inline]

Specifies a sub-vector to work on

Definition at line 50 of file AmbiVector.h.

template<typename Scalar >
void AmbiVector< Scalar >::setZero (  )  [inline]

Set all coefficients of current subvector to zero

Definition at line 177 of file AmbiVector.h.

template<typename _Scalar>
int AmbiVector< _Scalar >::size (  )  const [inline]

Definition at line 69 of file AmbiVector.h.


Member Data Documentation

template<typename _Scalar>
int AmbiVector< _Scalar >::m_allocatedElements [protected]

Definition at line 121 of file AmbiVector.h.

template<typename _Scalar>
int AmbiVector< _Scalar >::m_allocatedSize [protected]

Definition at line 120 of file AmbiVector.h.

template<typename _Scalar>
Scalar* AmbiVector< _Scalar >::m_buffer [protected]

Definition at line 116 of file AmbiVector.h.

template<typename _Scalar>
int AmbiVector< _Scalar >::m_end [protected]

Definition at line 119 of file AmbiVector.h.

template<typename _Scalar>
int AmbiVector< _Scalar >::m_llCurrent [protected]

Definition at line 126 of file AmbiVector.h.

template<typename _Scalar>
int AmbiVector< _Scalar >::m_llSize [protected]

Definition at line 127 of file AmbiVector.h.

template<typename _Scalar>
int AmbiVector< _Scalar >::m_llStart [protected]

Definition at line 125 of file AmbiVector.h.

template<typename _Scalar>
int AmbiVector< _Scalar >::m_mode [protected]

Definition at line 122 of file AmbiVector.h.

template<typename _Scalar>
int AmbiVector< _Scalar >::m_size [protected]

Definition at line 117 of file AmbiVector.h.

template<typename _Scalar>
int AmbiVector< _Scalar >::m_start [protected]

Definition at line 118 of file AmbiVector.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:21:31 2013