Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
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

◆ iterator

Definition at line 545 of file TagCompare.hpp.

Constructor & Destructor Documentation

◆ InsertCount()

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

Definition at line 543 of file TagCompare.hpp.

543 : mCount( initial_count ) {}

Member Function Documentation

◆ begin()

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

Definition at line 546 of file TagCompare.hpp.

547  {
548  return 0;
549  }

◆ end()

iterator moab::InsertCount::end ( ) const
inline

◆ insert() [1/2]

iterator moab::InsertCount::insert ( iterator  ,
EntityHandle  first,
EntityHandle  last 
)
inline

Definition at line 554 of file TagCompare.hpp.

555  {
556  mCount += last - first + 1;
557  return end();
558  }

References end(), moab::GeomUtil::first(), and mCount.

◆ insert() [2/2]

iterator moab::InsertCount::insert ( iterator  ,
EntityHandle   
)
inline

Definition at line 559 of file TagCompare.hpp.

560  {
561  ++mCount;
562  return end();
563  }

References end(), and mCount.

Member Data Documentation

◆ mCount

size_t moab::InsertCount::mCount
private

Definition at line 540 of file TagCompare.hpp.

Referenced by end(), and insert().


The documentation for this class was generated from the following file: