libMesh::mesh_inserter_iterator< T > Struct Template Reference

An output iterator for use with packed_range functions. More...

#include <mesh_inserter_iterator.h>

Inheritance diagram for libMesh::mesh_inserter_iterator< T >:

Public Member Functions

 mesh_inserter_iterator (MeshBase &m)
 
void operator= (Elem *e)
 
void operator= (Node *n)
 
void operator= (Point *p)
 
mesh_inserter_iteratoroperator++ ()
 
mesh_inserter_iterator operator++ (int)
 
mesh_inserter_iteratoroperator* ()
 

Private Attributes

MeshBasemesh
 

Detailed Description

template<typename T>
struct libMesh::mesh_inserter_iterator< T >

An output iterator for use with packed_range functions.

A class for templated methods that expect output iterator arguments, which adds objects to the Mesh. Although any mesh_inserter_iterator can add any object, we template it around object type so that type inference and iterator_traits will work.

Author
Roy Stogner
Date
2012

Definition at line 46 of file mesh_inserter_iterator.h.

Constructor & Destructor Documentation

Member Function Documentation

template<typename T >
mesh_inserter_iterator& libMesh::mesh_inserter_iterator< T >::operator* ( )
inline

Definition at line 69 of file mesh_inserter_iterator.h.

69 { return *this; }
template<typename T >
mesh_inserter_iterator& libMesh::mesh_inserter_iterator< T >::operator++ ( )
inline

Definition at line 57 of file mesh_inserter_iterator.h.

57  {
58  return *this;
59  }
template<typename T >
mesh_inserter_iterator libMesh::mesh_inserter_iterator< T >::operator++ ( int  )
inline
template<typename T >
void libMesh::mesh_inserter_iterator< T >::operator= ( Elem e)
inline
template<typename T >
void libMesh::mesh_inserter_iterator< T >::operator= ( Node n)
inline
template<typename T >
void libMesh::mesh_inserter_iterator< T >::operator= ( Point p)
inline

Definition at line 55 of file mesh_inserter_iterator.h.

References libMesh::MeshBase::add_point(), and libMesh::mesh_inserter_iterator< T >::mesh.

55 { mesh.add_point(*p); }
virtual Node * add_point(const Point &p, const dof_id_type id=DofObject::invalid_id, const processor_id_type proc_id=DofObject::invalid_processor_id)=0

Member Data Documentation

template<typename T >
MeshBase& libMesh::mesh_inserter_iterator< T >::mesh
private

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