libfoedus-core
FOEDUS Core Library
log_type_invoke.cpp File Reference
#include "foedus/log/log_type_invoke.hpp"
#include <iostream>
#include "foedus/log/log_type.xmacro"
Include dependency graph for log_type_invoke.cpp:

Go to the source code of this file.

Namespaces

 foedus
 Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
 
 foedus::log
 Log Manager, which writes out transactional logs.
 

Macros

#define X(a, b, c)   case a: return reinterpret_cast< c* >(buffer)->apply_engine(context);
 
#define X(a, b, c)
 
#define X(a, b, c)   case a: o << *reinterpret_cast< const c* >(buffer); break;
 

Functions

void foedus::log::invoke_apply_engine (void *log_buffer, thread::Thread *context)
 Invokes the apply logic for an engine-wide log type. More...
 
void foedus::log::invoke_apply_storage (void *log_buffer, Engine *engine, storage::StorageId id)
 Invokes the apply logic for a storage-wide log type. More...
 
void foedus::log::invoke_ostream (const void *buffer, std::ostream *ptr)
 Invokes the ostream operator for the given log type defined in log_type.xmacro. More...
 

Macro Definition Documentation

#define X (   a,
  b,
 
)    case a: return reinterpret_cast< c* >(buffer)->apply_engine(context);

Definition at line 55 of file log_type_invoke.cpp.

#define X (   a,
  b,
 
)
Value:
case a: \
reinterpret_cast< c* >(buffer)->apply_storage(engine, storage_id); return;

Definition at line 55 of file log_type_invoke.cpp.

#define X (   a,
  b,
 
)    case a: o << *reinterpret_cast< const c* >(buffer); break;

Definition at line 55 of file log_type_invoke.cpp.