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::queue_base< _Value_t, _Cont_t > Class Template Reference
Inheritance diagram for cliext::impl::queue_base< _Value_t, _Cont_t >:

Public Types

typedef queue_base< _Value_t, _Cont_t > _Mytype_t
 
typedef _STLCLR IQueue< _Value_t, typename _Container_traits< _Cont_t >::generic_container_handle > _Mycont_it
 
typedef cli::array< _Value_t > _Myarray_t
 
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 _Dehandle< _Cont_t >::type container_type
 

Public Member Functions

 queue_base ()
 
queue_base operator= (queue_base%_Right)
 
 operator _Mycont_it^ ()
 
 queue_base (container_type%_Cont)
 
 ~queue_base ()
 
virtual reference front ()
 
virtual reference back ()
 
virtual container_type get_container ()
 
virtual System::Object Clone ()
 
_Myarray_t to_array ()
 
virtual size_type size ()
 
virtual bool empty ()
 
virtual void push (value_type _Val)
 
virtual void pop ()
 
virtual void assign (_Mytype_t%_Right)
 

Public Attributes

property value_type front_item
 
property value_type back_item
 
_STLCLR_FIELD_ACCESS __pad0__: container_type^ c
 

Member Typedef Documentation

template<typename _Value_t, typename _Cont_t>
typedef cli::array<_Value_t> cliext::impl::queue_base< _Value_t, _Cont_t >::_Myarray_t
template<typename _Value_t, typename _Cont_t>
typedef _STLCLR IQueue<_Value_t, typename _Container_traits<_Cont_t>::generic_container_handle> cliext::impl::queue_base< _Value_t, _Cont_t >::_Mycont_it
template<typename _Value_t, typename _Cont_t>
typedef queue_base<_Value_t, _Cont_t> cliext::impl::queue_base< _Value_t, _Cont_t >::_Mytype_t
template<typename _Value_t, typename _Cont_t>
typedef value_type cliext::impl::queue_base< _Value_t, _Cont_t >::const_reference
template<typename _Value_t, typename _Cont_t>
typedef _Dehandle<_Cont_t>::type cliext::impl::queue_base< _Value_t, _Cont_t >::container_type
template<typename _Value_t, typename _Cont_t>
typedef int cliext::impl::queue_base< _Value_t, _Cont_t >::difference_type
template<typename _Value_t, typename _Cont_t>
typedef _Mycont_it cliext::impl::queue_base< _Value_t, _Cont_t >::generic_container
template<typename _Value_t, typename _Cont_t>
typedef value_type cliext::impl::queue_base< _Value_t, _Cont_t >::generic_value
template<typename _Value_t, typename _Cont_t>
typedef value_type cliext::impl::queue_base< _Value_t, _Cont_t >::reference
template<typename _Value_t, typename _Cont_t>
typedef int cliext::impl::queue_base< _Value_t, _Cont_t >::size_type
template<typename _Value_t, typename _Cont_t>
typedef _Value_t cliext::impl::queue_base< _Value_t, _Cont_t >::value_type

Constructor & Destructor Documentation

template<typename _Value_t, typename _Cont_t>
cliext::impl::queue_base< _Value_t, _Cont_t >::queue_base ( )
inline
42  : c(gcnew container_type)
43  { // default constructor
44  }
_Dehandle< _Cont_t >::type container_type
Definition: queue:38
template<typename _Value_t, typename _Cont_t>
cliext::impl::queue_base< _Value_t, _Cont_t >::queue_base ( container_type _Cont)
inlineexplicit
59  : c(gcnew container_type(_Cont))
60  { // construct from container
61  }
_Dehandle< _Cont_t >::type container_type
Definition: queue:38
template<typename _Value_t, typename _Cont_t>
cliext::impl::queue_base< _Value_t, _Cont_t >::~queue_base ( )
inline
65  { // destroy the object
66  delete c;
67  }

Member Function Documentation

