Debian Codegraph @

src/python/PyImath/PyImathVec3si.cpp

raw
1 //
2 // SPDX-License-Identifier: BSD-3-Clause
3 // Copyright Contributors to the OpenEXR Project.
4 //
5
6 // clang-format off
7
8 #include "PyImathVec3Impl.h"
9 #include "PyImathExport.h"
10
11 namespace PyImath {
12 template <> const char *PyImath::V3cArray::name() { return "V3cArray"; }
13 template <> const char *PyImath::V3sArray::name() { return "V3sArray"; }
14 template <> const char *PyImath::V3iArray::name() { return "V3iArray"; }
15 template <> const char *PyImath::V3i64Array::name() { return "V3i64Array"; }
16
17 using namespace boost::python;
18 using namespace IMATH_NAMESPACE;
19
20 template<> const char *Vec3Name<unsigned char>::value() { return "V3c"; }
21 template<> const char *Vec3Name<short>::value() { return "V3s"; }
22 template<> const char *Vec3Name<int>::value() { return "V3i"; }
23 template<> const char *Vec3Name<int64_t>::value() { return "V3i64"; }
24
25 template PYIMATH_EXPORT class_<IMATH_NAMESPACE::Vec3<unsigned char> > register_Vec3<unsigned char>();
26 template PYIMATH_EXPORT class_<IMATH_NAMESPACE::Vec3<short> > register_Vec3<short>();
27 template PYIMATH_EXPORT class_<IMATH_NAMESPACE::Vec3<int> > register_Vec3<int>();
28 template PYIMATH_EXPORT class_<IMATH_NAMESPACE::Vec3<int64_t> > register_Vec3<int64_t>();
29
30 }
31