CGraph
Static Protected Member Functions | Friends | List of all members
GOptimizer Class Reference

GOptimizer是用来干嘛的? More...

#include <GOptimizer.h>

Inheritance diagram for GOptimizer:
Inheritance graph
[legend]
Collaboration diagram for GOptimizer:
Collaboration graph
[legend]

Static Protected Member Functions

static CVoid collect (GElementPtr element, std::vector< GElementPtr > &curPath, std::vector< std::vector< GElementPtr >> &paths)
 
static std::vector< std::vector< GElementPtr > > collectPaths (const GSortedGElementPtrSet &elements)
 
static std::vector< std::vector< int > > buildGraph (const GSortedGElementPtrSet &elements, const std::vector< std::vector< GElementPtr >> &paths, int father, int son, int unlink)
 

Friends

class GPerf
 

Additional Inherited Members

- Public Member Functions inherited from CObject
 CObject ()=default
 
virtual CStatus init ()
 
virtual CStatus run ()=0
 
virtual CStatus destroy ()
 
virtual ~CObject ()=default
 

Detailed Description

GOptimizer是用来干嘛的?

Member Function Documentation

◆ buildGraph()

static std::vector<std::vector<int> > GOptimizer::buildGraph ( const GSortedGElementPtrSet elements,
const std::vector< std::vector< GElementPtr >> &  paths,
int  father,
int  son,
int  unlink 
)
inlinestaticprotected

构造对应的二维矩阵图 将每条path的可达关系构造成一个二维矩阵图,father可以直接或通过串联的多个元素到达son,反之不行

Parameters
elements
paths
father
son
unlink
Returns

◆ collect()

static CVoid GOptimizer::collect ( GElementPtr  element,
std::vector< GElementPtr > &  curPath,
std::vector< std::vector< GElementPtr >> &  paths 
)
inlinestaticprotected

记录 path 信息

Parameters
element
curPath
paths
Returns
Here is the call graph for this function:

◆ collectPaths()

static std::vector<std::vector<GElementPtr> > GOptimizer::collectPaths ( const GSortedGElementPtrSet elements)
inlinestaticprotected

记录所有的path信息

Parameters
elements
Returns
Here is the call graph for this function:

Friends And Related Function Documentation

◆ GPerf

friend class GPerf
friend

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