Static Value-Flow Analysis
Loading...
Searching...
No Matches
SVF::WTOComponent< GraphT > Class Template Referenceabstract

#include <WTO.h>

Inheritance diagram for SVF::WTOComponent< GraphT >:
SVF::WTOCycle< GraphT > SVF::WTONode< GraphT >

Public Types

enum  WTOCT { Node , Cycle }

Public Member Functions

 WTOComponent (WTOCT k)
 Default constructor.
 WTOComponent (const WTOComponent &) noexcept=default
 Copy constructor.
 WTOComponent (WTOComponent &&) noexcept=default
 Move constructor.
WTOComponent & operator= (const WTOComponent &) noexcept=default
 Copy assignment operator.
WTOComponent & operator= (WTOComponent &&) noexcept=default
 Move assignment operator.
virtual void accept (WTOComponentVisitor< GraphT > &) const =0
 Accept the given visitor.
virtual ~WTOComponent ()=default
 Destructor.
WTOCT getKind () const
virtual std::string toString () const =0

Public Attributes

WTOCT _type

Friends

std::ostream & operator<< (std::ostream &o, const WTOComponent< GraphT > &wto)
 Overloading operator << for dumping ICFG node ID.

Detailed Description

template<typename GraphT>
class SVF::WTOComponent< GraphT >

Base class for a WTO component

A WTO component can be either a node or cycle

Definition at line 271 of file WTO.h.

Member Enumeration Documentation

◆ WTOCT

template<typename GraphT>
enum SVF::WTOComponent::WTOCT
Enumerator
Node 
Cycle 

Definition at line 274 of file WTO.h.

275 {
276 Node,
277 Cycle
278 };

Constructor & Destructor Documentation

◆ WTOComponent() [1/3]

template<typename GraphT>
SVF::WTOComponent< GraphT >::WTOComponent ( WTOCT k)
inlineexplicit

Default constructor.

Definition at line 281 of file WTO.h.

281: _type(k) {};
WTOCT _type
Definition WTO.h:318

◆ WTOComponent() [2/3]

template<typename GraphT>
SVF::WTOComponent< GraphT >::WTOComponent ( const WTOComponent< GraphT > & )
defaultnoexcept

Copy constructor.

◆ WTOComponent() [3/3]

template<typename GraphT>
SVF::WTOComponent< GraphT >::WTOComponent ( WTOComponent< GraphT > && )
defaultnoexcept

Move constructor.

◆ ~WTOComponent()

template<typename GraphT>
virtual SVF::WTOComponent< GraphT >::~WTOComponent ( )
virtualdefault

Destructor.

Member Function Documentation

◆ accept()

template<typename GraphT>
virtual void SVF::WTOComponent< GraphT >::accept ( WTOComponentVisitor< GraphT > & ) const
pure virtual

◆ getKind()

template<typename GraphT>
WTOCT SVF::WTOComponent< GraphT >::getKind ( ) const
inline

Definition at line 301 of file WTO.h.

302 {
303 return _type;
304 }

◆ operator=() [1/2]

template<typename GraphT>
WTOComponent & SVF::WTOComponent< GraphT >::operator= ( const WTOComponent< GraphT > & )
defaultnoexcept

Copy assignment operator.

◆ operator=() [2/2]

template<typename GraphT>
WTOComponent & SVF::WTOComponent< GraphT >::operator= ( WTOComponent< GraphT > && )
defaultnoexcept

Move assignment operator.

◆ toString()

template<typename GraphT>
virtual std::string SVF::WTOComponent< GraphT >::toString ( ) const
nodiscardpure virtual

◆ operator<<

template<typename GraphT>
std::ostream & operator<< ( std::ostream & o,
const WTOComponent< GraphT > & wto )
friend

Overloading operator << for dumping ICFG node ID.

Definition at line 310 of file WTO.h.

312 {
313 o << wto.toString();
314 return o;
315 }
virtual std::string toString() const =0

Member Data Documentation

◆ _type

template<typename GraphT>
WTOCT SVF::WTOComponent< GraphT >::_type

Definition at line 318 of file WTO.h.


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