lsst.afw  21.0.0-46-g27369044f+532d44eec1
Public Member Functions | Static Public Member Functions | List of all members
lsst::afw::table::PersistableObjectColumnReader< T, Setter > Class Template Reference
Inheritance diagram for lsst::afw::table::PersistableObjectColumnReader< T, Setter >:
lsst::afw::table::io::FitsColumnReader

Public Member Functions

 PersistableObjectColumnReader (int column)
 
void readCell (BaseRecord &record, std::size_t row, fits::Fits &fits, std::shared_ptr< io::InputArchive > const &archive) const override
 Read values from a single row. More...
 
virtual void prepRead (std::size_t firstRow, std::size_t nRows, fits::Fits &fits)
 Optionally read ahead and cache values from multiple rows. More...
 

Static Public Member Functions

static void setup (std::string const &name, io::FitsSchemaInputMapper &mapper)
 

Detailed Description

template<typename T, void(ExposureRecord::*)(std::shared_ptr< T const >) Setter>
class lsst::afw::table::PersistableObjectColumnReader< T, Setter >

Definition at line 255 of file Exposure.cc.

Constructor & Destructor Documentation

◆ PersistableObjectColumnReader()

template<typename T , void(ExposureRecord::*)(std::shared_ptr< T const >) Setter>
lsst::afw::table::PersistableObjectColumnReader< T, Setter >::PersistableObjectColumnReader ( int  column)
inline

Definition at line 268 of file Exposure.cc.

Member Function Documentation

◆ prepRead()

virtual void lsst::afw::table::io::FitsColumnReader::prepRead ( std::size_t  firstRow,
std::size_t  nRows,
fits::Fits fits 
)
inlinevirtualinherited

Optionally read ahead and cache values from multiple rows.

Subclasses are not required to implement this method; if they do, they should indicate to readCell that cached values should be used instead. Subclasses should not assume that prepRead will always be called, however.

Parameters
[in]firstRowIndex of the first row to read.
[in]nRowsNumber of rows to read.
[in]fitsFITS file manager object.

Definition at line 42 of file FitsSchemaInputMapper.h.

◆ readCell()

template<typename T , void(ExposureRecord::*)(std::shared_ptr< T const >) Setter>
void lsst::afw::table::PersistableObjectColumnReader< T, Setter >::readCell ( BaseRecord record,
std::size_t  row,
fits::Fits fits,
std::shared_ptr< io::InputArchive > const &  archive 
) const
inlineoverridevirtual

Read values from a single row.

Parameters
[in,out]recordRecord to populate.
[in]rowIndex of the row to read from.
[in]fitsFITS file manager object.
[in]archiveArchive holding persisted objects, loaded from other HDUs. May be null.

Implements lsst::afw::table::io::FitsColumnReader.

Definition at line 270 of file Exposure.cc.

◆ setup()

template<typename T , void(ExposureRecord::*)(std::shared_ptr< T const >) Setter>
static void lsst::afw::table::PersistableObjectColumnReader< T, Setter >::setup ( std::string const &  name,
io::FitsSchemaInputMapper mapper 
)
inlinestatic

Definition at line 257 of file Exposure.cc.


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