OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
OperationDAGEdge Class Reference

#include <OperationDAGEdge.hh>

Inheritance diagram for OperationDAGEdge:
Inheritance graph
Collaboration diagram for OperationDAGEdge:
Collaboration graph

Public Member Functions

 OperationDAGEdge (int srcOperand, int dstOperand)
 
 OperationDAGEdge (const OperationDAGEdge &other)
 
virtual ~OperationDAGEdge ()
 
virtual GraphEdgeclone () const
 
int srcOperand () const
 
int dstOperand () const
 
TCEString toString () const
 
- Public Member Functions inherited from GraphEdge
 GraphEdge ()
 
 GraphEdge (const GraphEdge &edge)
 
virtual ~GraphEdge ()
 
virtual int edgeID () const
 
virtual TCEString dotString () const
 
virtual bool isBackEdge () const
 
int weight () const
 
void setWeight (int w)
 

Private Attributes

int srcOperand_
 
int dstOperand_
 

Detailed Description

Definition at line 38 of file OperationDAGEdge.hh.

Constructor & Destructor Documentation

◆ OperationDAGEdge() [1/2]

OperationDAGEdge::OperationDAGEdge ( int  srcOperand,
int  dstOperand 
)

Definition at line 36 of file OperationDAGEdge.cc.

Referenced by clone().

◆ OperationDAGEdge() [2/2]

OperationDAGEdge::OperationDAGEdge ( const OperationDAGEdge other)

Definition at line 39 of file OperationDAGEdge.cc.

39  :
40  GraphEdge(other), srcOperand_(other.srcOperand()),
41  dstOperand_(other.dstOperand()) {}

◆ ~OperationDAGEdge()

virtual OperationDAGEdge::~OperationDAGEdge ( )
inlinevirtual

Definition at line 42 of file OperationDAGEdge.hh.

42 {}

Member Function Documentation

◆ clone()

GraphEdge * OperationDAGEdge::clone ( ) const
virtual

Clones edge. Needed for dynamic binding, when copying instances through the base class.

Returns
Dynamically allocated copy of the edge.

Reimplemented from GraphEdge.

Definition at line 44 of file OperationDAGEdge.cc.

44  {
45  return new OperationDAGEdge(*this);
46 }

References OperationDAGEdge().

Here is the call graph for this function:

◆ dstOperand()

int OperationDAGEdge::dstOperand ( ) const

◆ srcOperand()

int OperationDAGEdge::srcOperand ( ) const

◆ toString()

TCEString OperationDAGEdge::toString ( ) const
virtual

Return the label of the edge as a string.

Used for printing graph in GraphViz .dot file.

Returns
The edge ID as a string

Reimplemented from GraphEdge.

Definition at line 59 of file OperationDAGEdge.cc.

59  {
60  return Conversion::toString(srcOperand_) + "," +
62 }

References dstOperand_, srcOperand_, and Conversion::toString().

Here is the call graph for this function:

Member Data Documentation

◆ dstOperand_

int OperationDAGEdge::dstOperand_
private

Definition at line 53 of file OperationDAGEdge.hh.

Referenced by dstOperand(), and toString().

◆ srcOperand_

int OperationDAGEdge::srcOperand_
private

Definition at line 52 of file OperationDAGEdge.hh.

Referenced by srcOperand(), and toString().


The documentation for this class was generated from the following files:
OperationDAGEdge::dstOperand
int dstOperand() const
Definition: OperationDAGEdge.cc:54
OperationDAGEdge::OperationDAGEdge
OperationDAGEdge(int srcOperand, int dstOperand)
Definition: OperationDAGEdge.cc:36
Conversion::toString
static std::string toString(const T &source)
OperationDAGEdge::srcOperand
int srcOperand() const
Definition: OperationDAGEdge.cc:49
OperationDAGEdge::srcOperand_
int srcOperand_
Definition: OperationDAGEdge.hh:52
OperationDAGEdge::dstOperand_
int dstOperand_
Definition: OperationDAGEdge.hh:53
GraphEdge::GraphEdge
GraphEdge()
Definition: GraphEdge.cc:40