libMesh::QoISet::iterator Class Reference

#include <qoi_set.h>

Public Member Functions

 iterator (unsigned int i, const std::vector< bool > &v)
 
unsigned int operator* () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
bool operator== (const iterator &other) const
 
bool operator!= (const iterator &other) const
 

Private Attributes

unsigned int _i
 
const std::vector< bool > & _vecbool
 

Detailed Description

Definition at line 44 of file qoi_set.h.

Constructor & Destructor Documentation

libMesh::QoISet::iterator::iterator ( unsigned int  i,
const std::vector< bool > &  v 
)
inline

Definition at line 47 of file qoi_set.h.

References _i, and _vecbool.

47  : _i(i), _vecbool(v)
48  {
49  while (_i < _vecbool.size() && !_vecbool[_i])
50  _i++;
51  }

Member Function Documentation

bool libMesh::QoISet::iterator::operator!= ( const iterator other) const
inline

Definition at line 74 of file qoi_set.h.

References _i, and _vecbool.

74  {
75  libmesh_assert_equal_to (&_vecbool, &other._vecbool);
76  return _i != other._i;
77  }
unsigned int libMesh::QoISet::iterator::operator* ( ) const
inline

Definition at line 53 of file qoi_set.h.

References _i.

53 { return _i; }
iterator& libMesh::QoISet::iterator::operator++ ( )
inline

Definition at line 55 of file qoi_set.h.

References _i, and _vecbool.

56  {
57  do {
58  _i++;
59  } while (_i < _vecbool.size() && !_vecbool[_i]);
60  return *this;
61  }
iterator libMesh::QoISet::iterator::operator++ ( int  )
inline

Definition at line 63 of file qoi_set.h.

63  {
64  iterator it = *this;
65  ++(*this);
66  return it;
67  }
bool libMesh::QoISet::iterator::operator== ( const iterator other) const
inline

Definition at line 69 of file qoi_set.h.

References _i, and _vecbool.

69  {
70  libmesh_assert_equal_to (&_vecbool, &other._vecbool);
71  return _i == other._i;
72  }

Member Data Documentation

unsigned int libMesh::QoISet::iterator::_i
private

Definition at line 81 of file qoi_set.h.

Referenced by iterator(), operator!=(), operator*(), operator++(), and operator==().

const std::vector<bool>& libMesh::QoISet::iterator::_vecbool
private

Definition at line 83 of file qoi_set.h.

Referenced by iterator(), operator!=(), operator++(), and operator==().


The documentation for this class was generated from the following file:

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:29 UTC

Hosted By:
SourceForge.net Logo