Macros | Functions
ceres/macros.h File Reference
#include <cstddef>
Include dependency graph for ceres/macros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define arraysize(array)   (sizeof(ArraySizeHelper(array)))
 
#define CERES_ARRAYSIZE(a)
 
#define CERES_DISALLOW_COPY_AND_ASSIGN(TypeName)
 
#define CERES_DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName)
 
#define CERES_MUST_USE_RESULT
 

Functions

template<typename T , size_t N>
char(& ArraySizeHelper (const T(&array)[N]))[N]
 
template<typename T , size_t N>
char(& ArraySizeHelper (T(&array)[N]))[N]
 

Macro Definition Documentation

◆ arraysize

#define arraysize (   array)    (sizeof(ArraySizeHelper(array)))

Definition at line 91 of file ceres/macros.h.

◆ CERES_ARRAYSIZE

#define CERES_ARRAYSIZE (   a)
Value:
((sizeof(a) / sizeof(*(a))) / \
static_cast<size_t>(!(sizeof(a) % sizeof(*(a)))))

Definition at line 138 of file ceres/macros.h.

◆ CERES_DISALLOW_COPY_AND_ASSIGN

#define CERES_DISALLOW_COPY_AND_ASSIGN (   TypeName)
Value:
TypeName(const TypeName&); \
void operator=(const TypeName&)

Definition at line 52 of file ceres/macros.h.

◆ CERES_DISALLOW_IMPLICIT_CONSTRUCTORS

#define CERES_DISALLOW_IMPLICIT_CONSTRUCTORS (   TypeName)
Value:
TypeName(); \
CERES_DISALLOW_COPY_AND_ASSIGN(TypeName)

Definition at line 62 of file ceres/macros.h.

◆ CERES_MUST_USE_RESULT

#define CERES_MUST_USE_RESULT

Definition at line 152 of file ceres/macros.h.

Function Documentation

◆ ArraySizeHelper() [1/2]

template<typename T , size_t N>
char(& ArraySizeHelper ( const T(&)  array[N]) )[N]

◆ ArraySizeHelper() [2/2]

template<typename T , size_t N>
char(& ArraySizeHelper ( T(&)  array[N]) )[N]
a
ArrayXXi a
Definition: Array_initializer_list_23_cxx11.cpp:1


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:19