| # Gaudi Framework, version v21r9 |

Home |  | Generated: 3 May 2010

# Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::definition< ScannerT > Struct Template Reference

`#include <Grammars.h>`

List of all members.

## Public Member Functions
| definition (MapGrammar const &self)
rule< ScannerT > const & | start () const
## Public Attributes
KeyGrammarT | grKey
ValueGrammarT | grValue
rule< ScannerT > | vec
rule< ScannerT > | inner
rule< ScannerT > | inner_list

## Detailed Description

### template<typename KeyGrammarT, typename ValueGrammarT>
template<typename ScannerT>
struct Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::definition< ScannerT >

Definition at line 494 of file Grammars.h.

## Constructor & Destructor Documentation

template<typename KeyGrammarT, typename ValueGrammarT>
template<typename ScannerT>

Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::definition< ScannerT >::definition | ( | MapGrammar const & | self | ) | `[inline]`

Definition at line 496 of file Grammars.h.

    00497         {
    00498           vec
    00499             = ('{'>> inner_list >> '}') | ('['>>inner_list>>']');
    00500           inner_list
    00501             =
    00502             !( inner[boost::bind(&MapGrammar::matchItem,&self)]
    00503                >> *( ch_p(',') >>
    00504                      inner[boost::bind(&MapGrammar::matchItem,&self)] )
    00505                );
    00506           inner
    00507             =
    00508             grKey[boost ::bind(&MapGrammar::matchFirst,&self,_1)]
    00509               >> ( ch_p('=') | ch_p(':'))
    00510               >> grValue[boost::bind(&MapGrammar::matchSecond,&self,_1)] ;
    00511         }

## Member Function Documentation

template<typename KeyGrammarT, typename ValueGrammarT>
template<typename ScannerT>

rule<ScannerT> const& Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::definition< ScannerT >::start | ( |  | ) | const`[inline]`

Definition at line 514 of file Grammars.h.

    00514 { return vec; }

## Member Data Documentation

template<typename KeyGrammarT, typename ValueGrammarT>
template<typename ScannerT>

KeyGrammarT Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::definition< ScannerT >::grKey

Definition at line 512 of file Grammars.h.

template<typename KeyGrammarT, typename ValueGrammarT>
template<typename ScannerT>

ValueGrammarT Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::definition< ScannerT >::grValue

Definition at line 513 of file Grammars.h.

template<typename KeyGrammarT, typename ValueGrammarT>
template<typename ScannerT>

rule<ScannerT> Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::definition< ScannerT >::vec

Definition at line 515 of file Grammars.h.

template<typename KeyGrammarT, typename ValueGrammarT>
template<typename ScannerT>

rule<ScannerT> Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::definition< ScannerT >::inner

Definition at line 515 of file Grammars.h.

template<typename KeyGrammarT, typename ValueGrammarT>
template<typename ScannerT>

rule<ScannerT> Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::definition< ScannerT >::inner_list

Definition at line 515 of file Grammars.h.

The documentation for this struct was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r9/GaudiKernel/GaudiKernel/Grammars.h