Proto  3.2
Public Member Functions | Public Attributes | List of all members
Proto::MBGraphNode Struct Reference

An internal structure defining a node in the MBGraph. More...

#include <Proto_MBGraph.H>

Public Member Functions

 MBGraphNode (BlockIndex index)
 
void addArc (BlockIndex block, Point toDst, Point fromDst)
 Adds an arc to this node, ingoring self and redundant arcs. The new arc represents a connection to block along direction toDst with a reverse arc direction fromDst (from dst to this). Note that toDst is in the local coordinates and fromDst is in the dst coordinates. More...
 
CoordPermutation & rotation (Point dir, BlockIndex block)
 Get the rotation object associated with the arc from this along dir to block. More...
 
bool operator== (const MBGraphNode &rhs) const
 Equality established by value. More...
 
void print (std::ostream &stream=std::cout) const
 Print the block associated with this node and any arcs extending from it. More...
 

Public Attributes

BlockIndex index
 The block associated with this node. More...
 
std::map< Point, std::vector< MBGraphArc > > arcs
 

Detailed Description

An internal structure defining a node in the MBGraph.

Constructor & Destructor Documentation

◆ MBGraphNode()

Proto::MBGraphNode::MBGraphNode ( BlockIndex  index)
inline

Member Function Documentation

◆ addArc()

void Proto::MBGraphNode::addArc ( BlockIndex  block,
Point  toDst,
Point  fromDst 
)
inline

Adds an arc to this node, ingoring self and redundant arcs. The new arc represents a connection to block along direction toDst with a reverse arc direction fromDst (from dst to this). Note that toDst is in the local coordinates and fromDst is in the dst coordinates.

◆ rotation()

CoordPermutation & Proto::MBGraphNode::rotation ( Point  dir,
BlockIndex  block 
)
inline

Get the rotation object associated with the arc from this along dir to block.

◆ operator==()

bool Proto::MBGraphNode::operator== ( const MBGraphNode &  rhs) const
inline

Equality established by value.

References arcs, index, and Proto::MBGraphArc::print().

◆ print()

void Proto::MBGraphNode::print ( std::ostream &  stream = std::cout) const
inline

Print the block associated with this node and any arcs extending from it.

Parameters
stream

Member Data Documentation

◆ index

BlockIndex Proto::MBGraphNode::index

The block associated with this node.

Referenced by operator==().

◆ arcs

std::map<Point, std::vector<MBGraphArc> > Proto::MBGraphNode::arcs
mutable

Referenced by operator==().


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