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


Member Typedef Documentation

Definition at line 840 of file Range.hpp.

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

Definition at line 841 of file Range.hpp.

Definition at line 842 of file Range.hpp.

Definition at line 843 of file Range.hpp.

Definition at line 839 of file Range.hpp.


Constructor & Destructor Documentation

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

Definition at line 819 of file Range.hpp.

: container( &x ) {}

Member Function Documentation

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

Definition at line 826 of file Range.hpp.

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

Definition at line 830 of file Range.hpp.

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

Definition at line 834 of file Range.hpp.

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

Definition at line 820 of file Range.hpp.

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

Member Data Documentation

Definition at line 815 of file Range.hpp.

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