Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vcsn::rat::slice< T, S > Class Template Reference

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

#include <stack.hh>

Collaboration diagram for vcsn::rat::slice< T, S >:

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 vcsn::rat::slice< T, S >

Present a slice of the top of a stack.

Definition at line 133 of file stack.hh.

Constructor & Destructor Documentation

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

Definition at line 136 of file stack.hh.

Member Function Documentation

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

Definition at line 144 of file stack.hh.

References vcsn::rat::slice< T, S >::range_, and vcsn::rat::slice< T, S >::stack_.

Member Data Documentation

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

Definition at line 151 of file stack.hh.

Referenced by vcsn::rat::slice< T, S >::operator[]().

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

Definition at line 150 of file stack.hh.

Referenced by vcsn::rat::slice< T, S >::operator[]().


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