File: IntPolyh_tmpl.hxx

package info (click to toggle)
python-ocp 7.8.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 64,724 kB
  • sloc: cpp: 362,337; pascal: 33; python: 23; makefile: 4
file content (132 lines) | stat: -rw-r--r-- 5,102 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#pragma once

// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

namespace py = pybind11;

// Standard Handle
#include <Standard_Handle.hxx>

// user-defined inclusion per module before includes

// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <IntPolyh_Triangle.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <IntPolyh_MaillageAffinage.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <IntPolyh_Triangle.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor2d_Curve2d.hxx>

// module includes
#include <IntPolyh_Array.hxx>
#include <IntPolyh_ArrayOfEdges.hxx>
#include <IntPolyh_ArrayOfPointNormal.hxx>
#include <IntPolyh_ArrayOfPoints.hxx>
#include <IntPolyh_ArrayOfSectionLines.hxx>
#include <IntPolyh_ArrayOfTangentZones.hxx>
#include <IntPolyh_ArrayOfTriangles.hxx>
#include <IntPolyh_Couple.hxx>
#include <IntPolyh_Edge.hxx>
#include <IntPolyh_Intersection.hxx>
#include <IntPolyh_ListOfCouples.hxx>
#include <IntPolyh_MaillageAffinage.hxx>
#include <IntPolyh_PMaillageAffinage.hxx>
#include <IntPolyh_Point.hxx>
#include <IntPolyh_SectionLine.hxx>
#include <IntPolyh_SeqOfStartPoints.hxx>
#include <IntPolyh_StartPoint.hxx>
#include <IntPolyh_Tools.hxx>
#include <IntPolyh_Triangle.hxx>

// user-defined pre
#include "OCP_specific.inc"

// Class template handling functions

template <typename Type>
void preregister_template_IntPolyh_Array(py::object &m, const char *name){
    py::class_<IntPolyh_Array<Type> , shared_ptr<IntPolyh_Array<Type>> >(m,name,R"#(Class IntPolyh_Array (dynamic array of objects))#");
}

template <typename Type>
void register_template_IntPolyh_Array(py::object &m, const char *name){
    static_cast<py::class_<IntPolyh_Array<Type> , shared_ptr<IntPolyh_Array<Type>> >>(m.attr(name))
        .def(py::init< const Standard_Integer >() ,py::arg("aIncrement")=static_cast<const Standard_Integer>(256) )
        .def(py::init< const Standard_Integer,const Standard_Integer >() ,py::arg("aN"), py::arg("aIncrement")=static_cast<const Standard_Integer>(256) )
        .def("Copy",
             (IntPolyh_Array<Type> & (IntPolyh_Array<Type>::*)( const IntPolyh_Array<Type> &  ) ) &IntPolyh_Array<Type>::Copy,
             R"#(Copy)#" ,py::arg("aOther"))
        .def("Init",
             (void (IntPolyh_Array<Type>::*)( const Standard_Integer  ) ) &IntPolyh_Array<Type>::Init,
             R"#(Init - allocate memory for <aN> items)#" ,py::arg("aN"))
        .def("IncrementNbItems",
             (void (IntPolyh_Array<Type>::*)() ) &IntPolyh_Array<Type>::IncrementNbItems,
             R"#(IncrementNbItems - increment the number of stored items)#" )
        .def("GetN",
             (Standard_Integer (IntPolyh_Array<Type>::*)() const) &IntPolyh_Array<Type>::GetN,
             R"#(GetN - returns the number of 'allocated' items)#" )
        .def("NbItems",
             (Standard_Integer (IntPolyh_Array<Type>::*)() const) &IntPolyh_Array<Type>::NbItems,
             R"#(NbItems - returns the number of stored items)#" )
        .def("SetNbItems",
             (void (IntPolyh_Array<Type>::*)( const Standard_Integer  ) ) &IntPolyh_Array<Type>::SetNbItems,
             R"#(set the number of stored items)#" ,py::arg("aNb"))
        .def("Value",
             (const Type & (IntPolyh_Array<Type>::*)( const Standard_Integer  ) const) &IntPolyh_Array<Type>::Value,
             R"#(query the const value)#" ,py::arg("aIndex"))
        .def("ChangeValue",
             (Type & (IntPolyh_Array<Type>::*)( const Standard_Integer  ) ) &IntPolyh_Array<Type>::ChangeValue,
             R"#(query the value)#" ,py::arg("aIndex"))
        .def("Dump",
             (void (IntPolyh_Array<Type>::*)() const) &IntPolyh_Array<Type>::Dump,
             R"#(dump the contents)#" )
    ;
};


// user-defined post