EleFits  4.0.1
A modern C++ API on top of CFitsIO
Public Member Functions | Public Attributes | List of all members
Euclid::Fits::RecordVec< T > Class Template Reference

#include <RecordVec.h>

Class Description

template<typename T>
class Euclid::Fits::RecordVec< T >

A vector of records with find and conversion services.

Template Parameters
TThe value type of the records

Alias RecordSeq is provided for T = VariantValue.

Public Member Functions

 ~RecordVec ()=default
 Destructor.
 
 RecordVec (std::size_t size)
 Create a RecordVec with given number of records.
 
 RecordVec (const std::vector< Record< T >> &records)
 Create a RecordVec from a vector of records.
 
 RecordVec (std::vector< Record< T >> &&records)
 Create a RecordVec from a vector of records.
 
template<typename... Ts>
 RecordVec (const Record< Ts > &... records)
 Create a RecordVec from a list of records.
 
std::vector< Record< T > >::const_iterator begin () const
 Get an iterator to the beginning.
 
std::vector< Record< T > >::const_iterator end () const
 Get an iterator to the end.
 
std::vector< Record< T > >::iterator begin ()
 
std::vector< Record< T > >::iterator end ()
 
const Record< T > & operator[] (const std::string &keyword) const
 Find the first record with given keyword.
 
Record< T > & operator[] (const std::string &keyword)
 Find the first record with given keyword.
 
template<typename TValue >
Record< TValue > as (const std::string &keyword) const
 Find and cast the first record with given keyword. More...
 

Public Attributes

std::vector< Record< T > > vector
 The records.
 

The documentation for this class was generated from the following file:
Euclid::Fits::RecordSeq
RecordVec< VariantValue > RecordSeq
A sequence of records of any type.
Definition: RecordVec.h:131