StaticAssert.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ei_static_assert< condition >
struct  ei_static_assert< true >

Defines

#define EIGEN_PREDICATE_SAME_MATRIX_SIZE(TYPE0, TYPE1)
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)   if (Eigen::ei_static_assert<CONDITION ? true : false>::MSG) {}
#define EIGEN_STATIC_ASSERT_FIXED_SIZE(TYPE)
#define EIGEN_STATIC_ASSERT_MATRIX_SPECIFIC_SIZE(TYPE, ROWS, COLS)
#define EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE(TYPE0, TYPE1)
#define EIGEN_STATIC_ASSERT_SAME_VECTOR_SIZE(TYPE0, TYPE1)
#define EIGEN_STATIC_ASSERT_VECTOR_ONLY(TYPE)
#define EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(TYPE, SIZE)

Define Documentation

#define EIGEN_PREDICATE_SAME_MATRIX_SIZE ( TYPE0,
TYPE1   ) 
Value:
((int(TYPE0::RowsAtCompileTime)==Eigen::Dynamic \
    || int(TYPE1::RowsAtCompileTime)==Eigen::Dynamic \
    || int(TYPE0::RowsAtCompileTime)==int(TYPE1::RowsAtCompileTime)) \
   && (int(TYPE0::ColsAtCompileTime)==Eigen::Dynamic \
    || int(TYPE1::ColsAtCompileTime)==Eigen::Dynamic \
    || int(TYPE0::ColsAtCompileTime)==int(TYPE1::ColsAtCompileTime)))

Definition at line 135 of file StaticAssert.h.

#define EIGEN_STATIC_ASSERT ( CONDITION,
MSG   )     if (Eigen::ei_static_assert<CONDITION ? true : false>::MSG) {}

Definition at line 93 of file StaticAssert.h.

#define EIGEN_STATIC_ASSERT_FIXED_SIZE ( TYPE   ) 
Value:
EIGEN_STATIC_ASSERT(TYPE::SizeAtCompileTime!=Eigen::Dynamic, \
                      YOU_CALLED_A_FIXED_SIZE_METHOD_ON_A_DYNAMIC_SIZE_MATRIX_OR_VECTOR)

Definition at line 113 of file StaticAssert.h.

#define EIGEN_STATIC_ASSERT_MATRIX_SPECIFIC_SIZE ( TYPE,
ROWS,
COLS   ) 
Value:
EIGEN_STATIC_ASSERT(TYPE::RowsAtCompileTime==ROWS && TYPE::ColsAtCompileTime==COLS, \
                      THIS_METHOD_IS_ONLY_FOR_MATRICES_OF_A_SPECIFIC_SIZE)

Definition at line 123 of file StaticAssert.h.

#define EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE ( TYPE0,
TYPE1   ) 
Value:
EIGEN_STATIC_ASSERT( \
     EIGEN_PREDICATE_SAME_MATRIX_SIZE(TYPE0,TYPE1),\
    YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES)

Definition at line 144 of file StaticAssert.h.

#define EIGEN_STATIC_ASSERT_SAME_VECTOR_SIZE ( TYPE0,
TYPE1   ) 
Value:
EIGEN_STATIC_ASSERT( \
      (int(TYPE0::SizeAtCompileTime)==Eigen::Dynamic \
    || int(TYPE1::SizeAtCompileTime)==Eigen::Dynamic \
    || int(TYPE0::SizeAtCompileTime)==int(TYPE1::SizeAtCompileTime)),\
    YOU_MIXED_VECTORS_OF_DIFFERENT_SIZES)

Definition at line 128 of file StaticAssert.h.

#define EIGEN_STATIC_ASSERT_VECTOR_ONLY ( TYPE   ) 
Value:
EIGEN_STATIC_ASSERT(TYPE::IsVectorAtCompileTime, \
                      YOU_TRIED_CALLING_A_VECTOR_METHOD_ON_A_MATRIX)

Definition at line 108 of file StaticAssert.h.

#define EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE ( TYPE,
SIZE   ) 
Value:
EIGEN_STATIC_ASSERT(TYPE::IsVectorAtCompileTime && TYPE::SizeAtCompileTime==SIZE, \
                      THIS_METHOD_IS_ONLY_FOR_VECTORS_OF_A_SPECIFIC_SIZE)

Definition at line 118 of file StaticAssert.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:20:46 2013