LSSTApplications  19.0.0-14-gb0260a2+1b4fc4249b,20.0.0+19029f0d82,20.0.0+66077e84be,20.0.0+b8df9e862d,20.0.0+e2e26847c2,20.0.0+e47e9b3a81,20.0.0-1-g253301a+19029f0d82,20.0.0-1-g2b7511a+46a6078777,20.0.0-1-g3dda6ea+905cef1a44,20.0.0-1-g4d801e7+5fcfd52d2e,20.0.0-1-g5b95a8c+19889959e1,20.0.0-1-gc96f8cb+d5e4df5959,20.0.0-1-gedffbd8+6ca2c30637,20.0.0-10-g0891cd99+caa8c2603a,20.0.0-13-gad96b2d30+614f89f815,20.0.0-17-gcdbda88+2b141d441d,20.0.0-2-g4dae9ad+d5e4df5959,20.0.0-2-g52fdb94+046030bafd,20.0.0-2-g61b8584+85c46248f3,20.0.0-2-g8177d33+f2ab36af31,20.0.0-2-gb780d76+f45b7d88f4,20.0.0-2-gf072044+19029f0d82,20.0.0-22-gdf434b7+d5e4df5959,20.0.0-23-g10eeb28+452d7a9290,20.0.0-23-g8900aa8+a8b4322b0e,20.0.0-3-g1653f94+85c46248f3,20.0.0-3-g4cc78c6+63636aeed8,20.0.0-3-g750bffe+7a989609f2,20.0.0-3-gbd60e8c+ff10c6d78d,20.0.0-33-g078e64d5+a2256d2c79,20.0.0-4-g97dc21a+a8b4322b0e,20.0.0-4-gfea843c+f45b7d88f4,20.0.0-5-g357b56b+f45b7d88f4,20.0.0-6-g9a5b7a1+3d4d12ed4e,20.0.0-61-g4de25fb+ddf3488217,20.0.0-7-gcda7bf1+dffc53c16b,w.2020.44
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | List of all members
pybind11::detail::type_caster< lsst::sphgeom::Relationship > Struct Reference

This struct is a partial specialization of type_caster for for lsst::sphgeom::Relationship. More...

#include <relationship.h>

Public Member Functions

 PYBIND11_TYPE_CASTER (lsst::sphgeom::Relationship, _("int"))
 
bool load (handle src, bool)
 

Static Public Member Functions

static handle cast (lsst::sphgeom::Relationship src, return_value_policy, handle)
 

Detailed Description

This struct is a partial specialization of type_caster for for lsst::sphgeom::Relationship.

It maps between std::bitset<3> and Python integers, avoiding the need to wrap the former. This header should be included by all wrappers for functions that consume or return Relationship instances.

Definition at line 40 of file relationship.h.

Member Function Documentation

◆ cast()

static handle pybind11::detail::type_caster< lsst::sphgeom::Relationship >::cast ( lsst::sphgeom::Relationship  src,
return_value_policy  ,
handle   
)
inlinestatic

Definition at line 54 of file relationship.h.

55  {
56  return PyLong_FromUnsignedLong(src.to_ulong());
57  }

◆ load()

bool pybind11::detail::type_caster< lsst::sphgeom::Relationship >::load ( handle  src,
bool   
)
inline

Definition at line 48 of file relationship.h.

48  {
49  value = lsst::sphgeom::Relationship(src.cast<unsigned long long>());
50  return true;
51  }

◆ PYBIND11_TYPE_CASTER()

pybind11::detail::type_caster< lsst::sphgeom::Relationship >::PYBIND11_TYPE_CASTER ( lsst::sphgeom::Relationship  ,
_("int")   
)

The documentation for this struct was generated from the following file:
src
std::shared_ptr< RecordT > src
Definition: Match.cc:48
lsst::sphgeom::Relationship
std::bitset< 3 > Relationship
Relationship describes how two sets are related.
Definition: Relationship.h:35