Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::range_inserter Class Reference

Use as you would an STL back_inserter. More...

#include <Range.hpp>

+ Collaboration diagram for moab::range_inserter:

Public Types

typedef EntityHandle value_type
 
typedef EntityID difference_type
 
typedef std::output_iterator_tag iterator_category
 
typedef EntityHandlepointer
 
typedef EntityHandlereference
 

Public Member Functions

 range_inserter (Range &x)
 
range_inserteroperator= (const Range::value_type &value)
 
range_inserteroperator* ()
 
range_inserteroperator++ ()
 
range_inserteroperator++ (int)
 

Protected Attributes

Rangecontainer
 

Detailed Description

Use as you would an STL back_inserter.

e.g. std::copy(list.begin(), list.end(), range_inserter(my_range); Also, see comments/instructions at the top of this class declaration

Definition at line 811 of file Range.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 840 of file Range.hpp.

◆ iterator_category

typedef std::output_iterator_tag moab::range_inserter::iterator_category

Definition at line 841 of file Range.hpp.

◆ pointer

Definition at line 842 of file Range.hpp.

◆ reference

Definition at line 843 of file Range.hpp.

◆ value_type

Definition at line 839 of file Range.hpp.

Constructor & Destructor Documentation

◆ range_inserter()

moab::range_inserter::range_inserter ( Range x)
inlineexplicit

Definition at line 819 of file Range.hpp.

819 : container( &x ) {}

Member Function Documentation

◆ operator*()

range_inserter& moab::range_inserter::operator* ( )
inline

Definition at line 826 of file Range.hpp.

827  {
828  return *this;
829  }

◆ operator++() [1/2]

range_inserter& moab::range_inserter::operator++ ( )
inline

Definition at line 830 of file Range.hpp.

831  {
832  return *this;
833  }

◆ operator++() [2/2]

range_inserter& moab::range_inserter::operator++ ( int  )
inline

Definition at line 834 of file Range.hpp.

835  {
836  return *this;
837  }

◆ operator=()

range_inserter& moab::range_inserter::operator= ( const Range::value_type value)
inline

Definition at line 820 of file Range.hpp.

821  {
822  container->insert( value );
823  return *this;
824  }

References moab::Range::insert().

Member Data Documentation

◆ container

Range* moab::range_inserter::container
protected

Definition at line 815 of file Range.hpp.


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