ergo
common.h File Reference
#include <cassert>

Go to the source code of this file.

Classes

struct  CompileTimeChecker< bool >
 Class template for use in static asserts. More...
 
struct  CompileTimeChecker< false >
 Specialization of class template for use in static asserts. More...
 
struct  Ordering_row_wise
 Struct for access to matrix elements stored in row wise order. More...
 
struct  Ordering_row_wise::Get< T_row, T_col, T_rows, T_cols >
 
struct  Ordering_col_wise
 Struct for access to matrix elements stored in column wise order. More...
 
struct  Ordering_col_wise::Get< T_row, T_col, T_rows, T_cols >
 

Macros

#define ALWAYS_INLINE   __attribute__((__always_inline__))
 
#define STATIC_ASSERT_ALWAYS(expr, msg)
 
#define STATIC_ASSERT_DEBUG(expr, msg)
 

Macro Definition Documentation

#define ALWAYS_INLINE   __attribute__((__always_inline__))
#define STATIC_ASSERT_ALWAYS (   expr,
  msg 
)
Value:
{ \
class ERROR_##msg {}; \
(CompileTimeChecker<(expr) != 0>(ERROR_##msg())); \
}
Class template for use in static asserts.
Definition: common.h:40
#define STATIC_ASSERT_DEBUG (   expr,
  msg 
)