$extrastylesheet
libMesh::QoISet::iterator Class Reference

#include <qoi_set.h>

List of all members.

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.

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

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.

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

Definition at line 53 of file qoi_set.h.

References _i.

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

Definition at line 55 of file qoi_set.h.

References _i, and _vecbool.

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

Definition at line 63 of file qoi_set.h.

                             {
      iterator it = *this;
      ++(*this);
      return it;
    }
bool libMesh::QoISet::iterator::operator== ( const iterator other) const [inline]

Definition at line 69 of file qoi_set.h.

References _i, and _vecbool.

                                                 {
      libmesh_assert_equal_to (&_vecbool, &other._vecbool);
      return _i == other._i;
    }

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: