|
FairRoot/PandaRoot
|
#include <assert.h>#include <cstdlib>#include <cstring>Go to the source code of this file.
Namespaces | |
| PndCAArrayInternal | |
| PndCAInternal | |
Macros | |
| #define | ALIHLTARRAY_STATIC_ASSERT_CONCAT_HELPER(a, b) a##b |
| #define | ALIHLTARRAY_STATIC_ASSERT_CONCAT(a, b) ALIHLTARRAY_STATIC_ASSERT_CONCAT_HELPER(a, b) |
| #define | ALIHLTARRAY_STATIC_ASSERT_NC(cond, msg) |
| #define | ALIHLTARRAY_STATIC_ASSERT(cond, msg) ALIHLTARRAY_STATIC_ASSERT_NC(cond, msg); (void) Error_##msg |
| #define | BOUNDS_CHECK(x, y) |
Enumerations | |
| enum | { PndCAFullyCacheLineAligned = -1 } |
This file contains the classes PndCAResizableArray and PndCAFixedArray with PndCAArray as base class. It's a drop-in replacement for C-Arrays. It makes it easy to use variable sized arrays on the stack and pass arrays as arguments to other functions with an optional bounds-checking enabled for the whole time.
Definition in file PndCAArray.h.
| #define ALIHLTARRAY_STATIC_ASSERT | ( | cond, | |
| msg | |||
| ) | ALIHLTARRAY_STATIC_ASSERT_NC(cond, msg); (void) Error_##msg |
Definition at line 71 of file PndCAArray.h.
Referenced by PndCAResizableArray< T, Dim, alignment >::PndCAResizableArray(), and PndCAResizableArray< T, Dim, alignment >::Resize().
| #define ALIHLTARRAY_STATIC_ASSERT_CONCAT | ( | a, | |
| b | |||
| ) | ALIHLTARRAY_STATIC_ASSERT_CONCAT_HELPER(a, b) |
Definition at line 67 of file PndCAArray.h.
Definition at line 66 of file PndCAArray.h.
| #define ALIHLTARRAY_STATIC_ASSERT_NC | ( | cond, | |
| msg | |||
| ) |
Definition at line 68 of file PndCAArray.h.
Definition at line 118 of file PndCAArray.h.
Referenced by PndCAInternal::ArrayBase< T, 2 >::operator()(), PndCAInternal::ArrayBase< T, 3 >::operator()(), PndCAArray< PndCAInternal::TypeForAlignmentHelper< T, alignment >::Type, Size::Dim >::operator*(), PndCAInternal::ArrayBase< T, 1 >::operator[](), PndCAInternal::ArrayBase< T, 2 >::operator[](), and PndCAInternal::ArrayBase< T, 3 >::operator[]().
| anonymous enum |
| Enumerator | |
|---|---|
| PndCAFullyCacheLineAligned | |
Definition at line 56 of file PndCAArray.h.
1.8.5