/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Classes | Public Types | Public Member Functions
Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT > Class Template Reference

The valid represenation of map are: More...

#include <Grammars.h>

Inheritance diagram for Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >:
Inheritance graph
[legend]
Collaboration diagram for Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >:
Collaboration graph
[legend]

List of all members.

Classes

struct  definition

Public Types

typedef KeyGrammarT::ResultT KeyT
typedef ValueGrammarT::ResultT ValueT
typedef std::map< KeyT, ValueTResultT

Public Member Functions

void matchItem () const
 call backs. Action when we match pair in map
void matchFirst (const KeyT &value) const
 call backs. Action when we match key of pair
void matchSecond (const ValueT &value) const
 call backs. Action when we match value pf pair

Detailed Description

template<typename KeyGrammarT, typename ValueGrammarT>
class Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >

The valid represenation of map are:

Author:
Alexander MAZUROV Alexander.Mazurov@gmail.com
Vanya BELYAEV ibelyaev@physics.syr.edu
Date:
2006-05-14

Definition at line 453 of file Grammars.h.


Member Typedef Documentation

template<typename KeyGrammarT, typename ValueGrammarT>
typedef KeyGrammarT::ResultT Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::KeyT

Definition at line 464 of file Grammars.h.

template<typename KeyGrammarT, typename ValueGrammarT>
typedef ValueGrammarT::ResultT Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::ValueT

Definition at line 465 of file Grammars.h.

template<typename KeyGrammarT, typename ValueGrammarT>
typedef std::map<KeyT,ValueT> Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::ResultT

Definition at line 466 of file Grammars.h.


Member Function Documentation

template<typename KeyGrammarT, typename ValueGrammarT>
void Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::matchItem ( ) const [inline]

call backs. Action when we match pair in map

Definition at line 469 of file Grammars.h.

      {
        //this->val().insert(this->attrs()); 
        this->val()[this->attrs().first] = this->attrs().second ;
      }
template<typename KeyGrammarT, typename ValueGrammarT>
void Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::matchFirst ( const KeyT value) const [inline]

call backs. Action when we match key of pair

Definition at line 475 of file Grammars.h.

{  this->attrs().first = value ; }
template<typename KeyGrammarT, typename ValueGrammarT>
void Gaudi::Parsers::MapGrammar< KeyGrammarT, ValueGrammarT >::matchSecond ( const ValueT value) const [inline]

call backs. Action when we match value pf pair

Definition at line 477 of file Grammars.h.

{ this->attrs().second = value ; }

The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:50:18 for LafKernel by doxygen 1.7.4