DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
GrammarUnparsed.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 //
14 // NOTE:
15 //
16 // This is an internal include file. It should only be included to
17 // instantiate code. Otherwise the BasicGrammar include file should be
18 // sufficient for all practical purposes.
19 //
20 //==========================================================================
21 #ifndef DD4HEP_GRAMMARUNPARSED_H
22 #define DD4HEP_GRAMMARUNPARSED_H
23 
24 #if defined(DD4HEP_GRAMMARPARSED_H)
25 #error "The header files GrammarParsed.h and GrammarUnparsed.h may not be included in the same compilation unit!"
26 #endif
27 
28 // Framework include files
29 #include <DD4hep/Grammar.h>
30 
32 namespace dd4hep {
33 
35  template <typename TYPE> const BasicGrammar& BasicGrammar::instance() {
36  static Grammar<TYPE> s_gr;
37  return s_gr;
38  }
39 }
40 #endif // DD4HEP_GRAMMARUNPARSED_H
dd4hep::BasicGrammar::instance
static const BasicGrammar & instance()
Instance factory.
Definition: GrammarParsed.h:274
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
Grammar.h