The Gaudi Framework  master (37c0b60a)
Gaudi::Parsers::H1Grammar< Iterator, Skipper > Class Template Reference
Inheritance diagram for Gaudi::Parsers::H1Grammar< Iterator, Skipper >:
Collaboration diagram for Gaudi::Parsers::H1Grammar< Iterator, Skipper >:

Public Types

typedef H1 ResultT
 

Public Member Functions

 H1Grammar ()
 

Public Attributes

StringGrammar< Iterator, Skippername
 
StringGrammar< Iterator, Skippertitle
 
EdgeGrammar< Iterator, Skipperedges
 
RealGrammar< Iterator, double, Skipperlow
 
RealGrammar< Iterator, double, Skipperhigh
 
IntGrammar< Iterator, unsigned int, Skippernbins
 
VectorGrammar< Iterator, std::vector< std::pair< double, double > >, Skipperbins
 
qi::rule< Iterator, H1(), qi::locals< char >, Skipperresult
 
qi::rule< Iterator, H1(), Skipperinner
 
qi::rule< Iterator, char()> begin
 
qi::rule< Iterator, void(char)> end
 

Detailed Description

template<typename Iterator, typename Skipper>
class Gaudi::Parsers::H1Grammar< Iterator, Skipper >

Definition at line 91 of file HistoParsers.cpp.

Member Typedef Documentation

◆ ResultT

template<typename Iterator , typename Skipper >
typedef H1 Gaudi::Parsers::H1Grammar< Iterator, Skipper >::ResultT

Definition at line 95 of file HistoParsers.cpp.

Constructor & Destructor Documentation

◆ H1Grammar()

template<typename Iterator , typename Skipper >
Gaudi::Parsers::H1Grammar< Iterator, Skipper >::H1Grammar ( )
inline

Definition at line 99 of file HistoParsers.cpp.

99  : H1Grammar::base_type( result ) {
100  inner = ( ( ( qi::lit( "name" ) | "'name'" | "\"name\"" ) >> ":" >> name[qi::_val *= qi::_1] ) |
101  ( ( qi::lit( "title" ) | "'title'" | "\"title\"" ) >> ":" >> title[qi::_val /= qi::_1] ) |
102  ( -( ( qi::lit( "X" ) | "'X'" | "\"X\"" | "x" | "'x'" | "\"x\"" ) >> ':' ) >>
103  edges[qi::_val &= qi::_1] ) |
104  ( ( qi::lit( "nbins" ) | "'nbins'" | "\"nbins\"" ) >> ":" >> nbins[qi::_val |= qi::_1] ) |
105  ( ( qi::lit( "low" ) | "'low'" | "\"low\"" ) >> ":" >> low[qi::_val -= qi::_1] ) |
106  ( ( qi::lit( "high" ) | "'high'" | "\"high\"" ) >> ":" >> high[qi::_val ^= qi::_1] ) |
107  ( ( qi::lit( "bins" ) | "'bins'" | "\"bins\"" ) >> ':' >> bins[qi::_val += qi::_1] ) ) %
108  ',';
109 
110  begin =
111  enc::char_( '[' )[qi::_val = ']'] | enc::char_( '{' )[qi::_val = '}'] | enc::char_( '(' )[qi::_val = ')'];
112  end = enc::char_( qi::_r1 );
113  result = ( begin[qi::_a = qi::_1] >> inner[qi::_val = qi::_1] >> end( qi::_a ) ) | inner;
114  }

Member Data Documentation

◆ begin

template<typename Iterator , typename Skipper >
qi::rule<Iterator, char()> Gaudi::Parsers::H1Grammar< Iterator, Skipper >::begin

Definition at line 124 of file HistoParsers.cpp.

◆ bins

template<typename Iterator , typename Skipper >
VectorGrammar<Iterator, std::vector<std::pair<double, double> >, Skipper> Gaudi::Parsers::H1Grammar< Iterator, Skipper >::bins

