libTriton  version 1.0 build 1532
Public Member Functions | Protected Attributes | List of all members
triton::modes::Modes Class Reference

The modes class. More...

#include <modes.hpp>

Public Member Functions

TRITON_EXPORT Modes ()
 Constructor. More...
 
TRITON_EXPORT Modes (const Modes &other)
 Constructor. More...
 
TRITON_EXPORT Modesoperator= (const Modes &other)
 Copies a Modes. More...
 
TRITON_EXPORT bool isModeEnabled (triton::modes::mode_e mode) const
 Returns true if the mode is enabled. More...
 
TRITON_EXPORT void setMode (triton::modes::mode_e mode, bool flag)
 Enables or disables a specific mode. More...
 
TRITON_EXPORT void clearModes (void)
 Clears recorded modes. More...
 

Protected Attributes

std::unordered_set< triton::modes::mode_eenabledModes
 The set of enabled modes. More...
 

Detailed Description

The modes class.

Definition at line 36 of file modes.hpp.

Constructor & Destructor Documentation

◆ Modes() [1/2]

triton::modes::Modes::Modes ( )

Constructor.

Definition at line 16 of file modes.cpp.

◆ Modes() [2/2]

triton::modes::Modes::Modes ( const Modes other)

Constructor.

Definition at line 21 of file modes.cpp.

Member Function Documentation

◆ clearModes()

void triton::modes::Modes::clearModes ( void  )

Clears recorded modes.

Definition at line 52 of file modes.cpp.

◆ isModeEnabled()

bool triton::modes::Modes::isModeEnabled ( triton::modes::mode_e  mode) const

Returns true if the mode is enabled.

Definition at line 37 of file modes.cpp.

◆ operator=()

Modes & triton::modes::Modes::operator= ( const Modes other)

Copies a Modes.

Definition at line 26 of file modes.cpp.

◆ setMode()

void triton::modes::Modes::setMode ( triton::modes::mode_e  mode,
bool  flag 
)

Enables or disables a specific mode.

Definition at line 44 of file modes.cpp.

Member Data Documentation

◆ enabledModes

std::unordered_set<triton::modes::mode_e> triton::modes::Modes::enabledModes
protected

The set of enabled modes.

Definition at line 43 of file modes.hpp.


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