EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
#include <RecordVec.h>
A vector of records with find and conversion services.
T | The 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. | |