Loading [MathJax]/extensions/tex2jax.js
LSST Applications g04a91732dc+c316cf5b3a,g07dc498a13+fb7087bc2f,g1409bbee79+fb7087bc2f,g1a7e361dbc+fb7087bc2f,g1fd858c14a+aec6ef928c,g33399d78f5+40c06f64a8,g35bb328faa+e55fef2c71,g3bd4b5ce2c+2905670c8d,g3dabb73f91+bea4d5a39d,g424a4f6e28+abed75ca55,g53246c7159+e55fef2c71,g5477a8d5ce+dc8a1f68b0,g60b5630c4e+abed75ca55,g78460c75b0+8427c4cc8f,g786e29fd12+307f82e6af,g8534526c7b+8e1c6b434f,g89139ef638+fb7087bc2f,g8b49a6ea8e+abed75ca55,g8e3b232dfe+ae99801921,g9125e01d80+e55fef2c71,g989de1cb63+fb7087bc2f,g9f33ca652e+3c31457565,gaaedd4e678+fb7087bc2f,gabe3b4be73+9c0c3c7524,gb1101e3267+49fea2c512,gb58c049af0+28045f66fd,gca43fec769+e55fef2c71,gce7788e931+d1fd0c5240,gcf25f946ba+40c06f64a8,gd6cbbdb0b4+f6e5445f66,gdd9490a0bf+d85bd9e56f,gde0f65d7ad+d075e886b3,ge278dab8ac+b4c2c8faf7,geab183fbe5+abed75ca55,gec3dcf77f0+e7bc33f3ea,gecb8035dfe+1f480bec5e,gf58bf46354+e55fef2c71,gfe7187db8c+7aa4e308f2,w.2025.05
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
KeyBase.h
Go to the documentation of this file.
1// -*- lsst-c++ -*-
2#ifndef AFW_TABLE_KeyBase_h_INCLUDED
3#define AFW_TABLE_KeyBase_h_INCLUDED
4
5#include <vector>
6
8
9namespace lsst {
10namespace afw {
11namespace table {
12
13class BaseRecord;
14
15template <typename T>
16class Key;
17
19template <typename T>
20class KeyBase {
21public:
22 static bool const HAS_NAMED_SUBFIELDS = false;
23};
24
26template <typename U>
27class KeyBase<Array<U> > {
28public:
29 static bool const HAS_NAMED_SUBFIELDS = false;
30
31 std::vector<U> extractVector(BaseRecord const& record) const;
32
33 void assignVector(BaseRecord& record, std::vector<U> const& values) const;
34
35 Key<U> operator[](std::size_t i) const;
36
37 Key<Array<U> > slice(std::size_t begin, std::size_t end) const;
38};
39} // namespace table
40} // namespace afw
41} // namespace lsst
42
43#endif // !AFW_TABLE_KeyBase_h_INCLUDED
int end
Tag types used to declare specialized field types.
Definition misc.h:31
Base class for all records.
Definition BaseRecord.h:31
A base class for Key that allows subfield keys to be extracted for some field types.
Definition KeyBase.h:20
static bool const HAS_NAMED_SUBFIELDS
Definition KeyBase.h:22
A class used as a handle to a particular field in a table.
Definition KeyBase.h:16