Static Value-Flow Analysis
Loading...
Searching...
No Matches
SVF::SlicedCGNodeIter Class Reference

#include <SlicedGraphs.h>

Public Types

using iterator_category = std::forward_iterator_tag
using value_type = SlicedCallGraphNodeRef
using difference_type = std::ptrdiff_t
using pointer = const SlicedCallGraphNodeRef*
using reference = SlicedCallGraphNodeRef

Public Member Functions

 SlicedCGNodeIter ()=default
 SlicedCGNodeIter (const SlicedThreadCallGraphView *v, OrderedSet< const CallGraphNode * >::const_iterator i)
reference operator* () const
SlicedCGNodeIter & operator++ ()
SlicedCGNodeIter operator++ (int)

Private Attributes

const SlicedThreadCallGraphView * view = nullptr
OrderedSet< constCallGraphNode * >::const_iterator it {}

Friends

bool operator== (const SlicedCGNodeIter &a, const SlicedCGNodeIter &b)
bool operator!= (const SlicedCGNodeIter &a, const SlicedCGNodeIter &b)

Detailed Description

Definition at line 808 of file SlicedGraphs.h.

Member Typedef Documentation

◆ difference_type

Definition at line 813 of file SlicedGraphs.h.

◆ iterator_category

using SVF::SlicedCGNodeIter::iterator_category = std::forward_iterator_tag

Definition at line 811 of file SlicedGraphs.h.

◆ pointer

Definition at line 814 of file SlicedGraphs.h.

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ SlicedCGNodeIter() [1/2]

SVF::SlicedCGNodeIter::SlicedCGNodeIter ( )
default

◆ SlicedCGNodeIter() [2/2]

SVF::SlicedCGNodeIter::SlicedCGNodeIter ( const SlicedThreadCallGraphView * v,
OrderedSet< const CallGraphNode * >::const_iterator i )
inline

Definition at line 818 of file SlicedGraphs.h.

819 : view(v), it(i) {}
OrderedSet< constCallGraphNode * >::const_iterator it
const SlicedThreadCallGraphView * view

Member Function Documentation

◆ operator*()

reference SVF::SlicedCGNodeIter::operator* ( ) const
inline

Definition at line 821 of file SlicedGraphs.h.

822 {
824 }
SlicedNodeRef< SlicedThreadCallGraphView, CallGraphNode > SlicedCallGraphNodeRef

◆ operator++() [1/2]

SlicedCGNodeIter & SVF::SlicedCGNodeIter::operator++ ( )
inline

Definition at line 825 of file SlicedGraphs.h.

826 {
827 ++it;
828 return *this;
829 }

◆ operator++() [2/2]

SlicedCGNodeIter SVF::SlicedCGNodeIter::operator++ ( int )
inline

Definition at line 830 of file SlicedGraphs.h.

831 {
832 SlicedCGNodeIter t = *this;
833 ++it;
834 return t;
835 }
SlicedCGNodeIter()=default

◆ operator!=

bool operator!= ( const SlicedCGNodeIter & a,
const SlicedCGNodeIter & b )
friend

Definition at line 840 of file SlicedGraphs.h.

841 {
842 return !(a == b);
843 }
cJSON * a
Definition cJSON.cpp:2560
const cJSON *const b
Definition cJSON.h:255

◆ operator==

bool operator== ( const SlicedCGNodeIter & a,
const SlicedCGNodeIter & b )
friend

Definition at line 836 of file SlicedGraphs.h.

837 {
838 return a.view == b.view && a.it == b.it;
839 }

Member Data Documentation

◆ it

OrderedSet<constCallGraphNode*>::const_iterator SVF::SlicedCGNodeIter::it {}
private

Definition at line 847 of file SlicedGraphs.h.

847{};

◆ view

const SlicedThreadCallGraphView* SVF::SlicedCGNodeIter::view = nullptr
private

Definition at line 846 of file SlicedGraphs.h.


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