gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
GMSH_SpanningTreePlugin Class Reference

#include <SpanningTree.h>

Inheritance diagram for GMSH_SpanningTreePlugin:
Collaboration diagram for GMSH_SpanningTreePlugin:

Classes

class  DSU
 
struct  Sort
 

Public Member Functions

 GMSH_SpanningTreePlugin ()
 
std::string getName () const
 
std::string getShortHelp () const
 
std::string getHelp () const
 
std::string getAuthor () const
 
int getNbOptions () const
 
StringXNumbergetOption (int iopt)
 
int getNbOptionsStr () const
 
StringXStringgetOptionStr (int iopt)
 
int run ()
 
- Public Member Functions inherited from GMSH_Plugin
 GMSH_Plugin ()
 
virtual ~GMSH_Plugin ()
 
virtual std::string getCopyright () const
 
virtual void catchErrorMessage (char *errorMessage) const
 
std::string serialize ()
 

Private Types

typedef std::set< const MElement *, MElementPtrLessThanElementSet
 
typedef std::set< std::pair< int, int >, SortEdgeSet
 
typedef std::list< std::pair< int, int > > Tree
 

Static Private Member Functions

static void spanningTree (EdgeSet &edge, DSU &vertex, Tree &tree)
 
static std::string parse (std::string str, std::list< int > &physical)
 
static void getAllMElement (GModel &model, int physical, int dim, ElementSet &element)
 
static void getAllMEdge (ElementSet &element, EdgeSet &edge)
 
static void addToModel (GModel &model, Tree &tree, int tag)
 
static std::pair< int, int > minmax (const std::pair< int, int > &p)
 

Additional Inherited Members

- Public Types inherited from GMSH_Plugin
enum  GMSH_PLUGIN_TYPE { GMSH_CAD_PLUGIN, GMSH_MESH_PLUGIN, GMSH_POST_PLUGIN, GMSH_SOLVER_PLUGIN }
 
- Static Public Member Functions inherited from GMSH_Plugin
static void setDrawFunction (void(*fct)(void *))
 
- Public Attributes inherited from GMSH_Plugin
PluginDialogBox * dialogBox
 
void * hlib
 
- Static Public Attributes inherited from GMSH_Plugin
static void(* draw )(void *) = nullptr
 

Detailed Description

Definition at line 17 of file SpanningTree.h.

Member Typedef Documentation

◆ EdgeSet

typedef std::set<std::pair<int, int>, Sort> GMSH_SpanningTreePlugin::EdgeSet
private

Definition at line 43 of file SpanningTree.h.

◆ ElementSet

Definition at line 42 of file SpanningTree.h.

◆ Tree

typedef std::list<std::pair<int, int> > GMSH_SpanningTreePlugin::Tree
private

Definition at line 44 of file SpanningTree.h.

Constructor & Destructor Documentation

◆ GMSH_SpanningTreePlugin()

GMSH_SpanningTreePlugin::GMSH_SpanningTreePlugin ( )

Definition at line 34 of file SpanningTree.cpp.

Member Function Documentation

◆ addToModel()

void GMSH_SpanningTreePlugin::addToModel ( GModel model,
Tree tree,
int  tag 
)
staticprivate

Definition at line 213 of file SpanningTree.cpp.

Here is the call graph for this function:

◆ getAllMEdge()

void GMSH_SpanningTreePlugin::getAllMEdge ( ElementSet element,
EdgeSet edge 
)
staticprivate

Definition at line 201 of file SpanningTree.cpp.

◆ getAllMElement()

void GMSH_SpanningTreePlugin::getAllMElement ( GModel model,
int  physical,
int  dim,
ElementSet element 
)
staticprivate

Definition at line 184 of file SpanningTree.cpp.

Here is the call graph for this function:

◆ getAuthor()

string GMSH_SpanningTreePlugin::getAuthor ( ) const
virtual

Reimplemented from GMSH_Plugin.

Definition at line 67 of file SpanningTree.cpp.

◆ getHelp()

string GMSH_SpanningTreePlugin::getHelp ( ) const
virtual

Implements GMSH_Plugin.

Definition at line 43 of file SpanningTree.cpp.

◆ getName()

string GMSH_SpanningTreePlugin::getName ( ) const
virtual

Implements GMSH_Plugin.

Definition at line 36 of file SpanningTree.cpp.

◆ getNbOptions()

int GMSH_SpanningTreePlugin::getNbOptions ( ) const
virtual

Reimplemented from GMSH_Plugin.

Definition at line 69 of file SpanningTree.cpp.

◆ getNbOptionsStr()

int GMSH_SpanningTreePlugin::getNbOptionsStr ( ) const
virtual

Reimplemented from GMSH_Plugin.

Definition at line 79 of file SpanningTree.cpp.

◆ getOption()

StringXNumber * GMSH_SpanningTreePlugin::getOption ( int  iopt)
virtual

Reimplemented from GMSH_Plugin.

Definition at line 74 of file SpanningTree.cpp.

◆ getOptionStr()

StringXString * GMSH_SpanningTreePlugin::getOptionStr ( int  iopt)
virtual

Reimplemented from GMSH_Plugin.

Definition at line 84 of file SpanningTree.cpp.

◆ getShortHelp()

string GMSH_SpanningTreePlugin::getShortHelp ( ) const
virtual

Implements GMSH_Plugin.

Definition at line 38 of file SpanningTree.cpp.

◆ minmax()

std::pair< int, int > GMSH_SpanningTreePlugin::minmax ( const std::pair< int, int > &  p)
staticprivate

Definition at line 266 of file SpanningTree.cpp.

◆ parse()

string GMSH_SpanningTreePlugin::parse ( std::string  str,
std::list< int > &  physical 
)
staticprivate

Definition at line 160 of file SpanningTree.cpp.

◆ run()

int GMSH_SpanningTreePlugin::run ( )
virtual

Reimplemented from GMSH_MeshPlugin.

Definition at line 89 of file SpanningTree.cpp.

Here is the call graph for this function:

◆ spanningTree()

void GMSH_SpanningTreePlugin::spanningTree ( EdgeSet edge,
DSU vertex,
Tree tree 
)
staticprivate

Definition at line 145 of file SpanningTree.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: