LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::VertexView< isConst > Class Template Reference

A class for ranging over the vertices in the graph. More...

#include "llvm/XRay/Graph.h"

Public Types

using iterator = std::conditional_t< isConst, ConstVertexIterator, VertexIterator >
 
using const_iterator = ConstVertexIterator
 
using GraphT = std::conditional_t< isConst, const Graph, Graph >
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const_iterator begin () const
 
const_iterator end () const
 
size_type size () const
 
bool empty () const
 
 VertexView (GraphT &_G)
 

Detailed Description

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

A class for ranging over the vertices in the graph.

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 273 of file Graph.h.

Member Typedef Documentation

◆ const_iterator

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst>
using llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::VertexView< isConst >::const_iterator = ConstVertexIterator

Definition at line 277 of file Graph.h.

◆ GraphT

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst>
using llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::VertexView< isConst >::GraphT = std::conditional_t<isConst, const Graph, Graph>

Definition at line 278 of file Graph.h.

◆ iterator

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst>
using llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::VertexView< isConst >::iterator = std::conditional_t<isConst, ConstVertexIterator, VertexIterator>

Definition at line 275 of file Graph.h.

Constructor & Destructor Documentation

◆ VertexView()

template<typename VertexAttribute , typename EdgeAttribute , typename VI = int32_t>
template<bool isConst>
llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::VertexView< isConst >::VertexView ( GraphT _G)
inline

Definition at line 292 of file Graph.h.

References G.

Member Function Documentation

◆ begin() [1/2]

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

Definition at line 284 of file Graph.h.

References G.

◆ begin() [2/2]

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

Definition at line 288 of file Graph.h.

References G.

◆ cbegin()

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

Definition at line 286 of file Graph.h.

References G.

◆ cend()

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

Definition at line 287 of file Graph.h.

References G.

◆ empty()

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

Definition at line 291 of file Graph.h.

References G.

◆ end() [1/2]

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

Definition at line 285 of file Graph.h.

References G.

◆ end() [2/2]

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

Definition at line 289 of file Graph.h.

References G.

◆ size()

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

Definition at line 290 of file Graph.h.

References G.


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