MOAB: Mesh Oriented datABase  (version 5.4.1)
moab::InsertCount Class Reference

#include <TagCompare.hpp>

Public Types

typedef int iterator

Public Member Functions

 InsertCount (size_t initial_count=0)
iterator begin () const
iterator end () const
iterator insert (iterator, EntityHandle first, EntityHandle last)
iterator insert (iterator, EntityHandle)

Private Attributes

size_t mCount

Detailed Description

Dummy container that counts insertions rather than maintaining a list of entities

Definition at line 537 of file TagCompare.hpp.


Member Typedef Documentation

Definition at line 545 of file TagCompare.hpp.


Constructor & Destructor Documentation

moab::InsertCount::InsertCount ( size_t  initial_count = 0) [inline]

Definition at line 543 of file TagCompare.hpp.

: mCount( initial_count ) {}

Member Function Documentation

iterator moab::InsertCount::begin ( ) const [inline]

Definition at line 546 of file TagCompare.hpp.

    {
        return 0;
    }

Definition at line 554 of file TagCompare.hpp.

References end(), and mCount.

    {
        mCount += last - first + 1;
        return end();
    }

Definition at line 559 of file TagCompare.hpp.

References end(), and mCount.

    {
        ++mCount;
        return end();
    }

Member Data Documentation

size_t moab::InsertCount::mCount [private]

Definition at line 540 of file TagCompare.hpp.

Referenced by end(), and insert().

List of all members.


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