MOAB: Mesh Oriented datABase  (version 5.4.1)
MBMesquite::MeshImplTags::TagIterator Class Reference

#include <MeshImplTags.hpp>

+ Collaboration diagram for MBMesquite::MeshImplTags::TagIterator:

Public Member Functions

 TagIterator ()
 TagIterator (MeshImplTags *d, size_t i)
size_t operator* () const
TagIterator operator++ ()
TagIterator operator-- ()
TagIterator operator++ (int)
TagIterator operator-- (int)
bool operator== (TagIterator other) const
bool operator!= (TagIterator other) const

Private Attributes

MeshImplTagstags
size_t index

Detailed Description

Iterate over list of valid tag handles

Definition at line 210 of file MeshImplTags.hpp.


Constructor & Destructor Documentation

Definition at line 213 of file MeshImplTags.hpp.

: tags( 0 ), index( 0 ) {}

Definition at line 214 of file MeshImplTags.hpp.

: tags( d ), index( i ) {}

Member Function Documentation

bool MBMesquite::MeshImplTags::TagIterator::operator!= ( TagIterator  other) const [inline]

Definition at line 227 of file MeshImplTags.hpp.

References index.

        {
            return index != other.index;
        }
size_t MBMesquite::MeshImplTags::TagIterator::operator* ( ) const [inline]

Definition at line 215 of file MeshImplTags.hpp.

References index.

        {
            return index + 1;
        }
MeshImplTags::TagIterator MBMesquite::MeshImplTags::TagIterator::operator++ ( )

Definition at line 392 of file MeshImplTags.cpp.

References MBMesquite::MeshImplTags::tagList.

{
    ++index;
    while( index < tags->tagList.size() && NULL == tags->tagList[index] )
        ++index;
    return TagIterator( tags, index );
}
MeshImplTags::TagIterator MBMesquite::MeshImplTags::TagIterator::operator++ ( int  )

Definition at line 408 of file MeshImplTags.cpp.

References MBMesquite::MeshImplTags::tagList.

{
    size_t old = index;
    ++index;
    while( index < tags->tagList.size() && NULL == tags->tagList[index] )
        ++index;
    return TagIterator( tags, old );
}
MeshImplTags::TagIterator MBMesquite::MeshImplTags::TagIterator::operator-- ( )

Definition at line 400 of file MeshImplTags.cpp.

References MBMesquite::MeshImplTags::tagList.

{
    --index;
    while( index < tags->tagList.size() && NULL == tags->tagList[index] )
        --index;
    return TagIterator( tags, index );
}
MeshImplTags::TagIterator MBMesquite::MeshImplTags::TagIterator::operator-- ( int  )

Definition at line 417 of file MeshImplTags.cpp.

References MBMesquite::MeshImplTags::tagList.

{
    size_t old = index;
    --index;
    while( index < tags->tagList.size() && NULL == tags->tagList[index] )
        --index;
    return TagIterator( tags, old );
}
bool MBMesquite::MeshImplTags::TagIterator::operator== ( TagIterator  other) const [inline]

Definition at line 223 of file MeshImplTags.hpp.

References index.

        {
            return index == other.index;
        }

Member Data Documentation

Definition at line 234 of file MeshImplTags.hpp.

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

List of all members.


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