STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Attributes | List of all members
cliext::impl::vector_base< _Value_t, _Is_ref > Class Template Reference
Inheritance diagram for cliext::impl::vector_base< _Value_t, _Is_ref >:
cliext::impl::vector_impl< _Value_t, _Is_ref > cliext::impl::vector_select< _Value_t, _Is_ref > cliext::impl::vector_select< _Value_t, __is_ref_class(_Dehandle< _Value_t >::type)&&!is_handle< _Value_t >::value > cliext::vector< _Value_t >

Public Types

typedef vector_base< _Value_t, _Is_ref > _Mytype_t
 
typedef vector_impl< _Value_t, _Is_ref > _Mybase_t
 
typedef _Cont_make_value< _Value_t, _Is_ref > _Mymake_t
 
- Public Types inherited from cliext::impl::vector_impl< _Value_t, _Is_ref >
typedef vector_impl< _Value_t, _Is_ref > _Mytype_t
 
typedef _STLCLR IVector< _Value_t > _Mycont_it
 
typedef cli::array< _Value_t > _Myarray_t
 
typedef System::Collections::Generic::IEnumerable< _Value_t > _Myenum_it
 
typedef _Cont_make_value< _Value_t, _Is_ref > _Mymake_t
 
typedef RandomAccessIterator< _Mytype_titerator
 
typedef ConstRandomAccessIterator< _Mytype_tconst_iterator
 
typedef ReverseRandomAccessIterator< _Mytype_treverse_iterator
 
typedef ReverseRandomAccessIterator< _Mytype_tconst_reverse_iterator
 
typedef int size_type
 
typedef int difference_type
 
typedef _Value_t value_type
 
typedef value_type reference
 
typedef value_type const_reference
 
typedef _Mycont_it generic_container
 
typedef value_type generic_value
 
typedef _STLCLR Generic::ContainerRandomAccessIterator< _Value_t > generic_iterator
 
typedef _STLCLR Generic::ReverseRandomAccessIterator< _Value_t > generic_reverse_iterator
 

Public Member Functions

 vector_base ()
 
 vector_base (vector_base%_Right)
 
vector_base operator= (vector_base%_Right)
 
 operator _Mycont_it^ ()
 
 vector_base (size_type _Count)
 
 vector_base (size_type _Count, value_type _Val)
 
template<typename _InIt_t >
 vector_base (_InIt_t _First, _InIt_t _Last)
 
 vector_base (_Myenum_it^_Right)
 
template<typename _InIt_t >
void assign (_InIt_t _First, _InIt_t _Last)
 
template<typename _InIt_t >
void _Assign (_InIt_t _Count, _InIt_t _Val, _Int_iterator_tag%)
 
template<typename _InIt_t >
void _Assign (_InIt_t _First, _InIt_t _Last, input_iterator_tag%)
 
template<typename _InIt_t >
void _Assign (_InIt_t _First, _InIt_t _Last, random_access_iterator_tag%)
 
template<typename _InIt_t >
void insert (iterator _Where, _InIt_t _First, _InIt_t _Last)
 
template<typename _InIt_t >
void _Insert (size_type _Where, _InIt_t _First, _InIt_t _Last, _Int_iterator_tag%)
 
template<typename _InIt_t >
void _Insert (size_type _Where, _InIt_t _First, _InIt_t _Last, input_iterator_tag%)
 
template<typename _InIt_t >
void _Insert (size_type _Where, _InIt_t _First, _InIt_t _Last, forward_iterator_tag%)
 
- Public Member Functions inherited from cliext::impl::vector_impl< _Value_t, _Is_ref >
 vector_impl ()
 
vector_impl operator= (vector_impl%_Right)
 
 vector_impl (_Mytype_t%_Right)
 
 vector_impl (size_type _Count)
 
 vector_impl (size_type _Count, value_type _Val)
 
template<typename _InIt_t >
 vector_impl (_InIt_t _First, _InIt_t _Last)
 
template<typename _InIt_t >
void _Construct (_InIt_t _Count, _InIt_t _Val, _Int_iterator_tag%)
 
template<typename _InIt_t >
void _Construct (_InIt_t _First, _InIt_t _Last, input_iterator_tag%)
 
template<typename _InIt_t >
void _Construct (_InIt_t _First, _InIt_t _Last, forward_iterator_tag%)
 
 vector_impl (_Myenum_it^_Right)
 
 ~vector_impl ()
 
unsigned long get_generation ()
 
size_type get_bias (iterator _Where)
 
bool valid_bias (size_type _Bias)
 
reference at (size_type _Pos)
 
reference at_bias (size_type _Bias)
 
reference front ()
 
reference back ()
 
_Myarray_t to_array ()
 
iterator make_iterator (size_type _Bias)
 
