18 #ifndef FOEDUS_PROC_PROC_MANAGER_HPP_
19 #define FOEDUS_PROC_PROC_MANAGER_HPP_
107 #endif // FOEDUS_PROC_PROC_MANAGER_HPP_
The pure-virtual interface to initialize/uninitialize non-trivial resources.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
ErrorStack emulated_register(const ProcAndName &proc_and_name)
Register a function pointer as a user procedure in all SOCs, assuming that child SOCs are of kChildEm...
Forward declarations of classes in root package.
Brings error stacktrace information as return value of functions.
Procedure manager, which maintains the list of system/user procedures.
ErrorStack uninitialize() override
An idempotent method to release all resources of this object, if any.
std::string describe_registered_procs() const
For debug uses only.
ProcManager & operator=(const ProcManager &)=delete
bool is_initialized() const override
Returns whether the object has been already initialized or not.
#define CXX11_FINAL
Used in public headers in place of "final" of C++11.
Database engine object that holds all resources and provides APIs.
ErrorStack initialize() override
Acquires resources in this object, usually called right after constructor.
Typedefs of ID types used in procedure package.
std::pair< ProcName, Proc > ProcAndName
const std::vector< ProcAndName > & get_pre_registered_procedures() const
Returns procedures given to pre_register()
ErrorStack pre_register(const ProcAndName &proc_and_name)
Pre-register a function pointer as a user procedure so that all SOCs will have it when they are forke...
#define CXX11_OVERRIDE
Used in public headers in place of "override" of C++11.
#define CXX11_FUNC_DELETE
Used in public headers in place of " = delete" of C++11.
ErrorStack get_proc(const ProcName &name, Proc *out)
Returns the function pointer of the specified procedure.
ErrorStack local_register(const ProcAndName &proc_and_name)
Register a function pointer as a user procedure in the current SOC.
ErrorStack(* Proc)(const ProcArguments &args)
A function pointer of a user/system stored procedure.
Pimpl object of ProcManager.
Forward declarations of classes in proc package.
ErrorStack pre_register(const ProcName &name, Proc proc)
Just a synonym.