18 #ifndef FOEDUS_LOG_LOG_TYPE_HPP_
19 #define FOEDUS_LOG_LOG_TYPE_HPP_
86 #define X(a, b, c) a = b,
130 #define X(a, b, c) case a: return true;
133 default:
return false;
153 template <
typename LOG_TYPE>
157 #define X(a, b, c) template <> inline CXX11_CONSTEXPR LogCode get_log_code< c >() { return a ; }
164 #endif // FOEDUS_LOG_LOG_TYPE_HPP_
LogCode
A unique identifier of all log types.
LogCodeKind
Represents the kind of log types.
Forward declarations of classes in log manager package.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
#define CXX11_CONSTEXPR
Used in public headers in place of "constexpr" of C++11.
Forward declarations of classes in array storage package.
constexpr LogCode get_log_code()
Returns LogCode for the log type defined in log_type.xmacro.
bool is_valid_log_type(LogCode code)
Returns if the LogCode value exists.
Forward declarations of classes in sequential storage package.
Forward declarations of classes in storage package.
LogCodeKind get_log_code_kind(LogCode code)
Returns the kind of the given log code.
const char * get_log_type_name(LogCode code)
Returns the names of LogCode enum defined in log_type.xmacro.
0 is reserved as a non-existing log type.
Forward declarations of classes in masstree storage package.
Forward declarations of classes in hash storage package.