STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Attributes | List of all members
Concurrency::_Network_link_iterator< _Block > Class Template Reference

Const iterator for network link registry. Message blocks should use the link_registry::iterator type for iteration. More...

#include <agents.h>

Public Types

typedef _Network_link_iterator< _Block > _Myt
 
typedef network_link_registry< _Block > _MyContainer
 
typedef _Block * _EType
 
typedef _EType const & const_reference
 
typedef _EType const * const_pointer
 

Public Member Functions

 _Network_link_iterator (_MyContainer *_PNetwork_link, size_t _Index)
 Construct iterator More...
 
 _Network_link_iterator (_Myt const &_Right)
 Copy construct an iterator More...
 
_Myt const & operator= (_Myt const &_Right)
 Copy assign an iterator More...
 
const_reference operator* ()
 Returns the object pointed to by the iterator More...
 
const_pointer operator-> () const
 Returns a pointer to the class object More...
 
_Mytoperator++ ()
 Pre-increment the iterator to point to the next element More...
 
_Myt operator++ (int)
 Post-increment the iterator to point to the next element More...
 

Private Attributes

_MyContainer_M_pNetwork_link
 
size_t _M_index
 
_EType _M_value
 

Detailed Description

template<class _Block>
class Concurrency::_Network_link_iterator< _Block >

Const iterator for network link registry. Message blocks should use the link_registry::iterator type for iteration.

Template Parameters
_BlockThe network block type

Member Typedef Documentation

template<class _Block >
typedef _Block* Concurrency::_Network_link_iterator< _Block >::_EType
template<class _Block >
typedef network_link_registry<_Block> Concurrency::_Network_link_iterator< _Block >::_MyContainer
template<class _Block >
typedef _Network_link_iterator<_Block> Concurrency::_Network_link_iterator< _Block >::_Myt
template<class _Block >
typedef _EType const* Concurrency::_Network_link_iterator< _Block >::const_pointer
template<class _Block >
typedef _EType const& Concurrency::_Network_link_iterator< _Block >::const_reference

Constructor & Destructor Documentation

template<class _Block >
Concurrency::_Network_link_iterator< _Block >::_Network_link_iterator ( _MyContainer _PNetwork_link,
size_t  _Index 
)
inline

Construct iterator

488  : _M_pNetwork_link(_PNetwork_link), _M_index(_Index), _M_value(NULL)
489  {
491  }
#define NULL
Definition: crtdbg.h:30
template<class _Block >
Concurrency::_Network_link_iterator< _Block >::_Network_link_iterator ( _Myt const &  _Right)
inline

Copy construct an iterator

498  {
499  _M_pNetwork_link = _Right._M_pNetwork_link;
500  _M_index = _Right._M_index;
501  }
const _Ty & _Right
Definition: algorithm:4087

Member Function Documentation

template<class _Block >
const_reference Concurrency::_Network_link_iterator< _Block >::operator* ( )
inline

Returns the object pointed to by the iterator

Returns
Reference to the object pointed to by the iterator
522  {
524  return _M_value;
525  }
template<class _Block >
_Myt& Concurrency::_Network_link_iterator< _Block >::operator++ ( )
inline

Pre-increment the iterator to point to the next element

Returns
Reference to the object pointer to by the iterator after incrementing it
548  {
549  ++_M_index;
551  return (*this);
552  }
template<class _Block >
_Myt Concurrency::_Network_link_iterator< _Block >::operator++ ( int  )
inline

Post-increment the iterator to point to the next element

Returns
Reference to the object pointer to by the iterator before incrementing it
563  {
564  _Myt _Tmp = *this;
565  ++*this;
566  return (_Tmp);
567  }
template<class _Block >
const_pointer Concurrency::_Network_link_iterator< _Block >::operator-> ( ) const
inline

Returns a pointer to the class object

Returns
Returns a pointer to the class object
535  {
536  return (&**this);
537  }
template<class _Block >
_Myt const& Concurrency::_Network_link_iterator< _Block >::operator= ( _Myt const &  _Right)
inline

Copy assign an iterator

508  {
509  _M_pNetwork_link = _Right._M_pNetwork_link;
510  _M_index = _Right._M_index;
511  return *this;
512  }
const _Ty & _Right
Definition: algorithm:4087

Member Data Documentation

template<class _Block >
size_t Concurrency::_Network_link_iterator< _Block >::_M_index
private
template<class _Block >
_MyContainer* Concurrency::_Network_link_iterator< _Block >::_M_pNetwork_link
private
template<class _Block >
_EType Concurrency::_Network_link_iterator< _Block >::_M_value
private

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