38 #ifndef YY_YY_ROSTLAB_BLAST_PARSER_STACK_H_INCLUDED
39 # define YY_YY_ROSTLAB_BLAST_PARSER_STACK_H_INCLUDED
43 #line 22 "blast-parser-parser.ypp" // rostlab/blast-parser-stack.h:133
44 namespace rostlab {
namespace blast {
45 #line 46 "rostlab/blast-parser-stack.h" // rostlab/blast-parser-stack.h:133
46 template <
class T,
class S = std::vector<T> >
68 return seq_[seq_.size () - 1 - i];
75 return seq_[seq_.size () - 1 - i];
91 pop (
unsigned int n = 1)
104 typename S::size_type
114 return seq_.rbegin ();
132 template <
class T,
class S = stack<T> >
146 return stack_[range_ - i];
154 #line 22 "blast-parser-parser.ypp" // rostlab/blast-parser-stack.h:133
156 #line 157 "rostlab/blast-parser-stack.h" // rostlab/blast-parser-stack.h:133
158 #endif // !YY_YY_ROSTLAB_BLAST_PARSER_STACK_H_INCLUDED
slice(const S &stack, unsigned int range)
T & operator[](unsigned int i)
S::const_reverse_iterator const_iterator
S::reverse_iterator iterator
Present a slice of the top of a stack.
void pop(unsigned int n=1)
const_iterator begin() const
S::size_type size() const
const_iterator end() const
const T & operator[](unsigned int i) const