libTriton  version 0.6 build 1389
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
triton::callbacks::Callbacks Class Reference

The callbacks class. More...

#include <callbacks.hpp>

Public Member Functions

TRITON_EXPORT Callbacks (triton::API &api)
 Constructor.
 
TRITON_EXPORT void addCallback (triton::callbacks::getConcreteMemoryValueCallback cb)
 Adds a GET_CONCRETE_MEMORY_VALUE callback.
 
TRITON_EXPORT void addCallback (triton::callbacks::getConcreteRegisterValueCallback cb)
 Adds a GET_CONCRETE_REGISTER_VALUE callback.
 
TRITON_EXPORT void addCallback (triton::callbacks::setConcreteMemoryValueCallback cb)
 Adds a SET_CONCRETE_MEMORY_VALUE callback.
 
TRITON_EXPORT void addCallback (triton::callbacks::setConcreteRegisterValueCallback cb)
 Adds a SET_CONCRETE_REGISTER_VALUE callback.
 
TRITON_EXPORT void addCallback (triton::callbacks::symbolicSimplificationCallback cb)
 Adds a SYMBOLIC_SIMPLIFICATION callback.
 
TRITON_EXPORT void removeAllCallbacks (void)
 Removes all recorded callbacks.
 
TRITON_EXPORT void removeCallback (triton::callbacks::getConcreteMemoryValueCallback cb)
 Deletes a GET_CONCRETE_MEMORY_VALUE callback.
 
TRITON_EXPORT void removeCallback (triton::callbacks::getConcreteRegisterValueCallback cb)
 Deletes a GET_CONCRETE_REGISTER_VALUE callback.
 
TRITON_EXPORT void removeCallback (triton::callbacks::setConcreteMemoryValueCallback cb)
 Deletes a SET_CONCRETE_MEMORY_VALUE callback.
 
TRITON_EXPORT void removeCallback (triton::callbacks::setConcreteRegisterValueCallback cb)
 Deletes a SET_CONCRETE_REGISTER_VALUE callback.
 
TRITON_EXPORT void removeCallback (triton::callbacks::symbolicSimplificationCallback cb)
 Deletes a SYMBOLIC_SIMPLIFICATION callback.
 
TRITON_EXPORT triton::ast::SharedAbstractNode processCallbacks (triton::callbacks::callback_e kind, triton::ast::SharedAbstractNode node) const
 Processes callbacks according to the kind and the C++ polymorphism.
 
TRITON_EXPORT void processCallbacks (triton::callbacks::callback_e kind, const triton::arch::MemoryAccess &mem) const
 Processes callbacks according to the kind and the C++ polymorphism.
 
TRITON_EXPORT void processCallbacks (triton::callbacks::callback_e kind, const triton::arch::MemoryAccess &mem, const triton::uint512 &value) const
 Processes callbacks according to the kind and the C++ polymorphism.
 
TRITON_EXPORT void processCallbacks (triton::callbacks::callback_e kind, const triton::arch::Register &reg) const
 Processes callbacks according to the kind and the C++ polymorphism.
 
TRITON_EXPORT void processCallbacks (triton::callbacks::callback_e kind, const triton::arch::Register &reg, const triton::uint512 &value) const
 Processes callbacks according to the kind and the C++ polymorphism.
 

Public Attributes

bool isDefined
 True if there is at least one callback defined.
 

Protected Member Functions

triton::usize countCallbacks (void) const
 Returns the number of callbacks recorded.
 

Protected Attributes

std::list< triton::callbacks::getConcreteMemoryValueCallbackgetConcreteMemoryValueCallbacks
 [c++] Callbacks for all concrete memory needs (LOAD).
 
std::list< triton::callbacks::getConcreteRegisterValueCallbackgetConcreteRegisterValueCallbacks
 [c++] Callbacks for all concrete register needs (GET).
 
std::list< triton::callbacks::setConcreteMemoryValueCallbacksetConcreteMemoryValueCallbacks
 [c++] Callbacks for all concrete memory needs (STORE).
 
std::list< triton::callbacks::setConcreteRegisterValueCallbacksetConcreteRegisterValueCallbacks
 [c++] Callbacks for all concrete register needs (PUT).
 
std::list< triton::callbacks::symbolicSimplificationCallbacksymbolicSimplificationCallbacks
 [c++] Callbacks for all symbolic simplifications.
 

Detailed Description

The callbacks class.

Definition at line 86 of file callbacks.hpp.


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