Definition at line 121 of file HistoParsers.cpp.

◆ edges

template<typename Iterator , typename Skipper >
EdgeGrammar<Iterator, Skipper> Gaudi::Parsers::H1Grammar< Iterator, Skipper >::edges

Definition at line 117 of file HistoParsers.cpp.

◆ end

template<typename Iterator , typename Skipper >
qi::rule<Iterator, void( char )> Gaudi::Parsers::H1Grammar< Iterator, Skipper >::end

Definition at line 125 of file HistoParsers.cpp.

◆ high

template<typename Iterator , typename Skipper >
RealGrammar<Iterator, double, Skipper> Gaudi::Parsers::H1Grammar< Iterator, Skipper >::high

Definition at line 118 of file HistoParsers.cpp.

◆ inner

template<typename Iterator , typename Skipper >
qi::rule<Iterator, H1(), Skipper> Gaudi::Parsers::H1Grammar< Iterator, Skipper >::inner

Definition at line 123 of file HistoParsers.cpp.

◆ low

template<typename Iterator , typename Skipper >
RealGrammar<Iterator, double, Skipper> Gaudi::Parsers::H1Grammar< Iterator, Skipper >::low

Definition at line 118 of file HistoParsers.cpp.

◆ name

template<typename Iterator , typename Skipper >
StringGrammar<Iterator, Skipper> Gaudi::Parsers::H1Grammar< Iterator, Skipper >::name

Definition at line 116 of file HistoParsers.cpp.

◆ nbins

template<typename Iterator , typename Skipper >
IntGrammar<Iterator, unsigned int, Skipper> Gaudi::Parsers::H1Grammar< Iterator, Skipper >::nbins

Definition at line 119 of file HistoParsers.cpp.

◆ result

template<typename Iterator , typename Skipper >
qi::rule<Iterator, H1(), qi::locals<char>, Skipper> Gaudi::Parsers::H1Grammar< Iterator, Skipper >::result

Definition at line 122 of file HistoParsers.cpp.

◆ title

template<typename Iterator , typename Skipper >
StringGrammar<Iterator, Skipper> Gaudi::Parsers::H1Grammar< Iterator, Skipper >::title

Definition at line 116 of file HistoParsers.cpp.


The documentation for this class was generated from the following file:
Gaudi::Parsers::H1Grammar::result
qi::rule< Iterator, H1(), qi::locals< char >, Skipper > result
Definition: HistoParsers.cpp:122
Gaudi::Parsers::H1Grammar::end
qi::rule< Iterator, void(char)> end
Definition: HistoParsers.cpp:125
Gaudi::Parsers::H1Grammar::high
RealGrammar< Iterator, double, Skipper > high
Definition: HistoParsers.cpp:118
Gaudi::Parsers::H1Grammar::low
RealGrammar< Iterator, double, Skipper > low
Definition: HistoParsers.cpp:118
Gaudi::Parsers::H1Grammar::nbins
IntGrammar< Iterator, unsigned int, Skipper > nbins
Definition: HistoParsers.cpp:119
Gaudi::Parsers::H1Grammar::title
StringGrammar< Iterator, Skipper > title
Definition: HistoParsers.cpp:116
Gaudi::Parsers::H1Grammar::edges
EdgeGrammar< Iterator, Skipper > edges
Definition: HistoParsers.cpp:117
Gaudi::Parsers::H1Grammar::name
StringGrammar< Iterator, Skipper > name
Definition: HistoParsers.cpp:116
Gaudi::Parsers::H1Grammar::inner
qi::rule< Iterator, H1(), Skipper > inner
Definition: HistoParsers.cpp:123
Gaudi::Parsers::H1Grammar::begin
qi::rule< Iterator, char()> begin
Definition: HistoParsers.cpp:124
Gaudi::Parsers::H1Grammar::bins
VectorGrammar< Iterator, std::vector< std::pair< double, double > >, Skipper > bins
Definition: HistoParsers.cpp:121