retdec
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
retdec::ctypes::UnknownType Class Reference

A representation of unknown type. More...

#include <unknown_type.h>

Inheritance diagram for retdec::ctypes::UnknownType:
Inheritance graph
[legend]
Collaboration diagram for retdec::ctypes::UnknownType:
Collaboration graph
[legend]

Public Member Functions

virtual bool isUnknown () const override
 
Visitor interface.
virtual void accept (Visitor *v) override
 Visitor pattern implementation. More...
 
- Public Member Functions inherited from retdec::ctypes::Type
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 isVoid () const
 

Static Public Member Functions

static std::shared_ptr< UnknownTypecreate ()
 Creates unknown type. More...
 

Private Member Functions

 UnknownType ()
 Constructs a new unknown type. More...
 

Additional Inherited Members

- Protected Member Functions inherited from retdec::ctypes::Type
 Type ()=default
 
 Type (const std::string &name, unsigned bitWidth)
 Constructs a new type. More...
 
- Protected Member Functions inherited from retdec::ctypes::Visitable
 Visitable ()=default
 
 ~Visitable ()=default
 
- Protected Attributes inherited from retdec::ctypes::Type
std::string name
 
unsigned bitWidth
 

Detailed Description

A representation of unknown type.

Constructor & Destructor Documentation

◆ UnknownType()

retdec::ctypes::UnknownType::UnknownType ( )
private

Constructs a new unknown type.

See create() for more information.

Member Function Documentation

◆ accept()

void retdec::ctypes::UnknownType::accept ( Visitor v)
overridevirtual

Visitor pattern implementation.

Subclasses should implement this method as:

v->visit(std::static_pointer_cast<T>(std::shared_from_this()));

where T is the name of the subclass.

Implements retdec::ctypes::Visitable.

◆ create()

std::shared_ptr< UnknownType > retdec::ctypes::UnknownType::create ( )
static

Creates unknown type.

Function always returns the same instance.

◆ isUnknown()

bool retdec::ctypes::UnknownType::isUnknown ( ) const
overridevirtual

Returns true when Type is unknown, false otherwise.

Reimplemented from retdec::ctypes::Type.


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