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

#include <SVFType.h>

Inheritance diagram for SVF::SVFStructType:
SVF::SVFType

Public Member Functions

 SVFStructType (u32_t byteSize=1)
 
void print (std::ostream &os) const override
 
const std::stringgetName ()
 
void setName (const std::string &structName)
 
void setName (std::string &&structName)
 
- 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 name
 Field for printing & debugging. More...
 

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 344 of file SVFType.h.

Constructor & Destructor Documentation

◆ SVFStructType()

SVF::SVFStructType::SVFStructType ( u32_t  byteSize = 1)
inline

Definition at line 354 of file SVFType.h.

354 : SVFType(false, SVFStructTy, byteSize) {}
u32_t byteSize
array
Definition: SVFType.h:199
SVFType(void)=delete

Member Function Documentation

◆ classof()

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

Definition at line 356 of file SVFType.h.

357  {
358  return node->getKind() == SVFStructTy;
359  }

◆ getName()

const std::string& SVF::SVFStructType::getName ( )
inline

Definition at line 363 of file SVFType.h.

364  {
365  return name;
366  }
std::string name
Field for printing & debugging.
Definition: SVFType.h:351

◆ print()

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

Implements SVF::SVFType.

Definition at line 42 of file SVFType.cpp.

43 {
44  os << "S." << name;
45 }

◆ setName() [1/2]

void SVF::SVFStructType::setName ( const std::string structName)
inline

Definition at line 367 of file SVFType.h.

368  {
369  name = structName;
370  }
const std::string structName
Definition: CppUtil.cpp:56

◆ setName() [2/2]

void SVF::SVFStructType::setName ( std::string &&  structName)
inline

Definition at line 371 of file SVFType.h.

372  {
374  }
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 347 of file SVFType.h.

◆ SVFIRWriter

friend class SVFIRWriter
friend

Definition at line 346 of file SVFType.h.

Member Data Documentation

◆ name

std::string SVF::SVFStructType::name
private

Field for printing & debugging.

Definition at line 351 of file SVFType.h.


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