OmniSciDB  04ee39c94c
AbstractBufferMgr.h File Reference
#include <boost/preprocessor.hpp>
#include "../Shared/types.h"
#include "AbstractBuffer.h"
+ Include dependency graph for AbstractBufferMgr.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define X_DEFINE_ENUM_WITH_STRING_CONVERSIONS_TOSTRING_CASE(r, data, elem)
 
#define DEFINE_ENUM_WITH_STRING_CONVERSIONS(name, enumerators)
 

Detailed Description

Macro Definition Documentation

◆ DEFINE_ENUM_WITH_STRING_CONVERSIONS

#define DEFINE_ENUM_WITH_STRING_CONVERSIONS (   name,
  enumerators 
)
Value:
enum name { BOOST_PP_SEQ_ENUM(enumerators) }; \
\
inline const char* ToString(name v) { \
switch (v) { \
BOOST_PP_SEQ_FOR_EACH( \
default: \
return "[Unknown " BOOST_PP_STRINGIZE(name) "]"; \
} \
}
T v(const TargetValue &r)
#define X_DEFINE_ENUM_WITH_STRING_CONVERSIONS_TOSTRING_CASE(r, data, elem)

Definition at line 33 of file AbstractBufferMgr.h.

◆ X_DEFINE_ENUM_WITH_STRING_CONVERSIONS_TOSTRING_CASE

#define X_DEFINE_ENUM_WITH_STRING_CONVERSIONS_TOSTRING_CASE (   r,
  data,
  elem 
)
Value:
case elem: \
return BOOST_PP_STRINGIZE(elem);

Definition at line 29 of file AbstractBufferMgr.h.