retdec
Public Member Functions | Private Attributes | List of all members
retdec::common::Language Class Reference

#include <language.h>

Collaboration diagram for retdec::common::Language:
Collaboration graph
[legend]

Public Member Functions

 Language ()
 
 Language (const std::string &langName)
 
bool operator< (const Language &val) const
 
bool operator== (const Language &val) const
 
Language query methods.
bool isUnknown () const
 
bool isKnown () const
 
bool isModuleCountSet () const
 
bool isBytecode () const
 
Language set methods.
void setName (const std::string &n)
 
void setIsUnknown ()
 
void setModuleCount (unsigned c)
 
void setIsBytecode (bool b)
 
Language get methods.
std::string getName () const
 
unsigned getModuleCount () const
 

Private Attributes

std::string _name
 Unique ID. More...
 
int _moduleCount = -1
 
bool _bytecode = false
 

Detailed Description

Represents input binary's language. Language's name is its unique ID.

Constructor & Destructor Documentation

◆ Language() [1/2]

retdec::common::Language::Language ( )

◆ Language() [2/2]

retdec::common::Language::Language ( const std::string &  langName)

Member Function Documentation

◆ getModuleCount()

unsigned retdec::common::Language::getModuleCount ( ) const

◆ getName()

std::string retdec::common::Language::getName ( ) const

◆ isBytecode()

bool retdec::common::Language::isBytecode ( ) const

◆ isKnown()

bool retdec::common::Language::isKnown ( ) const

◆ isModuleCountSet()

bool retdec::common::Language::isModuleCountSet ( ) const

◆ isUnknown()

bool retdec::common::Language::isUnknown ( ) const

◆ operator<()

bool retdec::common::Language::operator< ( const Language val) const

Less-than comparison of this instance with the provided one. Default string comparison of name members is used.

Parameters
valOther language to compare with.
Returns
True if this instance is considered to be less-than val.

◆ operator==()

bool retdec::common::Language::operator== ( const Language val) const

Languages are equal if their names are equal.

◆ setIsBytecode()

void retdec::common::Language::setIsBytecode ( bool  b)

◆ setIsUnknown()

void retdec::common::Language::setIsUnknown ( )

◆ setModuleCount()

void retdec::common::Language::setModuleCount ( unsigned  c)

◆ setName()

void retdec::common::Language::setName ( const std::string &  n)

Member Data Documentation

◆ _bytecode

bool retdec::common::Language::_bytecode = false
private

◆ _moduleCount

int retdec::common::Language::_moduleCount = -1
private

◆ _name

std::string retdec::common::Language::_name
private

Unique ID.


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