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

489  : _M_pNetwork_link(_PNetwork_link), _M_index(_Index), _M_value(NULL)
490  {
492  }
#define NULL
Definition: vcruntime.h:236
template<class _Block >
Concurrency::_Network_link_iterator< _Block >::_Network_link_iterator ( _Myt const &  _Right)
inline

Copy construct an iterator

499  {
500  _M_pNetwork_link = _Right._M_pNetwork_link;
501  _M_index = _Right._M_index;
502  }
constexpr const _Ty &() _Right
Definition: algorithm:3591

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
523  {
525  return _M_value;
526  }
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
549  {
550  ++_M_index;
552  return (*this);
553  }
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
564  {
565  _Myt _Tmp = *this;
566  ++*this;
567  return (_Tmp);
568  }
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
536  {
537  return (&**this);
538  }
template<class _Block >
_Myt const& Concurrency::_Network_link_iterator< _Block >::operator= ( _Myt const &  _Right)
inline

Copy assign an iterator

509  {
510  _M_pNetwork_link = _Right._M_pNetwork_link;
511  _M_index = _Right._M_index;
512  return *this;
513  }
constexpr const _Ty &() _Right
Definition: algorithm:3591

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: