Generated on Wed Apr 29 2015 11:51:41 for GGL-4.1.2 by doxygen 1.8.3.1
Public Types | Public Member Functions | Data Fields
ggl::Rule::RuleCnP Class Reference

#include <Rule.hh>

Public Types

typedef std::set< std::string > LabelSet
 the type that defines a set of labels More...
 

Public Member Functions

bool operator< (const RuleCnP &larger) const
 
 RuleCnP ()
 
 RuleCnP (const size_t source, const size_t pasteID)
 
 RuleCnP (const size_t source, const size_t pasteID, const size_t target)
 
 RuleCnP (const size_t source, const size_t pasteID, const LabelSet &edgeLabels)
 
 RuleCnP (const size_t source, const size_t pasteID, const size_t target, const LabelSet &edgeLabels)
 

Data Fields

LabelSet edgeLabels
 
size_t pasteID
 the node where the dangling edges will be reconnected to More...
 
size_t source
 
size_t target
 optional: the target id of the edges to copy-and-paste More...
 

Detailed Description

Class to define copy-and-Paste operations for adjacent edges of nodes to be removed. They are used to relink dangling edges to other nodes of the result graph.

Definition at line 230 of file Rule.hh.

Member Typedef Documentation

typedef std::set< std::string > ggl::Rule::RuleCnP::LabelSet

Definition at line 235 of file Rule.hh.

Constructor & Destructor Documentation

ggl::Rule::RuleCnP::RuleCnP ( )

Default construction initializting with INT_MAX

ggl::Rule::RuleCnP::RuleCnP ( const size_t  source,
const size_t  pasteID 
)

Construction

Parameters
sourcethe node that will be deleted and which is the source of the dangling edges
pasteIDthe node where the dangling edges will be reconnected to
ggl::Rule::RuleCnP::RuleCnP ( const size_t  source,
const size_t  pasteID,
const size_t  target 
)

Construction

Parameters
sourcethe node that will be deleted and which is the source of the dangling edges
pasteIDthe node where the dangling edges will be reconnected to
targetthe target node id of the edges to copy-and-paste
ggl::Rule::RuleCnP::RuleCnP ( const size_t  source,
const size_t  pasteID,
const LabelSet edgeLabels 
)

Construction

Parameters
sourcethe node that will be deleted and which is the source of the dangling edges
pasteIDthe node where the dangling edges will be reconnected to
edgeLabelsthe labels of edges that have to be copy-and-pasted; if the set is empty, all edges will be copied.
ggl::Rule::RuleCnP::RuleCnP ( const size_t  source,
const size_t  pasteID,
const size_t  target,
const LabelSet edgeLabels 
)

Construction

Parameters
sourcethe node that will be deleted and which is the source of the dangling edges
pasteIDthe node where the dangling edges will be reconnected to
targetthe target node id of the edges to copy-and-paste
edgeLabelsthe labels of edges that have to be copy-and-pasted; if the set is empty, all edges will be copied.

Member Function Documentation

bool ggl::Rule::RuleCnP::operator< ( const RuleCnP larger) const

Order comparison: this object is smaller iff (this.source < larger.source) or (this.source == larger.source and this.target < larger.target).

Parameters
largerthe copy-and-paste object to compare to
Returns
whether this object is of smaller order or not.

Field Documentation

LabelSet ggl::Rule::RuleCnP::edgeLabels

the labels of edges that have to be copy-and-pasted; if the set is empty, all edges will be copied.

Definition at line 296 of file Rule.hh.

size_t ggl::Rule::RuleCnP::pasteID

Definition at line 291 of file Rule.hh.

size_t ggl::Rule::RuleCnP::source

the node that will be deleted and which is the source of the dangling edges

Definition at line 289 of file Rule.hh.

size_t ggl::Rule::RuleCnP::target

Definition at line 293 of file Rule.hh.


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