iterator begin ()
 
iterator end ()
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
void reserve (size_type _Capacity)
 
size_type capacity ()
 
virtual void resize (size_type _Newsize)
 
void resize (size_type _Newsize, value_type _Val)
 
size_type size ()
 
bool empty ()
 
void push_back (value_type _Val)
 
void pop_back ()
 
void assign (size_type _Count, value_type _Val)
 
void assign (_STLCLR Generic::IInputIterator< _Value_t >^_First, _STLCLR Generic::IInputIterator< _Value_t >^_Last)
 
void assign (_Myenum_it^_Right)
 
void assign (System::Collections::IEnumerable^_Right)
 
iterator insert (iterator _Where, value_type _Val)
 
void insert (iterator _Where, size_type _Count, value_type _Val)
 
void insert (iterator _Where_iter, _STLCLR Generic::IInputIterator< _Value_t >^_First, _STLCLR Generic::IInputIterator< _Value_t >^_Last)
 
void insert (iterator _Where_iter, _Myenum_it^_Right)
 
void insert (iterator _Where_iter, System::Collections::IEnumerable^_Right)
 
template<typename _InIt_t >
void _Insert_self (size_type _Where, _InIt_t _First, _InIt_t _Last)
 
size_type insert_n (size_type _Where, size_type _Count, value_type _Val)
 
iterator erase (iterator _Where)
 
iterator erase (iterator _First, iterator _Last)
 
size_type erase_n (size_type _First, size_type _Last)
 
void reverse_n (size_type _First, size_type _Last)
 
void clear ()
 
void swap (_Mytype_t%_Right)
 
 return (_Capacity)
 
size_type _Copy (_Myarray_t^_Source, size_type _First, size_type _Last, size_type _Dest)
 
void _Copyback (size_type _First, size_type _Last, size_type _Dest)
 
size_type _Fill_n (size_type _First, size_type _Count, value_type _Val)
 
size_type _Insert_space (size_type _Where, size_type _Count)
 
virtual System::Object Clone ()
 

Private Attributes

property size_type Count_generic
 
property bool IsReadOnly
 

Additional Inherited Members

- Public Attributes inherited from cliext::impl::vector_impl< _Value_t, _Is_ref >
property value_type default [size_type]
 
property value_type front_item
 
property value_type back_item
 
