aGrUM  0.14.2
O3NameSolver.h
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright (C) 2005 by Pierre-Henri WUILLEMIN et Christophe GONZALES *
3  * {prenom.nom}_at_lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
29 #include <algorithm>
30 #include <string>
31 
32 #include <agrum/PRM/PRM.h>
33 #include <agrum/PRM/o3prm/O3prm.h>
34 #include <agrum/PRM/o3prm/errors.h>
35 #include <agrum/core/hashTable.h>
37 
38 #ifndef GUM_PRM_O3PRM_O3NAMESOLVER_H
39 # define GUM_PRM_O3PRM_O3NAMESOLVER_H
40 
41 namespace gum {
42  namespace prm {
43  namespace o3prm {
44 
54  template < typename GUM_SCALAR >
55  class O3NameSolver {
56  public:
58  O3PRM& o3_prm,
59  ErrorsContainer& errors);
60 
62 
64 
65  ~O3NameSolver();
66 
69 
71 
72  bool resolveClassElement(O3Label& name);
73 
74  bool resolveType(O3Label& name);
75 
76  bool resolveInterface(O3Label& name);
77 
78  bool resolveClass(O3Label& name);
79 
80  bool resolveSlotType(O3Label& name);
81 
82  private:
86 
88 
94  };
95 
96  } // namespace o3prm
97  } // namespace prm
98 } // namespace gum
99 
100 
101 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
102 extern template class gum::prm::o3prm::O3NameSolver< double >;
103 # endif
104 
105 
106 // always include the implementation of the templates
108 
109 #endif // GUM_PRM_O3PRM_O3NAMESOLVER_H
Functions for error messages.
Headers of PRM.
This class is used contain and manipulate gum::ParseError.
The O3Label is part of the AST of the O3PRM language.
Definition: O3prm.h:171
bool resolveType(O3Label &name)
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
O3NameSolver< GUM_SCALAR > & operator=(const O3NameSolver< GUM_SCALAR > &src)
Resolves names for the different O3PRM factories.
Definition: O3NameSolver.h:55
Implentation for the O3NameSolver class.
bool resolveClassElement(O3Label &name)
bool resolveSlotType(O3Label &name)
O3NameSolver(PRM< GUM_SCALAR > &prm, O3PRM &o3_prm, ErrorsContainer &errors)
Headers for the AST of the O3PRM language.
This class represents a Probabilistic Relational PRMSystem<GUM_SCALAR>.
Definition: PRM.h:63
ErrorsContainer * __errors
Definition: O3NameSolver.h:85
Utilities for manipulating strings.
bool resolveInterface(O3Label &name)
The O3PRM is part of the AST of the O3PRM language.
Definition: O3prm.h:890
Class hash tables iterators.
bool resolveClass(O3Label &name)
PRM< GUM_SCALAR > * __prm
Definition: O3NameSolver.h:83