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.

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


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.

00074                                                  {
00075       libmesh_assert_equal_to (&_vecbool, &other._vecbool);
00076       return _i != other._i;
00077     }

unsigned int libMesh::QoISet::iterator::operator* (  )  const [inline]

Definition at line 53 of file qoi_set.h.

References _i.

00053 { return _i; }

iterator libMesh::QoISet::iterator::operator++ ( int   )  [inline]

Definition at line 63 of file qoi_set.h.

00063                              {
00064       iterator it = *this;
00065       ++(*this);
00066       return it;
00067     }

iterator& libMesh::QoISet::iterator::operator++ (  )  [inline]

Definition at line 55 of file qoi_set.h.

References _i, and _vecbool.

00056       {
00057         do {
00058           _i++;
00059         } while (_i < _vecbool.size() && !_vecbool[_i]);
00060         return *this;
00061       }

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

Definition at line 69 of file qoi_set.h.

References _i, and _vecbool.

00069                                                  {
00070       libmesh_assert_equal_to (&_vecbool, &other._vecbool);
00071       return _i == other._i;
00072     }


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 05 2013 19:55:34 UTC

Hosted By:
SourceForge.net Logo