EleFits  5.0.0
A modern C++ API on top of CFITSIO
List of all members
DataContainerHolder< T, TContainer > Class Template Reference

#include <DataContainer.h>

Detailed Description

template<typename T, typename TContainer>
class Euclid::Fits::DataContainerHolder< T, TContainer >

A holder of any contiguous container specified by a size and data pointer.

The class can be specialized for any container, in which case it should satisfy the SizedData requirements.

Satisfies SizedData requirements
A contiguous data holder is some class which stores or points to some data contiguous in memory as a public or protected member TContainer m_container, and implements the following methods:
  • Default, copy and move constructors;
  • Constructor from a size;
  • Constructor from an iterator pair;
  • Implicit constructor from an initialization list;
  • size_type size() const;
  • inline const T* data() const.

Public Member Functions

Construction
 DataContainerHolder (std::size_t size=0)
 Default or size-based constructor.
 
template<typename TIterator >
 DataContainerHolder (TIterator begin, TIterator end)
 Iterator-based constructor.
 
 DataContainerHolder (std::initializer_list< T > values)
 Initialization list-based constructor.
 
template<typename... Ts>
 DataContainerHolder (Ts &&... args)
 Forwarding constructor.
 
Properties
std::size_t size () const
 Get the number of elements.
 
Element access
const T * data () const
 Access the raw data.
 

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