A global enum used by some Array/Block constructors. More...
#include <Allocator.h>
Public Member Functions | |
Bool | operator== (ArrayInitPolicy const &other) |
Bool | operator!= (ArrayInitPolicy const &other) |
Static Public Attributes | |
static ArrayInitPolicy const | NO_INIT |
Don't initialize elements in the array. | |
static ArrayInitPolicy const | INIT |
Initialize all elements in the array with the default value. | |
Private Member Functions | |
ArrayInitPolicy (bool v) | |
Private Attributes | |
Bool | init |
A global enum used by some Array/Block constructors.
ArrayInitPolicy is used in functions where an array is allocated/resized.
Definition at line 57 of file Allocator.h.
casacore::ArrayInitPolicy::ArrayInitPolicy | ( | bool | v | ) | [inline, explicit, private] |
Definition at line 71 of file Allocator.h.
Bool casacore::ArrayInitPolicy::operator!= | ( | ArrayInitPolicy const & | other | ) | [inline] |
Definition at line 66 of file Allocator.h.
References init.
Bool casacore::ArrayInitPolicy::operator== | ( | ArrayInitPolicy const & | other | ) | [inline] |
Definition at line 63 of file Allocator.h.
References init.
Bool casacore::ArrayInitPolicy::init [private] |
Definition at line 70 of file Allocator.h.
Referenced by operator!=(), and operator==().
ArrayInitPolicy const casacore::ArrayInitPolicy::INIT [static] |
Initialize all elements in the array with the default value.
Definition at line 62 of file Allocator.h.
Referenced by casacore::Block< RecordFieldPtr< uChar > >::Block(), casacore::Array< ArgType >::defaultArrayInitPolicy(), casacore::Block< RecordFieldPtr< uChar > >::init(), casacore::Block< RecordFieldPtr< uChar > >::remove(), and casacore::Block< RecordFieldPtr< uChar > >::resize().
ArrayInitPolicy const casacore::ArrayInitPolicy::NO_INIT [static] |
Don't initialize elements in the array.
(The array will be explicitly filled with values other than the default value.)
Definition at line 60 of file Allocator.h.
Referenced by casacore::Block< RecordFieldPtr< uChar > >::Block(), casacore::Array< ArgType >::defaultArrayInitPolicy(), casacore::Block< RecordFieldPtr< uChar > >::operator=(), casacore::Block< RecordFieldPtr< uChar > >::remove(), and casacore::Block< RecordFieldPtr< uChar > >::resize().