DHART
Loading...
Searching...
No Matches
HF::SpatialStructures::EdgeSet Struct Reference

A collection of edges and a parent. More...

#include <Edge.h>

+ Collaboration diagram for HF::SpatialStructures::EdgeSet:

Public Member Functions

 EdgeSet ()
 Empty Constructor. More...
 
 EdgeSet (int parent, const std::vector< IntEdge > &edges)
 Construct an edge set with a list of int edges and a parent. More...
 
int size () const
 Get the number of children in this edgeset. More...
 
void AddEdges (const std::vector< IntEdge > &edges)
 Add a set of edges to the array of children. More...
 
bool operator== (const EdgeSet &ES2) const
 Check the equality of two edge sets. More...
 

Public Attributes

int parent
 Identifier of parent node. More...
 
std::vector< IntEdgechildren
 vector of IntEdge (children) More...
 

Detailed Description

A collection of edges and a parent.

Remarks
This can to represent a node and its edges without repeating any information such as parent_id or node objects.

Definition at line 77 of file Edge.h.

Constructor & Destructor Documentation

◆ EdgeSet() [1/2]

HF::SpatialStructures::EdgeSet::EdgeSet ( )
inline

Empty Constructor.

Definition at line 82 of file Edge.h.

References parent.

◆ EdgeSet() [2/2]

HF::SpatialStructures::EdgeSet::EdgeSet ( int  parent,
const std::vector< IntEdge > &  edges 
)
inline

Construct an edge set with a list of int edges and a parent.

Definition at line 86 of file Edge.h.

References AddEdges(), and parent.

+ Here is the call graph for this function:

Member Function Documentation

◆ AddEdges()

void HF::SpatialStructures::EdgeSet::AddEdges ( const std::vector< IntEdge > &  edges)
inline

Add a set of edges to the array of children.

Definition at line 95 of file Edge.h.

References children.

Referenced by EdgeSet().

+ Here is the caller graph for this function:

◆ operator==()

bool HF::SpatialStructures::EdgeSet::operator== ( const EdgeSet ES2) const
inline

Check the equality of two edge sets.

Definition at line 107 of file Edge.h.

References children, and parent.

◆ size()

int HF::SpatialStructures::EdgeSet::size ( ) const
inline

Get the number of children in this edgeset.

Definition at line 92 of file Edge.h.

References children.

Member Data Documentation

◆ children

std::vector<IntEdge> HF::SpatialStructures::EdgeSet::children

vector of IntEdge (children)

Definition at line 79 of file Edge.h.

Referenced by AddEdges(), operator==(), and size().

◆ parent

int HF::SpatialStructures::EdgeSet::parent

Identifier of parent node.

Definition at line 78 of file Edge.h.

Referenced by EdgeSet(), and operator==().


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