|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
The valid represenation of pairs are: ("abc",123) or ("abc","def") Inner types of pair depends on KeyGrammarT and ValueGrammarT grammars. More...
#include <Grammars.h>


Classes | |
| struct | definition |
| struct | first |
| struct | second |
Public Types | |
| typedef KeyGrammarT::ResultT | KeyT |
| typedef ValueGrammarT::ResultT | ValueT |
| typedef std::pair< KeyT, ValueT > | ResultT |
| typedef PairT | ResultT |
| typedef PairT::first_type | first_type |
| typedef PairT::second_type | second_type |
Public Member Functions | |
| PairGrammar (const std::string &delim=",") | |
| Constructor. | |
| void | matchFirst (const KeyT &first) const |
| callback. Action when we match first value | |
| void | matchSecond (const ValueT &second) const |
| callback. Action when we match second value | |
| const std::string & | delim () const |
| void | setDelim (const std::string &delim) |
| Set delimiters for pair values. | |
| PairGrammar () | |
| PairGrammar (const std::string &delimeter) | |
| void | init (const std::string &delimeter) |
Public Attributes | |
| Grammar_< Iterator, typename PairT::first_type, Skipper > ::Grammar | key |
| Grammar_< Iterator, typename PairT::second_type, Skipper > ::Grammar | value |
| qi::rule< Iterator, char()> | begin |
| qi::rule< Iterator, void(char)> | end |
| qi::rule< Iterator, ResultT(), qi::locals< char >, Skipper > | pair |
| qi::rule< Iterator, ResultT(), Skipper > | pair_in |
Private Attributes | |
| std::string | m_delim |
The valid represenation of pairs are: ("abc",123) or ("abc","def") Inner types of pair depends on KeyGrammarT and ValueGrammarT grammars.
Definition at line 358 of file Grammars.h.
| typedef PairT::first_type Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::first_type |
Definition at line 243 of file GrammarsV2.h.
| typedef KeyGrammarT::ResultT Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::KeyT |
Definition at line 367 of file Grammars.h.
| typedef PairT Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::ResultT |
Definition at line 242 of file GrammarsV2.h.
| typedef std::pair<KeyT,ValueT> Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::ResultT |
Definition at line 369 of file Grammars.h.
| typedef PairT::second_type Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::second_type |
Definition at line 244 of file GrammarsV2.h.
| typedef ValueGrammarT::ResultT Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::ValueT |
Definition at line 368 of file Grammars.h.
| Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::PairGrammar | ( | const std::string & | delim = "," ) |
[inline] |
Constructor.
| delim | Delimiter for pair values |
Definition at line 374 of file Grammars.h.
: m_delim(delim) {}
| Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::PairGrammar | ( | ) | [inline] |
Definition at line 246 of file GrammarsV2.h.
: PairGrammar::base_type(pair) {
init(",");
}
| Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::PairGrammar | ( | const std::string & | delimeter ) | [inline] |
Definition at line 250 of file GrammarsV2.h.
: PairGrammar::base_type(pair) {
init(delimeter);
}
| const std::string& Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::delim | ( | ) | const [inline] |
| void Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::init | ( | const std::string & | delimeter ) | [inline] |
| void Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::matchFirst | ( | const KeyT & | first ) | const [inline] |
callback. Action when we match first value
Definition at line 378 of file Grammars.h.
{ this->val().first = first; }
| void Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::matchSecond | ( | const ValueT & | second ) | const [inline] |
callback. Action when we match second value
Definition at line 380 of file Grammars.h.
{ this->val().second = second; }
| void Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::setDelim | ( | const std::string & | delim ) | [inline] |
Set delimiters for pair values.
| delim | Delimiter |
Definition at line 407 of file Grammars.h.
| qi::rule<Iterator, char()> Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::begin |
Definition at line 270 of file GrammarsV2.h.
| qi::rule<Iterator, void(char)> Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::end |
Definition at line 271 of file GrammarsV2.h.
| Grammar_<Iterator, typename PairT::first_type, Skipper>::Grammar Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::key |
Definition at line 266 of file GrammarsV2.h.
std::string Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::m_delim [private] |
Definition at line 409 of file Grammars.h.
| qi::rule<Iterator, ResultT(), qi::locals<char>, Skipper> Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::pair |
Definition at line 272 of file GrammarsV2.h.
| qi::rule<Iterator, ResultT(), Skipper> Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::pair_in |
Definition at line 273 of file GrammarsV2.h.
| Grammar_<Iterator, typename PairT::second_type, Skipper>::Grammar Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::value |
Definition at line 269 of file GrammarsV2.h.