gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
HomologyPostProcessing.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 // Contributed by Matti Pellikka <matti.pellikka@microsoft.com>.
7 
8 #ifndef HOMOLOGY_POST_PROCESSING_H
9 #define HOMOLOGY_POST_PROCESSING_H
10 
11 #include <string>
12 #include "Plugin.h"
13 #include "Chain.h"
14 
15 #if defined(HAVE_KBIPACK)
16 
17 extern "C" {
18 GMSH_Plugin *GMSH_RegisterHomologyPostProcessingPlugin();
19 }
20 
21 class GMSH_HomologyPostProcessingPlugin : public GMSH_PostPlugin {
22 public:
23  GMSH_HomologyPostProcessingPlugin() {}
24  std::string getName() const { return "HomologyPostProcessing"; }
25  std::string getShortHelp() const
26  {
27  return "Post-process (co)homology space bases";
28  }
29  std::string getHelp() const;
30  std::string getAuthor() const { return "M. Pellikka"; }
31  int getNbOptions() const;
32  StringXNumber *getOption(int iopt);
33  int getNbOptionsStr() const;
34  StringXString *getOptionStr(int iopt);
35  PView *execute(PView *);
36  bool parseStringOpt(int stringOpt, std::vector<int> &intList);
37  bool invertIntegerMatrix(std::vector<int> &matrix);
38  int detIntegerMatrix(std::vector<int> &matrix);
39 };
40 
41 #endif
42 
43 #endif
StringXString
Definition: Options.h:910
GMSH_Plugin::getHelp
virtual std::string getHelp() const =0
PView
Definition: PView.h:27
Plugin.h
GMSH_Plugin
Definition: Plugin.h:26
StringXNumber
Definition: Options.h:918
GMSH_Plugin::getNbOptions
virtual int getNbOptions() const
Definition: Plugin.h:61
GMSH_PostPlugin::execute
virtual PView * execute(PView *)=0
GMSH_Plugin::getName
virtual std::string getName() const =0
Chain.h
GMSH_Plugin::getNbOptionsStr
virtual int getNbOptionsStr() const
Definition: Plugin.h:65
GMSH_Plugin::getAuthor
virtual std::string getAuthor() const
Definition: Plugin.h:50
GMSH_PostPlugin
Definition: Plugin.h:83
GMSH_Plugin::getOptionStr
virtual StringXString * getOptionStr(int iopt)
Definition: Plugin.h:66
GMSH_Plugin::getShortHelp
virtual std::string getShortHelp() const =0
GMSH_Plugin::getOption
virtual StringXNumber * getOption(int iopt)
Definition: Plugin.h:62