STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t > Class Template Reference

Public Types

typedef Enum_iterator< _Cont_t, _Enum_t, _Value_t > _Mytype_t
 
typedef input_iterator_tag iterator_category
 
typedef _Value_t value_type
 
typedef int difference_type
 
typedef value_type pointer
 
typedef value_type reference
 
typedef value_type const_reference
 

Public Member Functions

 Enum_iterator ()
 
 Enum_iterator (Enum_iterator%_Right)
 
Enum_iterator operator= (Enum_iterator%_Right)
 
 Enum_iterator (_Cont_t^_Cont)
 
 Enum_iterator (_Cont_t^_Cont, _Enum_t^_Enum)
 
Enum_iterator operator++ ()
 
Enum_iterator operator++ (int)
 
bool operator== (_Mytype_t%_Right)
 
bool operator!= (_Mytype_t%_Right)
 

Static Public Member Functions

static value_type operator-> (Enum_iterator%_Left)
 
static value_type operator* (Enum_iterator%_Left)
 

Public Attributes

_STLCLR_FIELD_ACCESS __pad0__: _Cont_t^ _Mycont
 
_Enum_t _Myenum
 

Member Typedef Documentation

template<typename _Cont_t , typename _Enum_t , typename _Value_t >
typedef Enum_iterator<_Cont_t, _Enum_t, _Value_t> cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::_Mytype_t
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
typedef value_type cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::const_reference
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
typedef int cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::difference_type
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
typedef input_iterator_tag cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::iterator_category
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
typedef value_type cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::pointer
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
typedef value_type cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::reference
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
typedef _Value_t cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::value_type

Constructor & Destructor Documentation

template<typename _Cont_t , typename _Enum_t , typename _Value_t >
cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::Enum_iterator ( )
inline
35  : _Mycont(nullptr), _Myenum(nullptr)
36  { // construct default
37  }
_Enum_t _Myenum
Definition: adapter:105
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::Enum_iterator ( Enum_iterator< _Cont_t, _Enum_t, _Value_t >%  _Right)
inline
40  : _Mycont(_Right._Mycont), _Myenum(_Right._Myenum)
41  { // construct by copying an iterator
42  }
_Enum_t _Myenum
Definition: adapter:105
const _Ty & _Right
Definition: algorithm:4087
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::Enum_iterator ( _Cont_t^  _Cont)
inline
53  : _Mycont(_Cont), _Myenum(nullptr)
54  { // construct from container
55  }
_Enum_t _Myenum
Definition: adapter:105
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::Enum_iterator ( _Cont_t^  _Cont,
_Enum_t^  _Enum 
)
inline
58  : _Mycont(_Cont), _Myenum(_Enum)
59  { // construct from container and enumerator
60  if (!_Myenum->MoveNext())
61  _Myenum = nullptr;
62  }
_Enum_t _Myenum
Definition: adapter:105

Member Function Documentation

template<typename _Cont_t , typename _Enum_t , typename _Value_t >
bool cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::operator!= ( _Mytype_t _Right)
inline
98  { // test if *this != _Right
99  return (!(*this == _Right));
100  }
const _Ty & _Right
Definition: algorithm:4087
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
static value_type cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::operator* ( Enum_iterator< _Cont_t, _Enum_t, _Value_t >%  _Left)
inlinestatic
71  { // return reference to designated element
72  return (_Left._Myenum->Current);
73  }
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
Enum_iterator cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::operator++ ( )
inline
76  { // return incremented
77  if (!_Myenum->MoveNext())
78  _Myenum = nullptr;
79  return (*this);
80  }
_Enum_t _Myenum
Definition: adapter:105
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
Enum_iterator cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::operator++ ( int  )
inline
83  { // return incremented
84  Enum_iterator _Iter = *this;
85 
86  ++*this;
87  return (_Iter);
88  }
Enum_iterator()
Definition: adapter:34
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
static value_type cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::operator-> ( Enum_iterator< _Cont_t, _Enum_t, _Value_t >%  _Left)
inlinestatic
66  { // return pointer to class object
67  return (_Left._Myenum->Current);
68  }
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
Enum_iterator cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::operator= ( Enum_iterator< _Cont_t, _Enum_t, _Value_t >%  _Right)
inline
45  { // assign an iterator
46  _Mycont = _Right._Mycont;
47  _Myenum = _Right._Myenum;
48  return (*this);
49  }
_Enum_t _Myenum
Definition: adapter:105
const _Ty & _Right
Definition: algorithm:4087
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
bool cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::operator== ( _Mytype_t _Right)
inline
91  { // test if *this == _Right
92  if (_Mycont != _Right._Mycont)
93  throw gcnew System::InvalidOperationException();
94  return ((System::Object^)_Myenum == _Right._Myenum);
95  }
_Enum_t _Myenum
Definition: adapter:105
const _Ty & _Right
Definition: algorithm:4087

Member Data Documentation

template<typename _Cont_t , typename _Enum_t , typename _Value_t >
_STLCLR_FIELD_ACCESS cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::__pad0__
template<typename _Cont_t , typename _Enum_t , typename _Value_t >
_Enum_t cliext::Enum_iterator< _Cont_t, _Enum_t, _Value_t >::_Myenum

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