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:132 44 namespace rostlab {
namespace blast {
45 #line 46 "rostlab/blast-parser-stack.h" // rostlab/blast-parser-stack.h:132 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> >
145 return stack_[range_ - i];
153 #line 22 "blast-parser-parser.ypp" // rostlab/blast-parser-stack.h:132 155 #line 156 "rostlab/blast-parser-stack.h" // rostlab/blast-parser-stack.h:132 157 #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