EleFits  5.3.0
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
RecordVec< T > Class Template Reference

#include <RecordVec.h>

Detailed 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

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

Public Attributes

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

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