casacore
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
casacore::ArrayInitPolicy Class Reference

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. More...
 
static ArrayInitPolicy const INIT
 Initialize all elements in the array with the default value. More...
 

Private Member Functions

 ArrayInitPolicy (bool v)
 

Private Attributes

Bool init
 

Detailed Description

A global enum used by some Array/Block constructors.

Synopsis

ArrayInitPolicy is used in functions where an array is allocated/resized.

Definition at line 57 of file Allocator.h.

Constructor & Destructor Documentation

◆ ArrayInitPolicy()

casacore::ArrayInitPolicy::ArrayInitPolicy ( bool  v)
inlineexplicitprivate

Definition at line 71 of file Allocator.h.

Member Function Documentation

◆ operator!=()

Bool casacore::ArrayInitPolicy::operator!= ( ArrayInitPolicy const &  other)
inline

Definition at line 66 of file Allocator.h.

References init.

◆ operator==()

Bool casacore::ArrayInitPolicy::operator== ( ArrayInitPolicy const &  other)
inline

Definition at line 63 of file Allocator.h.

References init.

Member Data Documentation

◆ INIT

ArrayInitPolicy const casacore::ArrayInitPolicy::INIT
static

◆ init

Bool casacore::ArrayInitPolicy::init
private

Definition at line 70 of file Allocator.h.

Referenced by operator!=(), and operator==().

◆ NO_INIT

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< casacore::String >::Block(), casacore::Array< casacore::String >::defaultArrayInitPolicy(), casacore::Block< casacore::String >::operator=(), casacore::Block< casacore::String >::remove(), and casacore::Block< casacore::String >::resize().


The documentation for this class was generated from the following file: