Loading...
Searching...
No Matches
identities.h
Go to the documentation of this file.
1// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
2
3#ifndef AWKWARDPY_IDENTITIES_H_
4#define AWKWARDPY_IDENTITIES_H_
5
6#include <pybind11/pybind11.h>
8
9namespace py = pybind11;
10namespace ak = awkward;
11
13template <typename T>
14py::tuple
15 identity(const T& self);
16
19template <typename T>
20py::class_<ak::IdentitiesOf<T>>
21 make_IdentitiesOf(const py::handle& m, const std::string& name);
22
23#endif // AWKWARDPY_IDENTITIES_H_
py::tuple identity(const T &self)
Creates a single identity as a Python tuple of integers and strings.
py::class_< ak::IdentitiesOf< T > > make_IdentitiesOf(const py::handle &m, const std::string &name)
Makes Identities32 and Identities64 classes in Python that mirror IdentitiesOf in C++.
Definition: BitMaskedArray.h:15