LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::Edge Class Reference

#include <Graph.h>

Collaboration diagram for llvm::Edge:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Edge (Node *f, Node *s, int wt=0)
 Edge (Node *f, Node *s, int wt, double rd)
 Edge ()
double getRandId ()
NodegetFirst ()
Node *const getFirst () const
NodegetSecond ()
Node *const getSecond () const
int getWeight ()
void setWeight (int n)
void setFirst (Node *&f)
void setSecond (Node *&s)
bool isNull () const
bool operator< (const Edge &ed) const
bool operator== (const Edge &ed) const
bool operator!= (const Edge &ed) const

Detailed Description

Definition at line 46 of file Graph.h.


Constructor & Destructor Documentation

llvm::Edge::Edge Node f,
Node s,
int  wt = 0
[inline]
 

Definition at line 54 of file Graph.h.

llvm::Edge::Edge Node f,
Node s,
int  wt,
double  rd
[inline]
 

Definition at line 62 of file Graph.h.

llvm::Edge::Edge  )  [inline]
 

Definition at line 70 of file Graph.h.


Member Function Documentation

Node* const llvm::Edge::getFirst  )  const [inline]
 

Definition at line 73 of file Graph.h.

References isNull().

Node* llvm::Edge::getFirst  )  [inline]
 

Definition at line 72 of file Graph.h.

References isNull().

Referenced by llvm::addDummyEdges(), llvm::Graph::addEdge(), llvm::Graph::addEdgeForce(), llvm::Graph::Graph(), llvm::Graph::hasEdge(), llvm::Graph::hasEdgeAndWt(), llvm::inc_DFS(), llvm::inc_Dir(), llvm::insertBB(), llvm::moveDummyCode(), llvm::EdgeCompare2::operator()(), std::less< Edge >::operator()(), operator<(), llvm::printEdge(), llvm::Graph::removeEdge(), llvm::Graph::removeEdgeWithWt(), and llvm::Graph::setWeight().

double llvm::Edge::getRandId  )  [inline]
 

Definition at line 71 of file Graph.h.

Referenced by llvm::addDummyEdges(), llvm::Graph::addEdge(), llvm::Graph::addEdgeForce(), llvm::Graph::Graph(), llvm::moveDummyCode(), llvm::EdgeCompare2::operator()(), and llvm::printEdge().

Node* const llvm::Edge::getSecond  )  const [inline]
 

Definition at line 75 of file Graph.h.

References isNull().

Node* llvm::Edge::getSecond  )  [inline]
 

Definition at line 74 of file Graph.h.

References isNull().

Referenced by llvm::addDummyEdges(), llvm::Graph::addEdge(), llvm::Graph::addEdgeForce(), llvm::Graph::Graph(), llvm::Graph::hasEdge(), llvm::Graph::hasEdgeAndWt(), llvm::inc_DFS(), llvm::inc_Dir(), llvm::insertBB(), llvm::moveDummyCode(), llvm::EdgeCompare2::operator()(), std::less< Edge >::operator()(), operator<(), llvm::printEdge(), llvm::Graph::removeEdge(), llvm::Graph::removeEdgeWithWt(), and llvm::Graph::setWeight().

int llvm::Edge::getWeight  )  [inline]
 

Definition at line 77 of file Graph.h.

References isNull().

Referenced by llvm::addDummyEdges(), llvm::Graph::addEdgeForce(), llvm::edgesEqual(), llvm::getCodeInsertions(), llvm::getEdgeIncrements(), llvm::Graph::Graph(), llvm::Graph::hasEdgeAndWt(), llvm::inc_DFS(), llvm::EdgeCompare2::operator()(), llvm::printEdge(), llvm::Graph::removeEdgeWithWt(), and llvm::Graph::setWeight().

bool llvm::Edge::isNull  )  const [inline]
 

Definition at line 84 of file Graph.h.

Referenced by getFirst(), getSecond(), getWeight(), llvm::Graph::hasEdge(), llvm::Graph::hasEdgeAndWt(), llvm::inc_Dir(), llvm::EdgeCompare2::operator()(), std::less< Edge >::operator()(), operator<(), setFirst(), setSecond(), and setWeight().

bool llvm::Edge::operator!= const Edge ed  )  const [inline]
 

Definition at line 99 of file Graph.h.

bool llvm::Edge::operator< const Edge ed  )  const [inline]
 

Definition at line 86 of file Graph.h.

References getFirst(), getSecond(), and isNull().

bool llvm::Edge::operator== const Edge ed  )  const [inline]
 

Definition at line 95 of file Graph.h.

void llvm::Edge::setFirst Node *&  f  )  [inline]
 

Definition at line 80 of file Graph.h.

References isNull().

void llvm::Edge::setSecond Node *&  s  )  [inline]
 

Definition at line 81 of file Graph.h.

References isNull().

void llvm::Edge::setWeight int  n  )  [inline]
 

Definition at line 78 of file Graph.h.

References isNull().


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