Class PixelArrayBase

Inheritance Relationships

Derived Type

Class Documentation

class PixelArrayBase

Abstract base class for an array of pixel values

For writing pixels out with the C-based cfitsio API, it’s helpful to have a type-agnostic holder of the pixel values (because although we can template on the array type, the output type can be configured at run-time, which means we can’t use ndarray::Array as the carrier). This is essentially a C++-ish void* array.

Subclassed by lsst::afw::fits::detail::PixelArray< T >

Public Functions

virtual ~PixelArrayBase()
virtual void const *getData() const = 0

Return a void* array of the pixels.

std::size_t getNumElements() const

Return the number of pixels.

Protected Functions

PixelArrayBase(std::size_t num)