retdec
|
A representation of pointer types. More...
#include <pointer_type.h>
Public Member Functions | |
std::shared_ptr< Type > | getPointedType () const |
Returns pointed type. More... | |
virtual bool | isPointer () const override |
Visitor interface. | |
virtual void | accept (Visitor *v) override |
Visitor pattern implementation. More... | |
![]() | |
virtual | ~Type ()=default |
const std::string & | getName () const |
unsigned | getBitWidth () const |
virtual bool | isArray () const |
virtual bool | isEnum () const |
virtual bool | isFloatingPoint () const |
virtual bool | isFunction () const |
virtual bool | isIntegral () const |
virtual bool | isNamed () const |
virtual bool | isReference () const |
virtual bool | isStruct () const |
virtual bool | isTypedef () const |
virtual bool | isUnion () const |
virtual bool | isUnknown () const |
virtual bool | isVoid () const |
Static Public Member Functions | |
static std::shared_ptr< PointerType > | create (const std::shared_ptr< Context > &context, const std::shared_ptr< Type > &pointedType, unsigned bitWidth=0) |
Creates pointer type. More... | |
Private Member Functions | |
PointerType (const std::shared_ptr< Type > &pointedType, unsigned bitWidth=0) | |
Constructs a new pointer type. More... | |
Private Attributes | |
std::shared_ptr< Type > | pointedType |
Additional Inherited Members | |
![]() | |
Type ()=default | |
Type (const std::string &name, unsigned bitWidth) | |
Constructs a new type. More... | |
![]() | |
Visitable ()=default | |
~Visitable ()=default | |
![]() | |
std::string | name |
unsigned | bitWidth |
A representation of pointer types.
|
private |
Constructs a new pointer type.
|
overridevirtual |
Visitor pattern implementation.
Subclasses should implement this method as:
where T
is the name of the subclass.
Implements retdec::ctypes::Visitable.
|
static |
Creates pointer type.
context | Storage for already created functions, types. |
pointedType | Type that this pointer points to. |
bitWidth | Number of bits used by this type. |
Does not create new pointer type, if one has already been created and stored in context
.
std::shared_ptr< Type > retdec::ctypes::PointerType::getPointedType | ( | ) | const |
Returns pointed type.
|
overridevirtual |
Returns true
when Type is pointer, false
otherwise.
Reimplemented from retdec::ctypes::Type.
|
private |