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

#include <SlicedGraphs.h>

Public Types

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

Public Member Functions

 SlicedICFGNodeIter ()=default
 SlicedICFGNodeIter (const SlicedICFGView *v, OrderedSet< const ICFGNode * >::const_iterator i)
reference operator* () const
SlicedICFGNodeIter & operator++ ()
SlicedICFGNodeIter operator++ (int)

Private Attributes

const SlicedICFGView * view = nullptr
OrderedSet< constICFGNode * >::const_iterator it {}

Friends

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

Detailed Description

Definition at line 607 of file SlicedGraphs.h.

Member Typedef Documentation

◆ difference_type

Definition at line 612 of file SlicedGraphs.h.

◆ iterator_category

using SVF::SlicedICFGNodeIter::iterator_category = std::forward_iterator_tag

Definition at line 610 of file SlicedGraphs.h.

◆ pointer

Definition at line 613 of file SlicedGraphs.h.

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ SlicedICFGNodeIter() [1/2]

SVF::SlicedICFGNodeIter::SlicedICFGNodeIter ( )
default

◆ SlicedICFGNodeIter() [2/2]

SVF::SlicedICFGNodeIter::SlicedICFGNodeIter ( const SlicedICFGView * v,
OrderedSet< const ICFGNode * >::const_iterator i )
inline

Definition at line 617 of file SlicedGraphs.h.

618 : view(v), it(i) {}
OrderedSet< constICFGNode * >::const_iterator it
const SlicedICFGView * view

Member Function Documentation

◆ operator*()

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

Definition at line 620 of file SlicedGraphs.h.

621 {
622 return SlicedICFGNodeRef{view, *it};
623 }
SlicedNodeRef< SlicedICFGView, ICFGNode > SlicedICFGNodeRef

◆ operator++() [1/2]

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

Definition at line 624 of file SlicedGraphs.h.

625 {
626 ++it;
627 return *this;
628 }

◆ operator++() [2/2]

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

Definition at line 629 of file SlicedGraphs.h.

630 {
631 SlicedICFGNodeIter t = *this;
632 ++it;
633 return t;
634 }

◆ operator!=

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

Definition at line 640 of file SlicedGraphs.h.

641 {
642 return !(a == b);
643 }
cJSON * a
Definition cJSON.cpp:2560
const cJSON *const b
Definition cJSON.h:255

◆ operator==

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

Definition at line 636 of file SlicedGraphs.h.

637 {
638 return a.view == b.view && a.it == b.it;
639 }

Member Data Documentation

◆ it

OrderedSet<constICFGNode*>::const_iterator SVF::SlicedICFGNodeIter::it {}
private

Definition at line 647 of file SlicedGraphs.h.

647{};

◆ view

const SlicedICFGView* SVF::SlicedICFGNodeIter::view = nullptr
private

Definition at line 646 of file SlicedGraphs.h.


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