ReactOS 0.4.16-dev-401-g45b008d
stack< _Tp, _Sequence > Class Template Reference

#include <_stack.h>

Collaboration diagram for stack< _Tp, _Sequence >:

Public Types

typedef _Sequence::value_type value_type
 
typedef _Sequence::size_type size_type
 
typedef _Sequence container_type
 
typedef _Sequence::reference reference
 
typedef _Sequence::const_reference const_reference
 

Public Member Functions

 stack ()
 
 stack (const _Sequence &__s)
 
 stack (__move_source< _Self > src)
 
bool empty () const
 
size_type size () const
 
reference top ()
 
const_reference top () const
 
void push (const value_type &__x)
 
void pop ()
 
const _Sequence & _Get_s () const
 

Public Attributes

struct list items
 

Protected Attributes

_Sequence c
 

Private Types

typedef stack< _Tp, _Sequence > _Self
 

Detailed Description

template<class _Tp, class _Sequence = deque<_Tp>>
class stack< _Tp, _Sequence >

Definition at line 79 of file format.c.

Member Typedef Documentation

◆ _Self

template<class _Tp , class _Sequence = deque<_Tp>>
typedef stack<_Tp, _Sequence> stack< _Tp, _Sequence >::_Self
private

Definition at line 60 of file _stack.h.

◆ const_reference

template<class _Tp , class _Sequence = deque<_Tp>>
typedef _Sequence::const_reference stack< _Tp, _Sequence >::const_reference

Definition at line 69 of file _stack.h.

◆ container_type

template<class _Tp , class _Sequence = deque<_Tp>>
typedef _Sequence stack< _Tp, _Sequence >::container_type

Definition at line 66 of file _stack.h.

◆ reference

template<class _Tp , class _Sequence = deque<_Tp>>
typedef _Sequence::reference stack< _Tp, _Sequence >::reference

Definition at line 68 of file _stack.h.

◆ size_type

template<class _Tp , class _Sequence = deque<_Tp>>
typedef _Sequence::size_type stack< _Tp, _Sequence >::size_type

Definition at line 65 of file _stack.h.

◆ value_type

template<class _Tp , class _Sequence = deque<_Tp>>
typedef _Sequence::value_type stack< _Tp, _Sequence >::value_type

Definition at line 64 of file _stack.h.

Constructor & Destructor Documentation

◆ stack() [1/3]

template<class _Tp , class _Sequence = deque<_Tp>>
stack< _Tp, _Sequence >::stack ( )
inline

Definition at line 74 of file _stack.h.

74: c() {}
_Sequence c
Definition: _stack.h:72

Referenced by create_stack(), and deformat_string_internal().

◆ stack() [2/3]

template<class _Tp , class _Sequence = deque<_Tp>>
stack< _Tp, _Sequence >::stack ( const _Sequence &  __s)
inlineexplicit

Definition at line 75 of file _stack.h.

75: c(__s) {}

◆ stack() [3/3]

template<class _Tp , class _Sequence = deque<_Tp>>
stack< _Tp, _Sequence >::stack ( __move_source< _Self src)
inline

Definition at line 78 of file _stack.h.

79 : c(_STLP_PRIV _AsMoveSource(src.get().c)) {}
#define _STLP_PRIV
Definition: _dm.h:70
_STLP_TYPENAME_ON_RETURN_TYPE _MoveSourceTraits< _Tp >::_Type _AsMoveSource(_Tp &src)
GLenum src
Definition: glext.h:6340

Member Function Documentation

◆ _Get_s()

template<class _Tp , class _Sequence = deque<_Tp>>
const _Sequence & stack< _Tp, _Sequence >::_Get_s ( ) const
inline

Definition at line 88 of file _stack.h.

88{ return c; }

Referenced by operator<(), and operator==().

◆ empty()

template<class _Tp , class _Sequence = deque<_Tp>>
bool stack< _Tp, _Sequence >::empty ( ) const
inline

Definition at line 82 of file _stack.h.

82{ return c.empty(); }
const GLubyte * c
Definition: glext.h:8905

Referenced by CollectProgramsThread::free_dirs(), and ChildWindow::WndProc().

◆ pop()

template<class _Tp , class _Sequence = deque<_Tp>>
void stack< _Tp, _Sequence >::pop ( )
inline

Definition at line 87 of file _stack.h.

87{ c.pop_back(); }

Referenced by CollectProgramsThread::free_dirs(), and ChildWindow::WndProc().

◆ push()

template<class _Tp , class _Sequence = deque<_Tp>>
void stack< _Tp, _Sequence >::push ( const value_type __x)
inline

Definition at line 86 of file _stack.h.

86{ c.push_back(__x); }

Referenced by CollectProgramsThread::collect_programs(), FileChildWindow::FileChildWindow(), and ChildWindow::go_to().

◆ size()

template<class _Tp , class _Sequence = deque<_Tp>>
size_type stack< _Tp, _Sequence >::size ( ) const
inline

Definition at line 83 of file _stack.h.

83{ return c.size(); }

◆ top() [1/2]

template<class _Tp , class _Sequence = deque<_Tp>>
reference stack< _Tp, _Sequence >::top ( )
inline

◆ top() [2/2]

template<class _Tp , class _Sequence = deque<_Tp>>
const_reference stack< _Tp, _Sequence >::top ( ) const
inline

Definition at line 85 of file _stack.h.

85{ return c.back(); }

Member Data Documentation

◆ c

template<class _Tp , class _Sequence = deque<_Tp>>
_Sequence stack< _Tp, _Sequence >::c
protected

Definition at line 72 of file _stack.h.

Referenced by stack< _Tp, _Sequence >::_Get_s().

◆ items

template<class _Tp , class _Sequence = deque<_Tp>>
struct list stack< _Tp, _Sequence >::items

Definition at line 81 of file format.c.

Referenced by create_stack(), free_stack(), stack_find(), stack_peek(), stack_pop(), and stack_push().


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