_STLCLR_FIELD_ACCESS __pad0__: size_type _Buy(size_type _Capacity) { _Mygen = 0
 
_Myarray_t _Myarray
 
size_type _Mysize
 
unsigned long _Mygen
 
- Static Public Attributes inherited from cliext::impl::vector_impl< _Value_t, _Is_ref >
static const int _Maxsize = MAX_CONTAINER_SIZE
 

Member Typedef Documentation

template<typename _Value_t, bool _Is_ref>
typedef vector_impl<_Value_t, _Is_ref> cliext::impl::vector_base< _Value_t, _Is_ref >::_Mybase_t
template<typename _Value_t, bool _Is_ref>
typedef _Cont_make_value<_Value_t, _Is_ref> cliext::impl::vector_base< _Value_t, _Is_ref >::_Mymake_t
template<typename _Value_t, bool _Is_ref>
typedef vector_base<_Value_t, _Is_ref> cliext::impl::vector_base< _Value_t, _Is_ref >::_Mytype_t

Constructor & Destructor Documentation

template<typename _Value_t, bool _Is_ref>
cliext::impl::vector_base< _Value_t, _Is_ref >::vector_base ( )
inline
856  : _Mybase_t()
857  { // construct default
858  }
vector_impl< _Value_t, _Is_ref > _Mybase_t
Definition: vector:841
template<typename _Value_t, bool _Is_ref>
cliext::impl::vector_base< _Value_t, _Is_ref >::vector_base ( vector_base< _Value_t, _Is_ref >%  _Right)
inline
861  : _Mybase_t(_Right)
862  { // construct by copying a vector
863  }
vector_impl< _Value_t, _Is_ref > _Mybase_t
Definition: vector:841
const _Ty & _Right
Definition: algorithm:4087
template<typename _Value_t, bool _Is_ref>
cliext::impl::vector_base< _Value_t, _Is_ref >::vector_base ( size_type  _Count)
inlineexplicit
878  : _Mybase_t(_Count)
879  { // construct from _Count * value_type()
880  }
vector_impl< _Value_t, _Is_ref > _Mybase_t
Definition: vector:841
_Diff _Count
Definition: algorithm:1941
template<typename _Value_t, bool _Is_ref>
cliext::impl::vector_base< _Value_t, _Is_ref >::vector_base ( size_type  _Count,
value_type  _Val 
)
inline
883  : _Mybase_t(_Count, _Val)
884  { // construct from _Count * _Val
885  }
vector_impl< _Value_t, _Is_ref > _Mybase_t
Definition: vector:841
_Diff _Count
Definition: algorithm:1941
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<typename _Value_t, bool _Is_ref>
template<typename _InIt_t >
cliext::impl::vector_base< _Value_t, _Is_ref >::vector_base ( _InIt_t  _First,
_InIt_t  _Last 
)
inline
889  : _Mybase_t(_First, _Last)
890  { // construct from [_First, _Last)
891  }
vector_impl< _Value_t, _Is_ref > _Mybase_t
Definition: vector:841
_FwdIt _Last
Definition: algorithm:1936
template<typename _Value_t, bool _Is_ref>
cliext::impl::vector_base< _Value_t, _Is_ref >::vector_base ( _Myenum_it _Right)
inline
894  : _Mybase_t(_Right)
895  { // initialize with enumeration
896  }
vector_impl< _Value_t, _Is_ref > _Mybase_t
Definition: vector:841
const _Ty & _Right
Definition: algorithm:4087

Member Function Documentation

template<typename _Value_t, bool _Is_ref>
template<typename _InIt_t >
void cliext::impl::vector_base< _Value_t, _Is_ref >::_Assign ( _InIt_t  _Count,
_InIt_t  _Val,
_Int_iterator_tag  
)
inline
908  { // assign _Count * _Val
909  clear();
911  }
void clear()
Definition: vector:492
int size_type
Definition: vector:33
_Value_t value_type
Definition: vector:35
size_type insert_n(size_type _Where, size_type _Count, value_type _Val)
Definition: vector:430
_Diff _Count
Definition: algorithm:1941
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<typename _Value_t, bool _Is_ref>
template<typename _InIt_t >
void cliext::impl::vector_base< _Value_t, _Is_ref >::_Assign ( _InIt_t  _First,
_InIt_t  _Last,
input_iterator_tag  
)
inline
916  { // initialize with [_First, _Last), input iterators
917  if (_Iter_container(_First) != this)
918  clear();
919 
920  size_type _Oldsize = size();
921 
922  for (; _First != _Last; ++_First)
923  insert_n(size(), 1, (value_type)*_First); // append new stuff
924  erase_n(0, _Oldsize); // erase any leftover old stuff
925  }
void clear()
Definition: vector:492
int size_type
Definition: vector:33
_Value_t value_type
Definition: vector:35
size_type size()
Definition: vector:292
size_type erase_n(size_type _First, size_type _Last)
Definition: vector:460
System::Object _Iter_container(_Iter_t%_Next)
Definition: iterator:4248
size_type insert_n(size_type _Where, size_type _Count, value_type _Val)
Definition: vector:430
_FwdIt _Last
Definition: algorithm:1936
template<typename _Value_t, bool _Is_ref>
template<typename _InIt_t >
void cliext::impl::vector_base< _Value_t, _Is_ref >::_Assign ( _InIt_t  _First,
_InIt_t  _Last,
random_access_iterator_tag  
)
inline
930  { // initialize with [_First, _Last), input iterators
931  if (_Last < _First)
932  throw gcnew System::ArgumentOutOfRangeException();
933 
934  if (_Iter_container(_First) != this)
935  clear();
936 
937  size_type _Oldsize = size();
938 
939  for (; _First != _Last; ++_First)
940  insert_n(size(), 1, (value_type)*_First); // append new stuff
941  erase_n(0, _Oldsize); // erase any leftover old stuff
942  }
void clear()
Definition: vector:492
int size_type
Definition: vector:33
_Value_t value_type
Definition: vector:35
size_type size()
Definition: vector:292
size_type erase_n(size_type _First, size_type _Last)
Definition: vector:460
System::Object _Iter_container(_Iter_t%_Next)
Definition: iterator:4248
size_type insert_n(size_type _Where, size_type _Count, value_type _Val)
Definition: vector:430
_FwdIt _Last
Definition: algorithm:1936
template<typename _Value_t, bool _Is_ref>
template<typename _InIt_t >
void cliext::impl::vector_base< _Value_t, _Is_ref >::_Insert ( size_type  _Where,
_InIt_t  _First,
_InIt_t  _Last,
_Int_iterator_tag  
)
inline
954  { // insert _Count * _Val at _Where
955  insert_n(_Where, (size_type)_First, (value_type)_Last);
956  }
int size_type
Definition: vector:33
_Value_t value_type
Definition: vector:35
size_type insert_n(size_type _Where, size_type _Count, value_type _Val)
Definition: vector:430
_FwdIt _Last
Definition: algorithm:1936
template<typename _Value_t, bool _Is_ref>
template<typename _InIt_t >
void cliext::impl::vector_base< _Value_t, _Is_ref >::_Insert ( size_type  _Where,
_InIt_t  _First,
_InIt_t  _Last,
input_iterator_tag  
)
inline
961  { // insert [_First, _Last) at _Where, input iterators
962  if (_Iter_container(_First) == this)
963  _Insert_self(_Where, _First, _Last);
964  else
965  for (; _First != _Last; ++_First, ++_Where)
966  _Where = insert_n(_Where, 1, (value_type)*_First);
967  }
_Value_t value_type
Definition: vector:35
void _Insert_self(size_type _Where, _InIt_t _First, _InIt_t _Last)
Definition: vector:416
System::Object _Iter_container(_Iter_t%_Next)
Definition: iterator:4248
size_type insert_n(size_type _Where, size_type _Count, value_type _Val)
Definition: vector:430
_FwdIt _Last
Definition: algorithm:1936
template<typename _Value_t, bool _Is_ref>
template<typename _InIt_t >
void cliext::impl::vector_base< _Value_t, _Is_ref >::_Insert ( size_type  _Where,
_InIt_t  _First,
_InIt_t  _Last,
forward_iterator_tag  
)
inline
972  { // insert [_First, _Last) at _Where, forward iterators
973  if (_Iter_container(_First) == this)
974  _Insert_self(_Where, _First, _Last);
975  else
976  { // not inserting from this container, dig a hole and fill it
978 
979  if (_Size < 0)
980  throw gcnew System::ArgumentOutOfRangeException();
981  _Insert_space(_Where, _Size);
982  for (size_type _Idx = 0; _Idx < _Size; ++_Idx, ++_First)
983  _Myarray[_Where + _Idx] =
985  }
986  }
static _Value_t make_value(_Value_t%_Val)
Definition: xutility:87
_Myarray_t _Myarray
Definition: vector:582
int size_type
Definition: vector:33
_Value_t value_type
Definition: vector:35
int distance(_InIt_t _First, _InIt_t _Last)
Definition: xutility:720
void _Insert_self(size_type _Where, _InIt_t _First, _InIt_t _Last)
Definition: vector:416
System::Object _Iter_container(_Iter_t%_Next)
Definition: iterator:4248
size_type _Insert_space(size_type _Where, size_type _Count)
Definition: vector:548
_Check_return_ _In_ long _Size
Definition: io.h:325
_FwdIt _Last
Definition: algorithm:1936
template<typename _Value_t, bool _Is_ref>
template<typename _InIt_t >
void cliext::impl::vector_base< _Value_t, _Is_ref >::assign ( _InIt_t  _First,
_InIt_t  _Last 
)
inline
901  { // assign [_First, _Last)
902  _Assign(_First, _Last, _Iter_category(_First));
903  }
void _Assign(_InIt_t _Count, _InIt_t _Val, _Int_iterator_tag%)
Definition: vector:906
iterator_traits< _Iter_t >::iterator_category _Iter_category(_Iter_t)
Definition: xutility:654
_FwdIt _Last
Definition: algorithm:1936
template<typename _Value_t, bool _Is_ref>
template<typename _InIt_t >
void cliext::impl::vector_base< _Value_t, _Is_ref >::insert ( iterator  _Where,
_InIt_t  _First,
_InIt_t  _Last 
)
inline
946  { // insert [_First, _Last) at _Where
947  _Insert(get_bias(_Where), _First, _Last,
948  _Iter_category(_First));
949  }
iterator_traits< _Iter_t >::iterator_category _Iter_category(_Iter_t)
Definition: xutility:654
size_type get_bias(iterator _Where)
Definition: vector:142
void _Insert(size_type _Where, _InIt_t _First, _InIt_t _Last, _Int_iterator_tag%)
Definition: vector:952
_FwdIt _Last
Definition: algorithm:1936
template<typename _Value_t, bool _Is_ref>
cliext::impl::vector_base< _Value_t, _Is_ref >::operator _Mycont_it^ ( )
inline
872  { // convert to interface
873  return (this);
874  }
template<typename _Value_t, bool _Is_ref>
vector_base cliext::impl::vector_base< _Value_t, _Is_ref >::operator= ( vector_base< _Value_t, _Is_ref >%  _Right)
inline
866  { // assign
868  return (*this);
869  }
vector_impl operator=(vector_impl%_Right)
Definition: vector:55
const _Ty & _Right
Definition: algorithm:4087

Member Data Documentation

template<typename _Value_t, bool _Is_ref>
property size_type cliext::impl::vector_base< _Value_t, _Is_ref >::Count_generic
private
Initial value:
template<typename _Value_t, bool _Is_ref>
property bool cliext::impl::vector_base< _Value_t, _Is_ref >::IsReadOnly
private
Initial value:
{
virtual bool get() sealed
= System::Collections::Generic::ICollection<_Value_t>
{
return (false);
}
}

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