STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Public Attributes | List of all members
cliext::impl::range_enumerator_base< _Iter_t, _Value_t > Class Template Reference
Inheritance diagram for cliext::impl::range_enumerator_base< _Iter_t, _Value_t >:
cliext::impl::range_enumerator< _Iter_t, _Value_t >

Public Types

typedef range_enumerator_base< _Iter_t, _Value_t > _Mytype_t
 
typedef _Value_t value_type
 

Public Member Functions

 range_enumerator_base (_Iter_t _First, _Iter_t _Last)
 
virtual bool MoveNext ()
 
virtual void Reset ()
 
void _Setval (value_type _Val)
 

Public Attributes

property System::Object Current
 
_STLCLR_FIELD_ACCESS __pad0__: value_type _Getval() { if (_Is_reset || _Mynext == _Mylast) throw gcnew System::InvalidOperationException()
 
return_Mynext
 
_STLCLR_FIELD_ACCESS __pad1__: bool _Is_reset
 
_Iter_t _Myfirst
 
_Iter_t _Mynext
 
_Iter_t _Mylast
 

Member Typedef Documentation

template<typename _Iter_t , typename _Value_t >
typedef range_enumerator_base<_Iter_t, _Value_t> cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::_Mytype_t
template<typename _Iter_t , typename _Value_t >
typedef _Value_t cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::value_type

Constructor & Destructor Documentation

template<typename _Iter_t , typename _Value_t >
cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::range_enumerator_base ( _Iter_t  _First,
_Iter_t  _Last 
)
inline
1002  : _Myfirst(_First), _Mylast(_Last), _Is_reset(true)
1003  { // construct from iterator pair
1004  }
_Iter_t _Myfirst
Definition: adapter:1053
_Iter_t _Mylast
Definition: adapter:1055
_FwdIt _Last
Definition: algorithm:1936

Member Function Documentation

template<typename _Iter_t , typename _Value_t >
void cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::_Setval ( value_type  _Val)
inline
1045  { // set next element
1046  if (_Is_reset || _Mynext == _Mylast)
1047  throw gcnew System::InvalidOperationException();
1048  *_Mynext = _Val;
1049  }
return * _Mynext
Definition: adapter:1041
_Iter_t _Mylast
Definition: adapter:1055
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<typename _Iter_t , typename _Value_t >
virtual bool cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::MoveNext ( )
inlinevirtual

Reimplemented in cliext::impl::range_enumerator< _Iter_t, _Value_t >.

1007  { // move to next element and test if done
1008  if (_Is_reset)
1009  { // starting, point to front and clear flag
1010  _Is_reset = false;
1011  _Mynext = _Myfirst;
1012  }
1013  else if (_Mynext != _Mylast)
1014  ++_Mynext;
1015  return (_Mynext != _Mylast);
1016  }
_Iter_t _Myfirst
Definition: adapter:1053
return * _Mynext
Definition: adapter:1041
_Iter_t _Mylast
Definition: adapter:1055
template<typename _Iter_t , typename _Value_t >
virtual void cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::Reset ( )
inlinevirtual

Reimplemented in cliext::impl::range_enumerator< _Iter_t, _Value_t >.

1032  { // restart enumerator
1033  _Is_reset = true;
1034  }

Member Data Documentation

template<typename _Iter_t , typename _Value_t >
_STLCLR_FIELD_ACCESS cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::__pad0__
template<typename _Iter_t , typename _Value_t >
_STLCLR_FIELD_ACCESS cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::__pad1__
template<typename _Iter_t , typename _Value_t >
_Iter_t cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::_Myfirst
template<typename _Iter_t , typename _Value_t >
_Iter_t cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::_Mylast
template<typename _Iter_t , typename _Value_t >
return* cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::_Mynext
template<typename _Iter_t , typename _Value_t >
_Iter_t cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::_Mynext
template<typename _Iter_t , typename _Value_t >
property System::Object cliext::impl::range_enumerator_base< _Iter_t, _Value_t >::Current
Initial value:
{
virtual System::Object^ get()
{
return (_Getval());
}
virtual void set(System::Object^ _Val)
{
}
}

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