MOAB: Mesh Oriented datABase  (version 5.2.1)
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 809 of file Range.hpp.


Member Typedef Documentation

Definition at line 838 of file Range.hpp.

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

Definition at line 839 of file Range.hpp.

Definition at line 840 of file Range.hpp.

Definition at line 841 of file Range.hpp.

Definition at line 837 of file Range.hpp.


Constructor & Destructor Documentation

moab::range_inserter::range_inserter ( Range x) [inline, explicit]

Definition at line 817 of file Range.hpp.

: container( &x ) {}

Member Function Documentation

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

Definition at line 824 of file Range.hpp.

    {
        return *this;
    }
range_inserter& moab::range_inserter::operator++ ( ) [inline]

Definition at line 828 of file Range.hpp.

    {
        return *this;
    }
range_inserter& moab::range_inserter::operator++ ( int  ) [inline]

Definition at line 832 of file Range.hpp.

    {
        return *this;
    }
range_inserter& moab::range_inserter::operator= ( const Range::value_type value) [inline]

Definition at line 818 of file Range.hpp.

References container, and moab::Range::insert().

    {
        container->insert( value );
        return *this;
    }

Member Data Documentation

Definition at line 813 of file Range.hpp.

Referenced by operator=().

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