![]() |
Rosetta Utilities
2014.16.56682
|
#include <Arithmetic.hh>
Public Member Functions | |
| virtual | ~TokenSet () |
| Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
| TokenSet () | |
| void | append (TokenCOP token) |
| bool | empty () const |
| Are there no more tokens remaining? More... | |
| TokenCOP | top () const |
| void | pop () |
| void | log_error () const |
| Print contents after parser has encountered an error. More... | |
| std::string | print () const |
Public Member Functions inherited from utility::pointer::ReferenceCount | |
| void | ctor () |
| virtual | ~ReferenceCount () |
| Destructor. More... | |
| Size | ref_count () const |
| Reference count. More... | |
Protected Member Functions | |
| void | print_to_curr_pos () const |
| in the event of an error message, print the tokens up to the current token. More... | |
Protected Member Functions inherited from utility::pointer::ReferenceCount | |
| ReferenceCount () | |
| Default constructor. More... | |
| ReferenceCount (ReferenceCount const &) | |
| Copy constructor. More... | |
| ReferenceCount & | operator= (ReferenceCount const &) |
| Copy assignment. More... | |
Private Attributes | |
| std::list< TokenCOP > | tokens_ |
| std::list< TokenCOP >::iterator | curr_pos_ |
Additional Inherited Members | |
Public Types inherited from utility::pointer::ReferenceCount | |
| typedef platform::Size | Size |
| typedef platform::Size | size_type |
|
virtual |
Automatically generated virtual destructor for class deriving directly from ReferenceCount.
Auto-generated virtual destructor
| numeric::expression_parser::TokenSet::TokenSet | ( | ) |
| void numeric::expression_parser::TokenSet::append | ( | TokenCOP | token | ) |
| bool numeric::expression_parser::TokenSet::empty | ( | ) | const |
Are there no more tokens remaining?
References curr_pos_, and tokens_.
Referenced by numeric::expression_parser::ArithmeticASTExpression::parse(), numeric::expression_parser::ArithmeticASTFunction::parse(), numeric::expression_parser::ArithmeticASTTerm::parse(), numeric::expression_parser::ArithmeticASTValue::parse(), numeric::expression_parser::ArithmeticASTRestTerm::parse(), and numeric::expression_parser::ArithmeticASTRestExpression::parse().
| void numeric::expression_parser::TokenSet::log_error | ( | ) | const |
Print contents after parser has encountered an error.
References print_to_curr_pos().
Referenced by numeric::expression_parser::ArithmeticASTExpression::parse(), numeric::expression_parser::ArithmeticASTFunction::parse(), numeric::expression_parser::ArithmeticASTTerm::parse(), numeric::expression_parser::ArithmeticASTFactor::parse(), and numeric::expression_parser::ArithmeticASTValue::parse().
| void numeric::expression_parser::TokenSet::pop | ( | ) |
References curr_pos_, print_to_curr_pos(), tokens_, and utility_exit_with_message.
Referenced by numeric::expression_parser::ArithmeticASTFunction::parse(), numeric::expression_parser::ArithmeticASTFactor::parse(), numeric::expression_parser::ArithmeticASTValue::parse(), numeric::expression_parser::ArithmeticASTRestTerm::parse(), and numeric::expression_parser::ArithmeticASTRestExpression::parse().
| std::string numeric::expression_parser::TokenSet::print | ( | ) | const |
References tokens_.
|
protected |
in the event of an error message, print the tokens up to the current token.
References utility::io::oc::cerr, curr_pos_, and tokens_.
Referenced by log_error(), and pop().
| TokenCOP numeric::expression_parser::TokenSet::top | ( | ) | const |
References curr_pos_, tokens_, and utility_exit_with_message.
Referenced by numeric::expression_parser::ArithmeticASTFunction::parse(), numeric::expression_parser::ArithmeticASTFactor::parse(), numeric::expression_parser::ArithmeticASTValue::parse(), numeric::expression_parser::ArithmeticASTRestTerm::parse(), and numeric::expression_parser::ArithmeticASTRestExpression::parse().
|
private |
Referenced by append(), empty(), pop(), print_to_curr_pos(), and top().
|
private |
1.8.7