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

判断两个element是否可以独立运行 More...

#include <GSeparateOptimizer.h>

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

Static Protected Member Functions

static CBool checkSeparate (const GSortedGElementPtrSet &elements, GElementCPtr fst, GElementCPtr snd)
 
static GElementPtr getNearestAncestor (GElementCPtr fst, GElementCPtr snd, GElementPPtr fstPatch, GElementPPtr sndPatch)
 
static GElementPtr getPatch (const GElementPtrArr &path, GElementCPtr ancestor, GElementCPtr element)
 
- Static Protected Member Functions inherited from GOptimizer
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 GPipeline
 
class GRegion
 

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

判断两个element是否可以独立运行

Member Function Documentation

◆ checkSeparate()

static CBool GSeparateOptimizer::checkSeparate ( const GSortedGElementPtrSet elements,
GElementCPtr  fst,
GElementCPtr  snd 
)
inlinestaticprotected

判断两个 element 是否是独立运行的

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

◆ getNearestAncestor()

static GElementPtr GSeparateOptimizer::getNearestAncestor ( GElementCPtr  fst,
GElementCPtr  snd,
GElementPPtr  fstPatch,
GElementPPtr  sndPatch 
)
inlinestaticprotected

获取最近的从属节点信息

Parameters
fst
snd
fstPatch
sndPatch
Returns
@notice 如果没有最近从属节点,即不在同一个 group中,则返回 nullptr
Here is the call graph for this function:

◆ getPatch()

static GElementPtr GSeparateOptimizer::getPatch ( const GElementPtrArr path,
GElementCPtr  ancestor,
GElementCPtr  element 
)
inlinestaticprotected

根据 ancestor信息,获取对等同级的element信息

Parameters
path
ancestor
element
Returns

Friends And Related Function Documentation

◆ GPipeline

friend class GPipeline
friend

◆ GRegion

friend class GRegion
friend

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