|
casacore
|
Array class for which the type is determined only at runtime. More...
#include <MorphingArray.h>
Public Member Functions | |
| MorphingArray () noexcept=default | |
| template<typename T> | |
| MorphingArray (size_t size) | |
| ~MorphingArray () noexcept | |
| MorphingArray (const MorphingArray &)=delete | |
| MorphingArray & | operator= (const MorphingArray &)=delete |
| MorphingArray (MorphingArray &&other) noexcept | |
| MorphingArray & | operator= (MorphingArray &&other) noexcept |
| template<typename T> | |
| void | Resize (size_t new_size) |
Make sure that the array can hold as least the specified number of elements of type T. | |
| template<typename T> | |
| T * | Data () |
| template<typename T> | |
| const T * | Data () const |
| size_t | Size () const |
Private Member Functions | |
| template<typename T> | |
| void | Allocate () |
Private Attributes | |
| void * | data_ |
| size_t | size_ |
Array class for which the type is determined only at runtime.
It handles run-time allocation and alignment of the type. It simplifies buffer allocation in the StokesIStManColumn class.
Once the array is initialized using Resize(), the user must make sure its type no longer changes.
Definition at line 17 of file MorphingArray.h.
|
defaultnoexcept |
Referenced by MorphingArray(), MorphingArray(), MorphingArray(), operator=(), and operator=().
|
inline |
Definition at line 22 of file MorphingArray.h.
References Allocate(), MorphingArray(), and size_.
|
inlinenoexcept |
Definition at line 26 of file MorphingArray.h.
|
delete |
References MorphingArray().
|
inlinenoexcept |
Definition at line 31 of file MorphingArray.h.
References MorphingArray().
|
inlineprivate |
Definition at line 74 of file MorphingArray.h.
Referenced by MorphingArray(), and Resize().
|
inline |
Definition at line 59 of file MorphingArray.h.
References data_.
|
inline |
Definition at line 65 of file MorphingArray.h.
References data_.
|
delete |
References MorphingArray().
|
inlinenoexcept |
Definition at line 35 of file MorphingArray.h.
References data_, free(), MorphingArray(), and size_.
|
inline |
Make sure that the array can hold as least the specified number of elements of type T.
Definition at line 49 of file MorphingArray.h.
References Allocate(), data_, free(), and size_.
|
inline |
Definition at line 70 of file MorphingArray.h.
References size_.
|
private |
Definition at line 85 of file MorphingArray.h.
Referenced by Allocate(), Data(), Data(), operator=(), Resize(), and ~MorphingArray().
|
private |
Definition at line 86 of file MorphingArray.h.
Referenced by Allocate(), MorphingArray(), operator=(), Resize(), and Size().