Adaptagrams
Public Member Functions | List of all members
cola::Cluster Class Referenceabstract

A cluster defines a hierarchical partitioning over the nodes which should be kept disjoint by the layout somehow. More...

#include <cluster.h>

Inheritance diagram for cola::Cluster:
Inheritance graph
Collaboration diagram for cola::Cluster:
Collaboration graph

Public Member Functions

virtual void addChildNode (unsigned index)
 Mark a rectangle as being a child of this cluster. More...
 
void addChildCluster (Cluster *cluster)
 Mark a cluster as being a sub-cluster of this cluster. More...
 

Detailed Description

A cluster defines a hierarchical partitioning over the nodes which should be kept disjoint by the layout somehow.

You should not use this directly. This is an abstract base class.
At the top level you should be using RootCluster, and then below that either RectangualarCLuster or ConvexCluster.

Member Function Documentation

◆ addChildCluster()

void cola::Cluster::addChildCluster ( Cluster cluster)

Mark a cluster as being a sub-cluster of this cluster.

Parameters
[in]clusterThe Cluster to be marked as a sub-cluster.

Referenced by dialect::Graph::buildRootCluster().

Here is the caller graph for this function:

◆ addChildNode()

void cola::Cluster::addChildNode ( unsigned  index)
virtual

Mark a rectangle as being a child of this cluster.

Parameters
[in]indexThe index of the Rectangle in the rectangles vector.

Reimplemented in cola::RectangularCluster.

Referenced by cola::RectangularCluster::addChildNode().

Here is the caller graph for this function:

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