HOG2
Public Member Functions | Public Attributes | Private Attributes | List of all members
Cluster Class Reference

#include <ClusterAbstraction.h>

Public Member Functions

 Cluster (int id, int row, int col, int horizOrigin, int vertOrigin, int width, int height)
 
void AddNode (int)
 Add an abstract node corresponding to an entrance to the cluster. More...
 
int getIthNodeNum (int i) const
 
int GetNumNodes () const
 
int getHOrig () const
 
int getVOrig () const
 
int GetHeight () const
 
int getWidth () const
 
void addParent (node *n)
 
std::vector< node * > & getParents ()
 

Public Attributes

std::vector< node * > parents
 

Private Attributes

int m_id
 
int m_row
 
int m_column
 
int m_horizOrigin
 
int m_vertOrigin
 
int m_width
 
int m_height
 
std::vector< int > nodes
 

Detailed Description

Definition at line 47 of file ClusterAbstraction.h.

Constructor & Destructor Documentation

◆ Cluster()

Cluster::Cluster ( int  id,
int  row,
int  col,
int  horizOrigin,
int  vertOrigin,
int  width,
int  height 
)
inline

Definition at line 49 of file ClusterAbstraction.h.

Member Function Documentation

◆ AddNode()

void Cluster::AddNode ( int  n)

Add an abstract node corresponding to an entrance to the cluster.

Definition at line 86 of file ClusterAbstraction.cpp.

Referenced by ClusterAbstraction::addAbsNodes().

◆ addParent()

void Cluster::addParent ( node n)
inline

Definition at line 62 of file ClusterAbstraction.h.

References parents.

Referenced by ClusterAbstraction::abstractionBFS().

◆ GetHeight()

int Cluster::GetHeight ( ) const
inline

Definition at line 60 of file ClusterAbstraction.h.

References m_height.

Referenced by ClusterAbstraction::setUpParents().

◆ getHOrig()

int Cluster::getHOrig ( ) const
inline

Definition at line 58 of file ClusterAbstraction.h.

References m_horizOrigin.

Referenced by ClusterAbstraction::setUpParents().

◆ getIthNodeNum()

int Cluster::getIthNodeNum ( int  i) const
inline

◆ GetNumNodes()

int Cluster::GetNumNodes ( ) const
inline

◆ getParents()

std::vector<node*>& Cluster::getParents ( )
inline

Definition at line 63 of file ClusterAbstraction.h.

References parents.

◆ getVOrig()

int Cluster::getVOrig ( ) const
inline

Definition at line 59 of file ClusterAbstraction.h.

References m_vertOrigin.

Referenced by ClusterAbstraction::setUpParents().

◆ getWidth()

int Cluster::getWidth ( ) const
inline

Definition at line 61 of file ClusterAbstraction.h.

References m_width.

Referenced by ClusterAbstraction::setUpParents().

Member Data Documentation

◆ m_column

int Cluster::m_column
private

Definition at line 69 of file ClusterAbstraction.h.

◆ m_height

int Cluster::m_height
private

Definition at line 73 of file ClusterAbstraction.h.

Referenced by GetHeight().

◆ m_horizOrigin

int Cluster::m_horizOrigin
private

Definition at line 70 of file ClusterAbstraction.h.

Referenced by getHOrig().

◆ m_id

int Cluster::m_id
private

Definition at line 67 of file ClusterAbstraction.h.

◆ m_row

int Cluster::m_row
private

Definition at line 68 of file ClusterAbstraction.h.

◆ m_vertOrigin

int Cluster::m_vertOrigin
private

Definition at line 71 of file ClusterAbstraction.h.

Referenced by getVOrig().

◆ m_width

int Cluster::m_width
private

Definition at line 72 of file ClusterAbstraction.h.

Referenced by getWidth().

◆ nodes

std::vector<int> Cluster::nodes
private

Definition at line 74 of file ClusterAbstraction.h.

Referenced by getIthNodeNum(), and GetNumNodes().

◆ parents

std::vector<node*> Cluster::parents

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