retdec
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
retdec::common::Pattern::Match Class Reference

#include <pattern.h>

Collaboration diagram for retdec::common::Pattern::Match:
Collaboration graph
[legend]

Public Member Functions

 Match ()
 
bool operator== (const Match &val) const
 
bool operator!= (const Match &val) const
 
Match query methods.
bool isOffsetDefined () const
 
bool isAddressDefined () const
 
bool isSizeDefined () const
 
bool isEntrySizeDefined () const
 
bool isTypeUnknown () const
 
bool isTypeIntegral () const
 
bool isTypeFloatingPoint () const
 
Tool set methods.
void setOffset (const retdec::common::Address &offset)
 
void setAddress (const retdec::common::Address &address)
 
void setSize (const unsigned size)
 
void setEntrySize (const unsigned entrySize)
 
void setIsTypeUnknown ()
 
void setIsTypeIntegral ()
 
void setIsTypeFloatingPoint ()
 
Tool get methods.
retdec::common::Address getOffset () const
 
retdec::common::Address getAddress () const
 
std::optional< unsigned > getSize () const
 
std::optional< unsigned > getEntrySize () const
 

Static Public Member Functions

static Match unknown (const retdec::common::Address &offset=retdec::common::Address::Undefined, const retdec::common::Address &address=retdec::common::Address::Undefined, std::optional< unsigned > size=std::nullopt, std::optional< unsigned > entrySize=std::nullopt)
 
static Match integral (const retdec::common::Address &offset=retdec::common::Address::Undefined, const retdec::common::Address &address=retdec::common::Address::Undefined, std::optional< unsigned > size=std::nullopt, std::optional< unsigned > entrySize=std::nullopt)
 
static Match floatingPoint (const retdec::common::Address &offset=retdec::common::Address::Undefined, const retdec::common::Address &address=retdec::common::Address::Undefined, std::optional< unsigned > size=std::nullopt, std::optional< unsigned > entrySize=std::nullopt)
 

Private Types

enum class  eType { UNKNOWN , INTEGRAL , FLOATING_POINT }
 

Private Member Functions

 Match (const retdec::common::Address &offset, const retdec::common::Address &address, std::optional< unsigned > size, std::optional< unsigned > entrySize, eType type)
 

Private Attributes

retdec::common::Address _offset
 
retdec::common::Address _address
 
std::optional< unsigned > _size
 
std::optional< unsigned > _entrySize
 
eType _type = eType::UNKNOWN
 

Member Enumeration Documentation

◆ eType

Enumerator
UNKNOWN 
INTEGRAL 
FLOATING_POINT 

Constructor & Destructor Documentation

◆ Match() [1/2]

retdec::common::Pattern::Match::Match ( )

◆ Match() [2/2]

retdec::common::Pattern::Match::Match ( const retdec::common::Address offset,
const retdec::common::Address address,
std::optional< unsigned >  size,
std::optional< unsigned >  entrySize,
eType  type 
)
private

Member Function Documentation

◆ floatingPoint()

Pattern::Match retdec::common::Pattern::Match::floatingPoint ( const retdec::common::Address offset = retdec::common::Address::Undefined,
const retdec::common::Address address = retdec::common::Address::Undefined,
std::optional< unsigned >  size = std::nullopt,
std::optional< unsigned >  entrySize = std::nullopt 
)
static

◆ getAddress()

retdec::common::Address retdec::common::Pattern::Match::getAddress ( ) const

◆ getEntrySize()

std::optional< unsigned > retdec::common::Pattern::Match::getEntrySize ( ) const

◆ getOffset()

retdec::common::Address retdec::common::Pattern::Match::getOffset ( ) const

◆ getSize()

std::optional< unsigned > retdec::common::Pattern::Match::getSize ( ) const

◆ integral()

Pattern::Match retdec::common::Pattern::Match::integral ( const retdec::common::Address offset = retdec::common::Address::Undefined,
const retdec::common::Address address = retdec::common::Address::Undefined,
std::optional< unsigned >  size = std::nullopt,
std::optional< unsigned >  entrySize = std::nullopt 
)
static

◆ isAddressDefined()

bool retdec::common::Pattern::Match::isAddressDefined ( ) const

◆ isEntrySizeDefined()

bool retdec::common::Pattern::Match::isEntrySizeDefined ( ) const

◆ isOffsetDefined()

bool retdec::common::Pattern::Match::isOffsetDefined ( ) const

◆ isSizeDefined()

bool retdec::common::Pattern::Match::isSizeDefined ( ) const

◆ isTypeFloatingPoint()

bool retdec::common::Pattern::Match::isTypeFloatingPoint ( ) const

◆ isTypeIntegral()

bool retdec::common::Pattern::Match::isTypeIntegral ( ) const

◆ isTypeUnknown()

bool retdec::common::Pattern::Match::isTypeUnknown ( ) const

◆ operator!=()

bool retdec::common::Pattern::Match::operator!= ( const Match val) const

◆ operator==()

bool retdec::common::Pattern::Match::operator== ( const Match val) const
Returns
This instance is equal with the provided one if all the members are equal.

◆ setAddress()

void retdec::common::Pattern::Match::setAddress ( const retdec::common::Address address)

◆ setEntrySize()

void retdec::common::Pattern::Match::setEntrySize ( const unsigned  entrySize)

◆ setIsTypeFloatingPoint()

void retdec::common::Pattern::Match::setIsTypeFloatingPoint ( )

◆ setIsTypeIntegral()

void retdec::common::Pattern::Match::setIsTypeIntegral ( )

◆ setIsTypeUnknown()

void retdec::common::Pattern::Match::setIsTypeUnknown ( )

◆ setOffset()

void retdec::common::Pattern::Match::setOffset ( const retdec::common::Address offset)

◆ setSize()

void retdec::common::Pattern::Match::setSize ( const unsigned  size)

◆ unknown()

Pattern::Match retdec::common::Pattern::Match::unknown ( const retdec::common::Address offset = retdec::common::Address::Undefined,
const retdec::common::Address address = retdec::common::Address::Undefined,
std::optional< unsigned >  size = std::nullopt,
std::optional< unsigned >  entrySize = std::nullopt 
)
static

Member Data Documentation

◆ _address

retdec::common::Address retdec::common::Pattern::Match::_address
private

◆ _entrySize

std::optional<unsigned> retdec::common::Pattern::Match::_entrySize
private

◆ _offset

retdec::common::Address retdec::common::Pattern::Match::_offset
private

◆ _size

std::optional<unsigned> retdec::common::Pattern::Match::_size
private

◆ _type

eType retdec::common::Pattern::Match::_type = eType::UNKNOWN
private

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