gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
FunctionManager.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #ifndef FUNCTION_MANAGER_H
7 #define FUNCTION_MANAGER_H
8 
9 #include <cstdio>
10 #include <string>
11 
12 // Singleton, one function manager for all parsers.
13 
15 class FunctionManagerMap;
16 
18 {
21  FunctionManager ();
23  public :
24  static FunctionManager* Instance();
25  int createFunction(const std::string &name, FILE *f,
26  const std::string &filename, int lineno);
27  int enterFunction(const std::string &name, FILE **f,
28  std::string &filename, int &lineno) const;
29  int leaveFunction(FILE **f, std::string &filename, int &lineno);
30  void clear();
31 };
32 
33 #endif
FunctionManager::calls
FunctionManagerStack * calls
Definition: FunctionManager.h:20
FunctionManagerMap
Definition: FunctionManager.cpp:27
LegendrePolynomials::f
void f(int n, double u, double *val)
Definition: orthogonalBasis.cpp:77
FunctionManager::Instance
static FunctionManager * Instance()
Definition: FunctionManager.cpp:40
FunctionManager::FunctionManager
FunctionManager()
Definition: FunctionManager.cpp:34
FunctionManager::createFunction
int createFunction(const std::string &name, FILE *f, const std::string &filename, int lineno)
Definition: FunctionManager.cpp:86
FunctionManager::clear
void clear()
Definition: FunctionManager.cpp:48
FunctionManager::instance
static FunctionManager * instance
Definition: FunctionManager.h:22
FunctionManager::functions
FunctionManagerMap * functions
Definition: FunctionManager.h:19
FunctionManager::leaveFunction
int leaveFunction(FILE **f, std::string &filename, int &lineno)
Definition: FunctionManager.cpp:72
FunctionManager::enterFunction
int enterFunction(const std::string &name, FILE **f, std::string &filename, int &lineno) const
Definition: FunctionManager.cpp:53
FunctionManager
Definition: FunctionManager.h:18
FunctionManagerStack
Definition: FunctionManager.cpp:21