LLVM API Documentation

llvmc::Node Struct Reference

Node - A node (vertex) of the compilation graph. More...

#include <CompilationGraph.h>

Collaboration diagram for llvmc::Node:
[legend]

List of all members.

Public Types

typedef llvm::SmallVector
< llvm::IntrusiveRefCntPtr
< Edge >, 3 > 
container_type
typedef container_type::iterator iterator
typedef
container_type::const_iterator 
const_iterator

Public Member Functions

 Node ()
 Node (CompilationGraph *G)
 Node (CompilationGraph *G, Tool *T)
bool HasChildren () const
const std::string Name () const
iterator EdgesBegin ()
const_iterator EdgesBegin () const
iterator EdgesEnd ()
const_iterator EdgesEnd () const
void AddEdge (Edge *E)
void IncrInEdges ()
void DecrInEdges ()
bool HasNoInEdges () const

Public Attributes

CompilationGraph * OwningGraph
llvm::IntrusiveRefCntPtr< Tool > ToolPtr
container_type OutEdges
unsigned InEdges


Detailed Description

Node - A node (vertex) of the compilation graph.

Definition at line 63 of file CompilationGraph.h.


Member Typedef Documentation

Definition at line 65 of file CompilationGraph.h.

Definition at line 66 of file CompilationGraph.h.

Definition at line 67 of file CompilationGraph.h.


Constructor & Destructor Documentation

llvmc::Node::Node (  )  [inline]

Definition at line 69 of file CompilationGraph.h.

llvmc::Node::Node ( CompilationGraph *  G  )  [inline]

Definition at line 70 of file CompilationGraph.h.

llvmc::Node::Node ( CompilationGraph *  G,
Tool *  T 
) [inline]

Definition at line 71 of file CompilationGraph.h.


Member Function Documentation

bool llvmc::Node::HasChildren (  )  const [inline]

Definition at line 74 of file CompilationGraph.h.

References llvm::SmallVectorImpl< T >::empty(), and OutEdges.

const std::string llvmc::Node::Name (  )  const [inline]

Definition at line 75 of file CompilationGraph.h.

References ToolPtr.

iterator llvmc::Node::EdgesBegin (  )  [inline]

Definition at line 79 of file CompilationGraph.h.

References llvm::SmallVectorImpl< T >::begin(), and OutEdges.

const_iterator llvmc::Node::EdgesBegin (  )  const [inline]

Definition at line 80 of file CompilationGraph.h.

References llvm::SmallVectorImpl< T >::begin(), and OutEdges.

iterator llvmc::Node::EdgesEnd (  )  [inline]

Definition at line 81 of file CompilationGraph.h.

References llvm::SmallVectorImpl< T >::end(), and OutEdges.

const_iterator llvmc::Node::EdgesEnd (  )  const [inline]

Definition at line 82 of file CompilationGraph.h.

References llvm::SmallVectorImpl< T >::end(), and OutEdges.

void llvmc::Node::AddEdge ( Edge *  E  ) 

AddEdge - Add an outward edge. Takes ownership of the provided Edge object.

void llvmc::Node::IncrInEdges (  )  [inline]

Definition at line 89 of file CompilationGraph.h.

References InEdges.

void llvmc::Node::DecrInEdges (  )  [inline]

Definition at line 90 of file CompilationGraph.h.

References InEdges.

bool llvmc::Node::HasNoInEdges (  )  const [inline]

Definition at line 91 of file CompilationGraph.h.

References InEdges.


Member Data Documentation

Definition at line 94 of file CompilationGraph.h.

Definition at line 97 of file CompilationGraph.h.

Referenced by Name().

Definition at line 102 of file CompilationGraph.h.

Referenced by DecrInEdges(), HasNoInEdges(), and IncrInEdges().


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