retdec
|
A base class of all C types. More...
#include <type.h>
Public Member Functions | |
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 | isPointer () 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 |
![]() | |
virtual void | accept (Visitor *v)=0 |
Visitor pattern implementation. More... | |
Protected Member Functions | |
Type ()=default | |
Type (const std::string &name, unsigned bitWidth) | |
Constructs a new type. More... | |
![]() | |
Visitable ()=default | |
~Visitable ()=default | |
Protected Attributes | |
std::string | name |
unsigned | bitWidth |
A base class of all C types.
|
virtualdefault |
|
protecteddefault |
|
protected |
Constructs a new type.
unsigned retdec::ctypes::Type::getBitWidth | ( | ) | const |
const std::string & retdec::ctypes::Type::getName | ( | ) | const |
|
virtual |
Reimplemented in retdec::ctypes::ArrayType.
|
virtual |
Reimplemented in retdec::ctypes::EnumType.
|
virtual |
Reimplemented in retdec::ctypes::FloatingPointType.
|
virtual |
Reimplemented in retdec::ctypes::FunctionType.
|
virtual |
Reimplemented in retdec::ctypes::IntegralType.
|
virtual |
Reimplemented in retdec::ctypes::NamedType.
|
virtual |
Reimplemented in retdec::ctypes::PointerType.
|
virtual |
Reimplemented in retdec::ctypes::ReferenceType.
|
virtual |
Reimplemented in retdec::ctypes::StructType.
|
virtual |
Reimplemented in retdec::ctypes::TypedefedType.
|
virtual |
Reimplemented in retdec::ctypes::UnionType.
|
virtual |
Reimplemented in retdec::ctypes::UnknownType.
|
virtual |
Reimplemented in retdec::ctypes::VoidType.
|
protected |
|
protected |