EleFits  4.0.0
A modern C++ API on top of CFitsIO
Public Member Functions | List of all members
Euclid::Fits::VecRaster< T, n > Class Template Reference

#include <Raster.h>

Class Description

template<typename T, long n = 2>
class Euclid::Fits::VecRaster< T, n >

Copy constructor.

Examples
EleFitsTutorial.cpp.
Inheritance diagram for Euclid::Fits::VecRaster< T, n >:
[legend]

Public Member Functions

virtual ~VecRaster ()=default
 Destructor.
 
 VecRaster (const VecRaster &)=default
 Copy constructor.
 
 VecRaster (VecRaster &&)=default
 Move constructor.
 
VecRasteroperator= (const VecRaster &)=default
 Copy assignment.
 
VecRasteroperator= (VecRaster &&)=default
 Move assignment.
 
 VecRaster (Position< n > shape, std::vector< std::decay_t< T >> vec)
 Create a raster with given shape and values. More...
 
 VecRaster (Position< n > shape)
 Create a VecRaster with given shape and empty data.
 
 VecRaster ()=default
 Create an empty VecRaster.
 
const std::vector< std::decay_t< T > > & vector () const
 Const reference to the vector.
 
std::vector< std::decay_t< T > > & moveTo (std::vector< std::decay_t< T >> &destination)
 Move the vector outside the raster. More...
 
- Public Member Functions inherited from Euclid::Fits::Raster< T, 2 >
virtual ~Raster ()=default
 Destructor.
 
 Raster (const Raster< T, n > &rhs)=default
 Copy constructor.
 
 Raster (Raster< T, n > &&rhs)=default
 Move constructor.
 
 Raster (Position< n > rasterShape)
 Create a raster with given shape.
 
Raster< T, n > & operator= (const Raster< T, n > &rhs)=default
 Copy assignment.
 
Raster< T, n > & operator= (Raster< T, n > &&rhs)=default
 Move assignment.
 
const Position< n > & shape () const
 Get the raster shape.
 
Region< n > domain () const
 Get raster domain. More...
 
long dimension () const
 Dimension. More...
 
long size () const
 Number of pixels.
 
long length () const
 Length along given axis.
 
const T * data () const
 Const pointer to the first data element.
 
T * data ()
 Pointer to the first data element.
 
long index (const Position< n > &pos) const
 Raw index of a position.
 
const T & operator[] (const Position< n > &pos) const
 Pixel at given position.
 
T & operator[] (const Position< n > &pos)
 Pixel at given position.
 
const T & at (const Position< n > &pos) const
 Access the value at given position. More...
 
T & at (const Position< n > &pos)
 Access the value at given position. More...
 
const PtrRaster< const T, m > slice (const Region< n > &region) const
 Create a slice from a given region. More...
 
PtrRaster< T, m > slice (const Region< n > &region)
 Create a slice from a given region. More...
 
const PtrRaster< const T, n > section (long front, long back) const
 Create a section at given index. More...
 
PtrRaster< T, n > section (long front, long back)
 Create a section at given index. More...
 
const PtrRaster< const T, n==-1 ? -1 :n - 1 > section (long index) const
 Create a section at given index. More...
 
PtrRaster< T, n==-1 ? -1 :n - 1 > section (long index)
 Create a section at given index. More...
 
bool isContiguous (const Region< n > &region) const
 Check whether a region is made of contiguous values in memory. More...
 

Additional Inherited Members

- Public Types inherited from Euclid::Fits::Raster< T, 2 >
using Value = T
 The pixel value type.
 
- Static Public Attributes inherited from Euclid::Fits::Raster< T, 2 >
static constexpr long Dim
 The dimension template parameter. More...
 

The documentation for this class was generated from the following file:
std::move
T move(T... args)
Euclid::Fits::Raster< T, 2 >::shape
const Position< n > & shape() const
Get the raster shape.
std::vector
STL class.
Euclid::Fits::Raster< T, 2 >::data
const T * data() const
Const pointer to the first data element.
Euclid::Fits::VecRaster::VecRaster
VecRaster()=default
Create an empty VecRaster.