AmbiVector< _Scalar >::Iterator Class Reference

#include <AmbiVector.h>

List of all members.

Public Types

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

Public Member Functions

int index () const
 Iterator (const AmbiVector &vec, RealScalar epsilon=RealScalar(0.1)*precision< RealScalar >())
 operator bool () const
Iteratoroperator++ ()
Scalar value () const

Protected Attributes

int m_cachedIndex
Scalar m_cachedValue
int m_currentEl
RealScalar m_epsilon
bool m_isDense
const AmbiVectorm_vector

Private Member Functions

Iteratoroperator= (const Iterator &)

Detailed Description

template<typename _Scalar>
class AmbiVector< _Scalar >::Iterator

Iterator over the nonzero coefficients

Definition at line 290 of file AmbiVector.h.


Member Typedef Documentation

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

Definition at line 294 of file AmbiVector.h.

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

Definition at line 293 of file AmbiVector.h.


Constructor & Destructor Documentation

template<typename _Scalar>
AmbiVector< _Scalar >::Iterator::Iterator ( const AmbiVector vec,
RealScalar  epsilon = RealScalar(0.1)*precision<RealScalar>() 
) [inline]

Default constructor

Parameters:
vec the vector on which we iterate
epsilon the minimal value used to prune zero coefficients. In practice, all coefficients having a magnitude smaller than epsilon are skipped.

Definition at line 302 of file AmbiVector.h.


Member Function Documentation

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

Definition at line 330 of file AmbiVector.h.

template<typename _Scalar>
AmbiVector< _Scalar >::Iterator::operator bool (  )  const [inline]

Definition at line 333 of file AmbiVector.h.

template<typename _Scalar>
Iterator& AmbiVector< _Scalar >::Iterator::operator++ (  )  [inline]

Definition at line 335 of file AmbiVector.h.

template<typename _Scalar>
Iterator& AmbiVector< _Scalar >::Iterator::operator= ( const Iterator  )  [private]
template<typename _Scalar>
Scalar AmbiVector< _Scalar >::Iterator::value (  )  const [inline]

Definition at line 331 of file AmbiVector.h.


Member Data Documentation

template<typename _Scalar>
int AmbiVector< _Scalar >::Iterator::m_cachedIndex [protected]

Definition at line 370 of file AmbiVector.h.

template<typename _Scalar>
Scalar AmbiVector< _Scalar >::Iterator::m_cachedValue [protected]

Definition at line 371 of file AmbiVector.h.

template<typename _Scalar>
int AmbiVector< _Scalar >::Iterator::m_currentEl [protected]

Definition at line 368 of file AmbiVector.h.

template<typename _Scalar>
RealScalar AmbiVector< _Scalar >::Iterator::m_epsilon [protected]

Definition at line 369 of file AmbiVector.h.

template<typename _Scalar>
bool AmbiVector< _Scalar >::Iterator::m_isDense [protected]

Definition at line 372 of file AmbiVector.h.

template<typename _Scalar>
const AmbiVector& AmbiVector< _Scalar >::Iterator::m_vector [protected]

Definition at line 367 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