template<typename _Value_t, typename _Cont_t>
virtual void cliext::impl::queue_base< _Value_t, _Cont_t >::assign ( _Mytype_t _Right)
inlinevirtual
145  { // assign
146  *c = *_Right.get_container();
147  }
const _Ty & _Right
Definition: algorithm:4087
template<typename _Value_t, typename _Cont_t>
virtual reference cliext::impl::queue_base< _Value_t, _Cont_t >::back ( )
inlinevirtual

Reimplemented in cliext::impl::queue_select< _Value_t, _Cont_t, true >.

102  { // get newest element
103  return (((typename container_type::generic_container^)c)->back());
104  }
virtual reference back()
Definition: queue:101
template<typename _Value_t, typename _Cont_t>
virtual System::Object cliext::impl::queue_base< _Value_t, _Cont_t >::Clone ( )
inlinevirtual

Reimplemented in cliext::queue< _Value_t, _Cont_t >.

113  { // clone the queue
114  return (gcnew queue_base(*c));
115  }
queue_base()
Definition: queue:41
template<typename _Value_t, typename _Cont_t>
virtual bool cliext::impl::queue_base< _Value_t, _Cont_t >::empty ( )
inlinevirtual
129  { // test if sequence is empty
130  return (size() == 0);
131  }
virtual size_type size()
Definition: queue:123
template<typename _Value_t, typename _Cont_t>
virtual reference cliext::impl::queue_base< _Value_t, _Cont_t >::front ( )
inlinevirtual

Reimplemented in cliext::impl::queue_select< _Value_t, _Cont_t, true >.

97  { // get oldest element
98  return (((typename container_type::generic_container^)c)->front());
99  }
virtual reference front()
Definition: queue:96
template<typename _Value_t, typename _Cont_t>
virtual container_type cliext::impl::queue_base< _Value_t, _Cont_t >::get_container ( )
inlinevirtual
107  { // return container
108  return (c);
109  }
template<typename _Value_t, typename _Cont_t>
cliext::impl::queue_base< _Value_t, _Cont_t >::operator _Mycont_it^ ( )
inline
53  { // convert to interface
54  return (this);
55  }
template<typename _Value_t, typename _Cont_t>
queue_base cliext::impl::queue_base< _Value_t, _Cont_t >::operator= ( queue_base< _Value_t, _Cont_t >%  _Right)
inline
47  { // assign
48  assign(_Right);
49  return (*this);
50  }
virtual void assign(_Mytype_t%_Right)
Definition: queue:144
const _Ty & _Right
Definition: algorithm:4087
template<typename _Value_t, typename _Cont_t>
virtual void cliext::impl::queue_base< _Value_t, _Cont_t >::pop ( )
inlinevirtual
140  { // erase element at front end
141  c->pop_front();
142  }
template<typename _Value_t, typename _Cont_t>
virtual void cliext::impl::queue_base< _Value_t, _Cont_t >::push ( value_type  _Val)
inlinevirtual
135  { // insert element at back end
136  c->push_back(_Val);
137  }
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<typename _Value_t, typename _Cont_t>
virtual size_type cliext::impl::queue_base< _Value_t, _Cont_t >::size ( )
inlinevirtual
124  { // return length of sequence
125  return (c->size());
126  }
template<typename _Value_t, typename _Cont_t>
_Myarray_t cliext::impl::queue_base< _Value_t, _Cont_t >::to_array ( )
inline
118  { // convert to array
119  return (c->to_array());
120  }

Member Data Documentation

template<typename _Value_t, typename _Cont_t>
_STLCLR_FIELD_ACCESS cliext::impl::queue_base< _Value_t, _Cont_t >::__pad0__
template<typename _Value_t, typename _Cont_t>
property value_type cliext::impl::queue_base< _Value_t, _Cont_t >::back_item
Initial value:
{
value_type get()
{
return (back());
}
{
back() = _Val;
}
}
template<typename _Value_t, typename _Cont_t>
property value_type cliext::impl::queue_base< _Value_t, _Cont_t >::front_item
Initial value:
{
value_type get()
{
return (front());
}
{
front() = _Val;
}
}

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