retdec
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
retdec::ctypes::Annotation Class Reference

A representation of annotation. More...

#include <annotation.h>

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

Public Member Functions

virtual ~Annotation ()=default
 
virtual bool isIn () const
 
virtual bool isOut () const
 
virtual bool isInOut () const
 
virtual bool isOptional () const
 
const std::string & getName () const
 Returns annotation's name. More...
 

Protected Member Functions

 Annotation (const std::string &name)
 Constructs a new annotation. More...
 

Private Attributes

std::string name
 

Detailed Description

A representation of annotation.

Derived class should override isX() method according to annotation type.

Constructor & Destructor Documentation

◆ ~Annotation()

virtual retdec::ctypes::Annotation::~Annotation ( )
virtualdefault

◆ Annotation()

retdec::ctypes::Annotation::Annotation ( const std::string &  name)
explicitprotected

Constructs a new annotation.

See create() for more information.

Member Function Documentation

◆ getName()

const std::string & retdec::ctypes::Annotation::getName ( ) const

Returns annotation's name.

◆ isIn()

bool retdec::ctypes::Annotation::isIn ( ) const
virtual

Reimplemented in retdec::ctypes::AnnotationIn.

◆ isInOut()

bool retdec::ctypes::Annotation::isInOut ( ) const
virtual

◆ isOptional()

bool retdec::ctypes::Annotation::isOptional ( ) const
virtual

◆ isOut()

bool retdec::ctypes::Annotation::isOut ( ) const
virtual

Reimplemented in retdec::ctypes::AnnotationOut.

Member Data Documentation

◆ name

std::string retdec::ctypes::Annotation::name
private

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