torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::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)
 Bison undocumented. More...
 
const T & operator[] (unsigned int i) const
 Bison undocumented. More...
 
 slice (const S &stack, unsigned int range)
 
const T & operator[] (unsigned int i) const
 

Private Attributes

const S & stack_
 Bison undocumented. More...
 
unsigned int range_
 Bison undocumented. More...
 

Detailed Description

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

Present a slice of the top of a stack.

Definition at line 105 of file bitstream/assembler/lut/stack.hh.

Constructor & Destructor Documentation

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

Bison undocumented.

Definition at line 109 of file bitstream/assembler/lut/stack.hh.

110  : stack_ (stack),
111  range_ (range)
112  {
113  }
unsigned int range_
Bison undocumented.
const S & stack_
Bison undocumented.
template<class T, class S = stack<T>>
torc::slice< T, S >::slice ( const S &  stack,
unsigned int  range 
)
inline

Definition at line 109 of file physical/xdl/stack.hh.

110  : stack_ (stack),
111  range_ (range)
112  {
113  }
unsigned int range_
Bison undocumented.
const S & stack_
Bison undocumented.

Member Function Documentation

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

Bison undocumented.

Definition at line 117 of file bitstream/assembler/lut/stack.hh.

118  {
119  return stack_[range_ - i];
120  }
unsigned int range_
Bison undocumented.
const S & stack_
Bison undocumented.
template<class T, class S = stack<T>>
const T& torc::slice< T, S >::operator[] ( unsigned int  i) const
inline

Definition at line 117 of file physical/xdl/stack.hh.

118  {
119  return stack_[range_ - i];
120  }
unsigned int range_
Bison undocumented.
const S & stack_
Bison undocumented.

Field Documentation

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

Bison undocumented.

Definition at line 125 of file bitstream/assembler/lut/stack.hh.

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

Bison undocumented.

Definition at line 124 of file bitstream/assembler/lut/stack.hh.


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