MOAB: Mesh Oriented datABase  (version 5.2.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 194 of file MeshImplTags.hpp.


Constructor & Destructor Documentation

Definition at line 197 of file MeshImplTags.hpp.

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

Definition at line 198 of file MeshImplTags.hpp.

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

Member Function Documentation

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

Definition at line 211 of file MeshImplTags.hpp.

References index.

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

Definition at line 199 of file MeshImplTags.hpp.

References index.

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

Definition at line 377 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 393 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 385 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 402 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 207 of file MeshImplTags.hpp.

References index.

        {
            return index == other.index;
        }

Member Data Documentation

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