Back to index

salome-smesh  6.5.0
Public Member Functions | Protected Attributes
_MyIterator Struct Reference

=================================================================== More...

Inheritance diagram for _MyIterator:
Inheritance graph
[legend]
Collaboration diagram for _MyIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 _MyIterator (const vector< const SMDS_MeshNode * > &nodes)
virtual void init (const VALUE_SET_ITERATOR &begin, const VALUE_SET_ITERATOR &end)
 Initialization.
virtual bool more ()
 Return true if and only if there are other object in this iterator.
virtual VALUE next ()
 Return the current object and step to the next one.
virtual void remove ()
 Delete the current element and step to the next one.

Protected Attributes

VALUE_SET_ITERATOR _beg
VALUE_SET_ITERATOR _end

Detailed Description

===================================================================

Iterator on node of volume ===================================================================

Definition at line 189 of file SMDS_PolyhedralVolumeOfNodes.cxx.


Constructor & Destructor Documentation

_MyIterator::_MyIterator ( const vector< const SMDS_MeshNode * > &  nodes) [inline]

Definition at line 191 of file SMDS_PolyhedralVolumeOfNodes.cxx.

                                                         :
    SMDS_NodeVectorElemIterator( nodes.begin(), nodes.end()) {}

Member Function Documentation

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>>
virtual void SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >::init ( const VALUE_SET_ITERATOR &  begin,
const VALUE_SET_ITERATOR &  end 
) [inline, virtual, inherited]

Initialization.

Definition at line 75 of file SMDS_SetIterator.hxx.

  { _beg = begin; _end = end; }

Here is the caller graph for this function:

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>>
virtual bool SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >::more ( ) [inline, virtual, inherited]

Return true if and only if there are other object in this iterator.

Implements SMDS_Iterator< VALUE >.

Definition at line 80 of file SMDS_SetIterator.hxx.

{ return _beg != _end; }

Here is the caller graph for this function:

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>>
virtual VALUE SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >::next ( ) [inline, virtual, inherited]

Return the current object and step to the next one.

Implements SMDS_Iterator< VALUE >.

Definition at line 83 of file SMDS_SetIterator.hxx.

{ return ACCESOR::value( _beg++ ); }

Here is the caller graph for this function:

template<typename VALUE>
virtual void SMDS_Iterator< VALUE >::remove ( ) [inline, virtual, inherited]

Delete the current element and step to the next one.

Definition at line 44 of file SMDS_Iterator.hxx.

{}

Member Data Documentation

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>>
VALUE_SET_ITERATOR SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >::_beg [protected, inherited]

Definition at line 68 of file SMDS_SetIterator.hxx.

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>>
VALUE_SET_ITERATOR SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >::_end [protected, inherited]

Definition at line 68 of file SMDS_SetIterator.hxx.


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