LSSTApplications
17.0+115,17.0+12,17.0+65,18.0.0+14,18.0.0+29,18.0.0+6,18.0.0+70,18.0.0-4-g68ffd23+1,18.1.0-1-g0001055+9,18.1.0-1-g03d53ef+2,18.1.0-1-g1349e88+44,18.1.0-1-g2505f39+35,18.1.0-1-g5315e5e+2,18.1.0-1-g5e4b7ea+11,18.1.0-1-g7e8fceb+2,18.1.0-1-g85f8cd4+38,18.1.0-1-gd55f500+25,18.1.0-13-gfe4edf0b,18.1.0-14-g259bd21+9,18.1.0-14-gd04256d+35,18.1.0-2-g4903023+12,18.1.0-2-g5f9922c+13,18.1.0-2-gd3b74e5+3,18.1.0-2-gfbf3545+22,18.1.0-2-gfefb8b5+34,18.1.0-22-g936f6a9b4,18.1.0-23-g364d03b8,18.1.0-23-g52ab674,18.1.0-3-g52aa583+17,18.1.0-3-g8f4a2b1+32,18.1.0-3-gb69f684+30,18.1.0-4-g1ee41a7+2,18.1.0-5-g6dbcb01+31,18.1.0-5-gc286bb7+4,18.1.0-6-g857e778+4,18.1.0-7-gae09a6d+18,18.1.0-8-g42b2ab3+10,18.1.0-8-gc69d46e+17,18.1.0-9-gee19f03+2,w.2019.44
LSSTDataManagementBasePackage
|
Table of amplifier information (AmpInfoRecord records) More...
#include <AmpInfo.h>
Public Types | |
typedef AmpInfoRecord | Record |
typedef ColumnViewT< AmpInfoRecord > | ColumnView |
typedef CatalogT< Record > | Catalog |
typedef CatalogT< Record const > | ConstCatalog |
Public Member Functions | |
AmpInfoTable & | operator= (AmpInfoTable const &)=delete |
AmpInfoTable & | operator= (AmpInfoTable &&)=delete |
~AmpInfoTable () override | |
std::shared_ptr< AmpInfoTable > | clone () const |
Return a polymorphic deep copy of the table. More... | |
std::shared_ptr< AmpInfoRecord > | makeRecord () |
Default-construct an associated record. More... | |
std::shared_ptr< AmpInfoRecord > | copyRecord (BaseRecord const &other) |
Deep-copy a record, requiring that it have the same schema as this table. More... | |
std::shared_ptr< AmpInfoRecord > | copyRecord (BaseRecord const &other, SchemaMapper const &mapper) |
Deep-copy a record, requiring that it have the same schema as this table. More... | |
std::shared_ptr< daf::base::PropertyList > | getMetadata () const |
Return the flexible metadata associated with the table. May be null. More... | |
void | setMetadata (std::shared_ptr< daf::base::PropertyList > const &metadata) |
Set the flexible metadata associated with the table. May be null. More... | |
std::shared_ptr< daf::base::PropertyList > | popMetadata () |
Return the metadata and set the internal metadata to a null pointer. More... | |
Schema | getSchema () const |
Return the table's schema. More... | |
void | preallocate (std::size_t nRecords) |
Allocate contiguous space for new records in advance. More... | |
std::size_t | getBufferSize () const |
Return the number of additional records space has been already been allocated for. More... | |
T | shared_from_this (T... args) |
Static Public Member Functions | |
static std::shared_ptr< AmpInfoTable > | make (Schema const &schema) |
Construct a new table. More... | |
static Schema | makeMinimalSchema () |
Return a minimal schema for AmpInfo tables and records. More... | |
static bool | checkSchema (Schema const &other) |
Return true if the given schema is a valid AmpInfoTable schema. More... | |
static Key< std::string > | getNameKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getBBoxMinKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getBBoxExtentKey () |
Get keys for standard fields shared by all references. More... | |
static Key< double > | getGainKey () |
Get keys for standard fields shared by all references. More... | |
static Key< double > | getReadNoiseKey () |
Get keys for standard fields shared by all references. More... | |
static Key< double > | getSaturationKey () |
Get keys for standard fields shared by all references. More... | |
static Key< double > | getSuspectLevelKey () |
Get keys for standard fields shared by all references. More... | |
static Key< int > | getReadoutCornerKey () |
Get keys for standard fields shared by all references. More... | |
static Key< Array< double > > | getLinearityCoeffsKey () |
Get keys for standard fields shared by all references. More... | |
static Key< std::string > | getLinearityTypeKey () |
Get keys for standard fields shared by all references. More... | |
static Key< Flag > | getHasRawInfoKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getRawBBoxMinKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getRawBBoxExtentKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getRawDataBBoxMinKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getRawDataBBoxExtentKey () |
Get keys for standard fields shared by all references. More... | |
static Key< Flag > | getRawFlipXKey () |
Get keys for standard fields shared by all references. More... | |
static Key< Flag > | getRawFlipYKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getRawXYOffsetKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getRawHorizontalOverscanBBoxMinKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getRawHorizontalOverscanBBoxExtentKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getRawVerticalOverscanBBoxMinKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getRawVerticalOverscanBBoxExtentKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getRawPrescanBBoxMinKey () |
Get keys for standard fields shared by all references. More... | |
static PointKey< int > | getRawPrescanBBoxExtentKey () |
Get keys for standard fields shared by all references. More... | |
Static Public Attributes | |
static int const | MAX_NAME_LENGTH = 64 |
static int const | MAX_LINEARITY_COEFFS = 4 |
static int const | MAX_LINEARITY_TYPE_LENGTH = 64 |
static int | nRecordsPerBlock = 100 |
Number of records in each memory block. More... | |
Protected Member Functions | |
AmpInfoTable (Schema const &schema) | |
AmpInfoTable (AmpInfoTable const &other) | |
AmpInfoTable (AmpInfoTable &&other) | |
std::shared_ptr< BaseTable > | _clone () const override |
Clone implementation with noncovariant return types. More... | |
std::shared_ptr< BaseRecord > | _makeRecord () override |
Default-construct an associated record (protected implementation). More... | |
template<typename RecordT , typename ... Args> | |
std::shared_ptr< RecordT > | constructRecord (Args &&...args) |
Helper function that must be used by all _makeRecord overrides to actually construct records. More... | |
virtual void | handleAliasChange (std::string const &alias) |
Friends | |
class | io::FitsWriter |
Table of amplifier information (AmpInfoRecord records)
Here is a pictorial example showing the meaning of flipX and flipY:
CCD with 4 amps Desired assembled output Use these parameters --x x-- y | amp1 amp2 | | flipX flipY y y | amp1 False True | CCD image amp2 True True y y | amp3 False False | amp3 amp4 | | amp4 True False --x x-- ----------- x
typedef CatalogT<Record const> lsst::afw::table::AmpInfoTable::ConstCatalog |
|
overridedefault |
|
explicitprotected |
Definition at line 82 of file AmpInfo.cc.
|
explicitprotected |
Definition at line 84 of file AmpInfo.cc.
|
explicitprotected |
Definition at line 86 of file AmpInfo.cc.
|
overrideprotectedvirtual |
Clone implementation with noncovariant return types.
Reimplemented from lsst::afw::table::BaseTable.
Definition at line 162 of file AmpInfo.cc.
|
overrideprotectedvirtual |
Default-construct an associated record (protected implementation).
Reimplemented from lsst::afw::table::BaseTable.
Definition at line 166 of file AmpInfo.cc.
|
inlinestatic |
Return true if the given schema is a valid AmpInfoTable schema.
This will always be true if the given schema was originally constructed using makeMinimalSchema(), and will rarely be true otherwise.
Definition at line 226 of file AmpInfo.h.
|
inline |
Return a polymorphic deep copy of the table.
Derived classes should reimplement by static-casting the output of _clone to a pointer-to-derived to simulate covariant return types.
Cloning a table does not clone its associated records; the new table produced by clone() does not have any associated records.
Definition at line 269 of file AmpInfo.h.
|
protectedinherited |
Helper function that must be used by all _makeRecord overrides to actually construct records.
Use of this function is enforced by the fact that Record::ConstructionToken can only be created by BaseTable, and is only ever constructed inside this method.
This function expects Record subclasses to have a constructor signature of the form
Record(ConstructionToken const &, detail::RecordData &&, Args && ...);
Definition at line 227 of file BaseRecord.h.
|
inline |
Deep-copy a record, requiring that it have the same schema as this table.
Regardless of the type or associated table of the input record, the type of the output record will be the type associated with this table and the record instance will be associated with this table.
Allowing derived-class records to be constructed from base-class records could be considered a form of type-slicing, but because we already demand that all records be constructable from nothing but a table, this isn't anything new.
Derived classes should reimplement by static-casting the output of BaseTable::copyRecord to the appropriate BaseRecord subclass.
This is implemented using makeRecord and calling record.assign on the results; override those to change the behavior.
Definition at line 277 of file AmpInfo.h.
|
inline |
Deep-copy a record, requiring that it have the same schema as this table.
Regardless of the type or associated table of the input record, the type of the output record will be the type associated with this table and the record instance will be associated with this table.
Allowing derived-class records to be constructed from base-class records could be considered a form of type-slicing, but because we already demand that all records be constructable from nothing but a table, this isn't anything new.
Derived classes should reimplement by static-casting the output of BaseTable::copyRecord to the appropriate BaseRecord subclass.
This is implemented using makeRecord and calling record.assign on the results; override those to change the behavior.
Definition at line 282 of file AmpInfo.h.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inherited |
Return the number of additional records space has been already been allocated for.
Unlike std::vector::capacity, this does not factor in existing records in any way.
Definition at line 113 of file BaseTable.cc.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlineinherited |
Return the flexible metadata associated with the table. May be null.
Definition at line 79 of file BaseTable.h.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlineinherited |
|
inlinestatic |
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on AmpInfoRecord.
|
inlineprotectedvirtualinherited |
|
static |
Construct a new table.
[in] | schema | Schema that defines the fields, offsets, and record size for the table. |
Definition at line 73 of file AmpInfo.cc.
|
inlinestatic |
Return a minimal schema for AmpInfo tables and records.
The returned schema can and generally should be modified further, but many operations on AmpInfoRecords will assume that at least the fields provided by this routine are present.
|
inline |
Default-construct an associated record.
Derived classes should reimplement by static-casting the output of _makeRecord to the appropriate BaseRecord subclass to simulate covariant return types.
Definition at line 272 of file AmpInfo.h.
|
delete |
|
delete |
|
inlineinherited |
Return the metadata and set the internal metadata to a null pointer.
Definition at line 85 of file BaseTable.h.
|
inherited |
Allocate contiguous space for new records in advance.
If a contiguous memory block for at least n additional records has already been allocated, this is a no-op. If not, a new block will be allocated, and any remaining space on the old block will go to waste; this ensures the new records will be allocated contiguously. Note that "wasted" memory is not leaked; it will be deallocated along with any records created from that block when those records go out of scope.
Note that unlike std::vector::reserve, this does not factor in existing records in any way; nRecords refers to a number of new records to reserve space for.
Definition at line 111 of file BaseTable.cc.
|
inlineinherited |
Set the flexible metadata associated with the table. May be null.
Definition at line 82 of file BaseTable.h.
|
friend |
|
static |
|
static |
|
static |
|
staticinherited |
Number of records in each memory block.
Definition at line 76 of file BaseTable.h.