Static Value-Flow Analysis
Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
SVF::SVFOtherType Class Reference

#include <SVFType.h>

Inheritance diagram for SVF::SVFOtherType:
SVF::SVFType

Public Member Functions

 SVFOtherType (bool isSingleValueTy, u32_t byteSize=1)
 Field representation for printing. More...
 
const std::stringgetRepr ()
 
void setRepr (std::string &&r)
 
void setRepr (const std::string &r)
 
void print (std::ostream &os) const override
 
- Public Member Functions inherited from SVF::SVFType
 SVFType (void)=delete
 
virtual ~SVFType ()
 
GNodeK getKind () const
 
std::string toString () const
 
void setTypeInfo (StInfo *ti)
 
StInfogetTypeInfo ()
 
const StInfogetTypeInfo () const
 
u32_t getByteSize () const
 
bool isPointerTy () const
 
bool isArrayTy () const
 
bool isStructTy () const
 
bool isSingleValueType () const
 

Static Public Member Functions

static bool classof (const SVFType *node)
 
- Static Public Member Functions inherited from SVF::SVFType
static SVFTypegetSVFPtrType ()
 
static SVFTypegetSVFInt8Type ()
 

Private Attributes

std::string repr
 

Friends

class SVFIRWriter
 
class SVFIRReader
 

Additional Inherited Members

- Public Types inherited from SVF::SVFType
enum  SVFTyKind {
  SVFTy , SVFPointerTy , SVFIntegerTy , SVFFunctionTy ,
  SVFStructTy , SVFArrayTy , SVFOtherTy
}
 
typedef s64_t GNodeK
 
- Protected Member Functions inherited from SVF::SVFType
 SVFType (bool svt, SVFTyKind k, u32_t Sz=1)
 

Detailed Description

Definition at line 417 of file SVFType.h.

Constructor & Destructor Documentation

◆ SVFOtherType()

SVF::SVFOtherType::SVFOtherType ( bool  isSingleValueTy,
u32_t  byteSize = 1 
)
inline

Field representation for printing.

Definition at line 426 of file SVFType.h.

426 : SVFType(isSingleValueTy, SVFOtherTy, byteSize) {}
u32_t byteSize
array
Definition: SVFType.h:199
SVFType(void)=delete

Member Function Documentation

◆ classof()

static bool SVF::SVFOtherType::classof ( const SVFType node)
inlinestatic

Definition at line 428 of file SVFType.h.

429  {
430  return node->getKind() == SVFOtherTy;
431  }

◆ getRepr()

const std::string& SVF::SVFOtherType::getRepr ( )
inline

Definition at line 433 of file SVFType.h.

434  {
435  return repr;
436  }
std::string repr
Definition: SVFType.h:423

◆ print()

void SVF::SVFOtherType::print ( std::ostream &  os) const
overridevirtual

Implements SVF::SVFType.

Definition at line 52 of file SVFType.cpp.

53 {
54  os << repr;
55 }

◆ setRepr() [1/2]

void SVF::SVFOtherType::setRepr ( const std::string r)
inline

Definition at line 443 of file SVFType.h.

444  {
445  repr = r;
446  }

◆ setRepr() [2/2]

void SVF::SVFOtherType::setRepr ( std::string &&  r)
inline

Definition at line 438 of file SVFType.h.

439  {
440  repr = std::move(r);
441  }
constexpr std::remove_reference< T >::type && move(T &&t) noexcept
Definition: SVFUtil.h:447

Friends And Related Function Documentation

◆ SVFIRReader

friend class SVFIRReader
friend

Definition at line 420 of file SVFType.h.

◆ SVFIRWriter

friend class SVFIRWriter
friend

Definition at line 419 of file SVFType.h.

Member Data Documentation

◆ repr

std::string SVF::SVFOtherType::repr
private

Definition at line 423 of file SVFType.h.


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