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

Public Types

typedef stack_base< _Value_t, _Cont_t > _Mytype_t
 
typedef _STLCLR IStack< _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

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

Public Attributes

property value_type top_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::stack_base< _Value_t, _Cont_t >::_Myarray_t
template<typename _Value_t, typename _Cont_t>
typedef _STLCLR IStack<_Value_t, typename _Container_traits<_Cont_t>::generic_container_handle> cliext::impl::stack_base< _Value_t, _Cont_t >::_Mycont_it
template<typename _Value_t, typename _Cont_t>
typedef stack_base<_Value_t, _Cont_t> cliext::impl::stack_base< _Value_t, _Cont_t >::_Mytype_t
template<typename _Value_t, typename _Cont_t>
typedef value_type cliext::impl::stack_base< _Value_t, _Cont_t >::const_reference
template<typename _Value_t, typename _Cont_t>
typedef _Dehandle<_Cont_t>::type cliext::impl::stack_base< _Value_t, _Cont_t >::container_type
template<typename _Value_t, typename _Cont_t>
typedef int cliext::impl::stack_base< _Value_t, _Cont_t >::difference_type
template<typename _Value_t, typename _Cont_t>
typedef _Mycont_it cliext::impl::stack_base< _Value_t, _Cont_t >::generic_container
template<typename _Value_t, typename _Cont_t>
typedef value_type cliext::impl::stack_base< _Value_t, _Cont_t >::generic_value
template<typename _Value_t, typename _Cont_t>
typedef value_type cliext::impl::stack_base< _Value_t, _Cont_t >::reference
template<typename _Value_t, typename _Cont_t>
typedef int cliext::impl::stack_base< _Value_t, _Cont_t >::size_type
template<typename _Value_t, typename _Cont_t>
typedef _Value_t cliext::impl::stack_base< _Value_t, _Cont_t >::value_type

Constructor & Destructor Documentation

template<typename _Value_t, typename _Cont_t>
cliext::impl::stack_base< _Value_t, _Cont_t >::stack_base ( )
inline
38  : c(gcnew container_type)
39  { // default constructor
40  }
_Dehandle< _Cont_t >::type container_type
Definition: stack:34
template<typename _Value_t, typename _Cont_t>
cliext::impl::stack_base< _Value_t, _Cont_t >::stack_base ( container_type _Cont)
inline
55  : c(gcnew container_type(_Cont))
56  { // construct from container
57  }
_Dehandle< _Cont_t >::type container_type
Definition: stack:34
template<typename _Value_t, typename _Cont_t>
cliext::impl::stack_base< _Value_t, _Cont_t >::~stack_base ( )
inline
61  { // destroy the object
62  delete c;
63  }

Member Function Documentation

template<typename _Value_t, typename _Cont_t>
void cliext::impl::stack_base< _Value_t, _Cont_t >::assign ( _Mytype_t _Right)
inline
123  { // assign
124  *c = _Right.get_container();
125  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<typename _Value_t, typename _Cont_t>
virtual System::Object cliext::impl::stack_base< _Value_t, _Cont_t >::Clone ( )
inlinevirtual

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

91  { // clone the stack
92  return (gcnew stack_base(*c));
93  }
stack_base()
Definition: stack:37
template<typename _Value_t, typename _Cont_t>
bool cliext::impl::stack_base< _Value_t, _Cont_t >::empty ( )
inline
107  { // test if sequence is empty
108  return (size() == 0);
109  }
size_type size()
Definition: stack:101
template<typename _Value_t, typename _Cont_t>
container_type cliext::impl::stack_base< _Value_t, _Cont_t >::get_container ( )
inline
85  { // return container
86  return (c);
87  }
template<typename _Value_t, typename _Cont_t>
cliext::impl::stack_base< _Value_t, _Cont_t >::operator _Mycont_it^ ( )
inline
49  { // convert to interface
50  return (this);
51  }
template<typename _Value_t, typename _Cont_t>
stack_base cliext::impl::stack_base< _Value_t, _Cont_t >::operator= ( stack_base< _Value_t, _Cont_t >%  _Right)
inline
43  { // assign
44  assign(_Right);
45  return (*this);
46  }
void assign(_Mytype_t%_Right)
Definition: stack:122
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<typename _Value_t, typename _Cont_t>
void cliext::impl::stack_base< _Value_t, _Cont_t >::pop ( )
inline
118  { // erase element at end
119  c->pop_back();
120  }
template<typename _Value_t, typename _Cont_t>
void cliext::impl::stack_base< _Value_t, _Cont_t >::push ( value_type  _Val)
inline
113  { // insert element at end
114  c->push_back(_Val);
115  }
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<typename _Value_t, typename _Cont_t>
size_type cliext::impl::stack_base< _Value_t, _Cont_t >::size ( )
inline
102  { // return length of sequence
103  return (c->size());
104  }
template<typename _Value_t, typename _Cont_t>
_Myarray_t cliext::impl::stack_base< _Value_t, _Cont_t >::to_array ( )
inline
96  { // convert to array
97  return (c->to_array());
98  }
template<typename _Value_t, typename _Cont_t>
reference cliext::impl::stack_base< _Value_t, _Cont_t >::top ( )
inline
80  { // get top element
81  return (((typename container_type::generic_container^)c)->back());
82  }

Member Data Documentation

template<typename _Value_t, typename _Cont_t>
_STLCLR_FIELD_ACCESS cliext::impl::stack_base< _Value_t, _Cont_t >::__pad0__
template<typename _Value_t, typename _Cont_t>
property value_type cliext::impl::stack_base< _Value_t, _Cont_t >::top_item
Initial value:
{
virtual value_type get()
{
return (top());
}
virtual void set(value_type _Val)
{
top() = _Val;
}
}

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