libTriton  version 0.9 build 1502
Public Member Functions | 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::callback_e kind, ComparableFunctor< void(triton::API &, const triton::arch::MemoryAccess &)> cb)
 Adds a GET_CONCRETE_MEMORY_VALUE callback.
 
TRITON_EXPORT void addCallback (triton::callbacks::callback_e kind, ComparableFunctor< void(triton::API &, const triton::arch::Register &)> cb)
 Adds a GET_CONCRETE_REGISTER_VALUE callback.
 
TRITON_EXPORT void addCallback (triton::callbacks::callback_e kind, ComparableFunctor< void(triton::API &, const triton::arch::MemoryAccess &, const triton::uint512 &value)> cb)
 Adds a SET_CONCRETE_MEMORY_VALUE callback.
 
TRITON_EXPORT void addCallback (triton::callbacks::callback_e kind, ComparableFunctor< void(triton::API &, const triton::arch::Register &, const triton::uint512 &value)> cb)
 Adds a SET_CONCRETE_REGISTER_VALUE callback.
 
TRITON_EXPORT void addCallback (triton::callbacks::callback_e kind, ComparableFunctor< triton::ast::SharedAbstractNode(triton::API &, const triton::ast::SharedAbstractNode &)> cb)
 Adds a SYMBOLIC_SIMPLIFICATION callback.
 
TRITON_EXPORT void clearCallbacks (void)
 Clears recorded callbacks.
 
TRITON_EXPORT void removeCallback (triton::callbacks::callback_e kind, ComparableFunctor< void(triton::API &, const triton::arch::MemoryAccess &)> cb)
 Deletes a GET_CONCRETE_MEMORY_VALUE callback.
 
TRITON_EXPORT void removeCallback (triton::callbacks::callback_e kind, ComparableFunctor< void(triton::API &, const triton::arch::Register &)> cb)
 Deletes a GET_CONCRETE_REGISTER_VALUE callback.
 
TRITON_EXPORT void removeCallback (triton::callbacks::callback_e kind, ComparableFunctor< void(triton::API &, const triton::arch::MemoryAccess &, const triton::uint512 &value)> cb)
 Deletes a SET_CONCRETE_MEMORY_VALUE callback.
 
TRITON_EXPORT void removeCallback (triton::callbacks::callback_e kind, ComparableFunctor< void(triton::API &, const triton::arch::Register &, const triton::uint512 &value)> cb)
 Deletes a SET_CONCRETE_REGISTER_VALUE callback.
 
TRITON_EXPORT void removeCallback (triton::callbacks::callback_e kind, ComparableFunctor< triton::ast::SharedAbstractNode(triton::API &, const triton::ast::SharedAbstractNode &)> cb)
 Deletes a SYMBOLIC_SIMPLIFICATION callback.
 
TRITON_EXPORT triton::ast::SharedAbstractNode processCallbacks (triton::callbacks::callback_e kind, triton::ast::SharedAbstractNode node)
 Processes callbacks according to the kind and the C++ polymorphism.
 
TRITON_EXPORT void processCallbacks (triton::callbacks::callback_e kind, const triton::arch::MemoryAccess &mem)
 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)
 Processes callbacks according to the kind and the C++ polymorphism.
 
TRITON_EXPORT void processCallbacks (triton::callbacks::callback_e kind, const triton::arch::Register &reg)
 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)
 Processes callbacks according to the kind and the C++ polymorphism.
 
TRITON_EXPORT bool isDefined (triton::callbacks::callback_e kind) const
 Returns true if the callback is defined.
 
TRITON_EXPORT bool isDefined (void) const
 Returns true if at least one callback is 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 79 of file callbacks.hpp.


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