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


Member Typedef Documentation

Definition at line 524 of file TagCompare.hpp.


Constructor & Destructor Documentation

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

Definition at line 522 of file TagCompare.hpp.

: mCount( initial_count ) {}

Member Function Documentation

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

Definition at line 525 of file TagCompare.hpp.

    {
        return 0;
    }

Definition at line 533 of file TagCompare.hpp.

References end(), and mCount.

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

Definition at line 538 of file TagCompare.hpp.

References end(), and mCount.

    {
        ++mCount;
        return end();
    }

Member Data Documentation

size_t moab::InsertCount::mCount [private]

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