clingo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Public Member Functions | List of all members
Gringo::Input::NonGroundGrammar::slice< T, S > Class Template Reference

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

#include <stack.hh>

Collaboration diagram for Gringo::Input::NonGroundGrammar::slice< T, S >:
Collaboration graph

Public Member Functions

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

Detailed Description

template<class T, class S = stack<T>>
class Gringo::Input::NonGroundGrammar::slice< T, S >

Present a slice of the top of a stack.

Constructor & Destructor Documentation

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

Member Function Documentation

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

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