Present a slice of the top of a stack. More...
#include <sautparse/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_ |
Present a slice of the top of a stack.
sautyy::slice< T, S >::slice | ( | const S & | stack, | |
unsigned int | range | |||
) | [inline] |
const T& sautyy::slice< T, S >::operator[] | ( | unsigned int | i | ) | const [inline] |
References sautyy::slice< T, S >::range_, and sautyy::slice< T, S >::stack_.
unsigned int sautyy::slice< T, S >::range_ [private] |
Referenced by sautyy::slice< T, S >::operator[]().
const S& sautyy::slice< T, S >::stack_ [private] |
Referenced by sautyy::slice< T, S >::operator[]().