Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
yy::slice< T, S > Class Template Reference

Present a slice of the top of a stack. More...

#include <stack.hh>

Public Member Functions

 slice (const S &stack, unsigned int range)
 
const T & operator[] (unsigned int i) const
 

Private Attributes

const S & stack_
 
unsigned int range_
 

Detailed Description

template<class T, class S = stack<T>>
class yy::slice< T, S >

Present a slice of the top of a stack.

Definition at line 109 of file stack.hh.

Constructor & Destructor Documentation

template<class T, class S = stack<T>>
yy::slice< T, S >::slice ( const S &  stack,
unsigned int  range 
)
inline

Definition at line 112 of file stack.hh.

Member Function Documentation

template<class T, class S = stack<T>>
const T& yy::slice< T, S >::operator[] ( unsigned int  i) const
inline

Definition at line 120 of file stack.hh.

Member Data Documentation

template<class T, class S = stack<T>>
unsigned int yy::slice< T, S >::range_
private

Definition at line 127 of file stack.hh.

template<class T, class S = stack<T>>
const S& yy::slice< T, S >::stack_
private

Definition at line 126 of file stack.hh.


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