LLVM  6.0.0svn
Public Types | Public Member Functions | List of all members
llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut > Class Template Reference

A class for ranging over the incoming edges incident to a vertex. More...

#include "llvm/XRay/Graph.h"

Public Types

using iterator = NeighborEdgeIteratorT< isConst, isOut >
 
using const_iterator = NeighborEdgeIteratorT< true, isOut >
 
using GraphT = typename std::conditional< isConst, const Graph, Graph >::type
 
using InternalEdgeMapT = typename std::conditional< isConst, const EdgeMapT, EdgeMapT >::type
 

Public Member Functions

iterator begin ()
 
const_iterator cbegin () const
 
const_iterator begin () const
 
iterator end ()
 
const_iterator cend () const
 
const_iterator end () const
 
size_type size () const
 
bool empty () const
 
 InOutEdgeView (GraphT &G, VertexIdentifier A)
 

Detailed Description

template<typename VertexAttribute, typename EdgeAttribute, typename VI = int32_t>
template<bool isConst, bool isOut>
class llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >

A class for ranging over the incoming edges incident to a vertex.

Like all views in this class it provides methods to get the beginning and past the range iterators for the range, as well as methods to determine the number of elements in the range and whether the range is empty.

Definition at line 199 of file Graph.h.

Member Typedef Documentation

◆ const_iterator

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
using llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::const_iterator = NeighborEdgeIteratorT<true, isOut>

Definition at line 202 of file Graph.h.

◆ GraphT

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
using llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::GraphT = typename std::conditional<isConst, const Graph, Graph>::type

Definition at line 203 of file Graph.h.

◆ InternalEdgeMapT

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
using llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::InternalEdgeMapT = typename std::conditional<isConst, const EdgeMapT, EdgeMapT>::type

Definition at line 205 of file Graph.h.

◆ iterator

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
using llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::iterator = NeighborEdgeIteratorT<isConst, isOut>

Definition at line 201 of file Graph.h.

Constructor & Destructor Documentation

◆ InOutEdgeView()

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::InOutEdgeView ( GraphT G,
VertexIdentifier  A 
)
inline

Definition at line 254 of file Graph.h.

Member Function Documentation

◆ begin() [1/2]

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
iterator llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::begin ( )
inline

◆ begin() [2/2]

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
const_iterator llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::begin ( ) const
inline

Definition at line 227 of file Graph.h.

◆ cbegin()

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
const_iterator llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::cbegin ( ) const
inline

◆ cend()

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
const_iterator llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::cend ( ) const
inline

◆ empty()

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
bool llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::empty ( ) const
inline

◆ end() [1/2]

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
iterator llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::end ( )
inline

◆ end() [2/2]

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
const_iterator llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::end ( ) const
inline

Definition at line 242 of file Graph.h.

◆ size()

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst, bool isOut>
size_type llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::size ( ) const
inline

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