23 #ifndef AFW_TABLE_PYBIND11_COLUMNVIEW_H_INCLUDED
24 #define AFW_TABLE_PYBIND11_COLUMNVIEW_H_INCLUDED
26 #include "pybind11/pybind11.h"
37 template <
typename Record>
51 template <
typename Record>
53 bool isBase =
false) {
56 fullName =
"_" +
name +
"ColumnViewBase";
58 fullName =
name +
"ColumnView";
61 [](
auto& mod,
auto& cls) {
62 cls.def(
"getTable", &ColumnViewT<Record>::getTable);
63 cls.def_property_readonly(
"table", &ColumnViewT<Record>::getTable);
table::Key< std::string > name
Column-wise view into a sequence of records that have been allocated contiguously.
PyType wrapType(PyType cls, ClassWrapperCallback function, bool setModuleName=true)
PyColumnView< Record > declareColumnView(utils::python::WrapperCollection &wrappers, std::string const &name, bool isBase=false)
Declare member and static functions for a given instantiation of lsst::afw::table::ColumnViewT<Record...
pybind11::class_< ColumnViewT< Record >, std::shared_ptr< ColumnViewT< Record > >, BaseColumnView > PyColumnView
A base class for image defects.