File: IFGraph.cpp

package info (click to toggle)
python-ocp 7.8.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 64,720 kB
  • sloc: cpp: 362,337; pascal: 33; python: 23; makefile: 4
file content (582 lines) | stat: -rw-r--r-- 30,352 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582

// std lib related includes
#include <tuple>

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

namespace py = pybind11;

// Standard Handle
#include <Standard_Handle.hxx>


// 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 <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 <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <IFGraph_StrongComponants.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 <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_GraphContent.hxx>

// module includes
#include <IFGraph_AllConnected.hxx>
#include <IFGraph_AllShared.hxx>
#include <IFGraph_Articulations.hxx>
#include <IFGraph_Compare.hxx>
#include <IFGraph_ConnectedComponants.hxx>
#include <IFGraph_Cumulate.hxx>
#include <IFGraph_Cycles.hxx>
#include <IFGraph_ExternalSources.hxx>
#include <IFGraph_SCRoots.hxx>
#include <IFGraph_StrongComponants.hxx>
#include <IFGraph_SubPartsIterator.hxx>

// template related includes


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

// user-defined inclusion per module

// Module definiiton
void register_IFGraph(py::module &main_module) {


py::module m = static_cast<py::module>(main_module.attr("IFGraph"));
py::object klass;

//Python trampoline classes

// classes

    // Class IFGraph_AllConnected from ./opencascade/IFGraph_AllConnected.hxx
    klass = m.attr("IFGraph_AllConnected");


    // nested enums

    static_cast<py::class_<IFGraph_AllConnected , shared_ptr<IFGraph_AllConnected>  , Interface_GraphContent >>(klass)
    // constructors
        .def(py::init< const Interface_Graph & >()  , py::arg("agraph") )
        .def(py::init< const Interface_Graph &,const opencascade::handle<Standard_Transient> & >()  , py::arg("agraph"),  py::arg("ent") )
    // custom constructors
    // methods
        .def("GetFromEntity",
             (void (IFGraph_AllConnected::*)( const opencascade::handle<Standard_Transient> &  ) ) static_cast<void (IFGraph_AllConnected::*)( const opencascade::handle<Standard_Transient> &  ) >(&IFGraph_AllConnected::GetFromEntity),
             R"#(adds an entity and its Connected ones to the list (allows to cumulate all Entities Connected by some ones) Note that if "ent" is in the already computed list,, no entity will be added, but if "ent" is not already in the list, a new Connected Component will be cumulated)#"  , py::arg("ent")
          )
        .def("ResetData",
             (void (IFGraph_AllConnected::*)() ) static_cast<void (IFGraph_AllConnected::*)() >(&IFGraph_AllConnected::ResetData),
             R"#(Allows to restart on a new data set)#" 
          )
        .def("Evaluate",
             (void (IFGraph_AllConnected::*)() ) static_cast<void (IFGraph_AllConnected::*)() >(&IFGraph_AllConnected::Evaluate),
             R"#(does the specific evaluation (Connected entities atall levels))#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class IFGraph_AllShared from ./opencascade/IFGraph_AllShared.hxx
    klass = m.attr("IFGraph_AllShared");


    // nested enums

    static_cast<py::class_<IFGraph_AllShared , shared_ptr<IFGraph_AllShared>  , Interface_GraphContent >>(klass)
    // constructors
        .def(py::init< const Interface_Graph & >()  , py::arg("agraph") )
        .def(py::init< const Interface_Graph &,const opencascade::handle<Standard_Transient> & >()  , py::arg("agraph"),  py::arg("ent") )
    // custom constructors
    // methods
        .def("GetFromEntity",
             (void (IFGraph_AllShared::*)( const opencascade::handle<Standard_Transient> &  ) ) static_cast<void (IFGraph_AllShared::*)( const opencascade::handle<Standard_Transient> &  ) >(&IFGraph_AllShared::GetFromEntity),
             R"#(adds an entity and its shared ones to the list (allows to cumulate all Entities shared by some ones))#"  , py::arg("ent")
          )
        .def("GetFromIter",
             (void (IFGraph_AllShared::*)( const Interface_EntityIterator &  ) ) static_cast<void (IFGraph_AllShared::*)( const Interface_EntityIterator &  ) >(&IFGraph_AllShared::GetFromIter),
             R"#(Adds Entities from an EntityIterator and all their shared ones at any level)#"  , py::arg("iter")
          )
        .def("ResetData",
             (void (IFGraph_AllShared::*)() ) static_cast<void (IFGraph_AllShared::*)() >(&IFGraph_AllShared::ResetData),
             R"#(Allows to restart on a new data set)#" 
          )
        .def("Evaluate",
             (void (IFGraph_AllShared::*)() ) static_cast<void (IFGraph_AllShared::*)() >(&IFGraph_AllShared::Evaluate),
             R"#(does the specific evaluation (shared entities atall levels))#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class IFGraph_Articulations from ./opencascade/IFGraph_Articulations.hxx
    klass = m.attr("IFGraph_Articulations");


    // nested enums

    static_cast<py::class_<IFGraph_Articulations , shared_ptr<IFGraph_Articulations>  , Interface_GraphContent >>(klass)
    // constructors
        .def(py::init< const Interface_Graph &,const Standard_Boolean >()  , py::arg("agraph"),  py::arg("whole") )
    // custom constructors
    // methods
        .def("GetFromEntity",
             (void (IFGraph_Articulations::*)( const opencascade::handle<Standard_Transient> &  ) ) static_cast<void (IFGraph_Articulations::*)( const opencascade::handle<Standard_Transient> &  ) >(&IFGraph_Articulations::GetFromEntity),
             R"#(adds an entity and its shared ones to the list)#"  , py::arg("ent")
          )
        .def("GetFromIter",
             (void (IFGraph_Articulations::*)( const Interface_EntityIterator &  ) ) static_cast<void (IFGraph_Articulations::*)( const Interface_EntityIterator &  ) >(&IFGraph_Articulations::GetFromIter),
             R"#(adds a list of entities (as an iterator))#"  , py::arg("iter")
          )
        .def("ResetData",
             (void (IFGraph_Articulations::*)() ) static_cast<void (IFGraph_Articulations::*)() >(&IFGraph_Articulations::ResetData),
             R"#(Allows to restart on a new data set)#" 
          )
        .def("Evaluate",
             (void (IFGraph_Articulations::*)() ) static_cast<void (IFGraph_Articulations::*)() >(&IFGraph_Articulations::Evaluate),
             R"#(Evaluates the list of Articulation points)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class IFGraph_Compare from ./opencascade/IFGraph_Compare.hxx
    klass = m.attr("IFGraph_Compare");


    // nested enums

    static_cast<py::class_<IFGraph_Compare , shared_ptr<IFGraph_Compare>  , Interface_GraphContent >>(klass)
    // constructors
        .def(py::init< const Interface_Graph & >()  , py::arg("agraph") )
    // custom constructors
    // methods
        .def("GetFromEntity",
             (void (IFGraph_Compare::*)( const opencascade::handle<Standard_Transient> & ,  const Standard_Boolean  ) ) static_cast<void (IFGraph_Compare::*)( const opencascade::handle<Standard_Transient> & ,  const Standard_Boolean  ) >(&IFGraph_Compare::GetFromEntity),
             R"#(adds an entity and its shared ones to the list : first True means adds to the first sub-list, else to the 2nd)#"  , py::arg("ent"),  py::arg("first")
          )
        .def("GetFromIter",
             (void (IFGraph_Compare::*)( const Interface_EntityIterator & ,  const Standard_Boolean  ) ) static_cast<void (IFGraph_Compare::*)( const Interface_EntityIterator & ,  const Standard_Boolean  ) >(&IFGraph_Compare::GetFromIter),
             R"#(adds a list of entities (as an iterator) as such, that is, their shared entities are not considered (use AllShared to have them) first True means adds to the first sub-list, else to the 2nd)#"  , py::arg("iter"),  py::arg("first")
          )
        .def("Merge",
             (void (IFGraph_Compare::*)() ) static_cast<void (IFGraph_Compare::*)() >(&IFGraph_Compare::Merge),
             R"#(merges the second list into the first one, hence the second list is empty)#" 
          )
        .def("RemoveSecond",
             (void (IFGraph_Compare::*)() ) static_cast<void (IFGraph_Compare::*)() >(&IFGraph_Compare::RemoveSecond),
             R"#(Removes the contents of second list)#" 
          )
        .def("KeepCommon",
             (void (IFGraph_Compare::*)() ) static_cast<void (IFGraph_Compare::*)() >(&IFGraph_Compare::KeepCommon),
             R"#(Keeps only Common part, sets it as First list and clears second list)#" 
          )
        .def("ResetData",
             (void (IFGraph_Compare::*)() ) static_cast<void (IFGraph_Compare::*)() >(&IFGraph_Compare::ResetData),
             R"#(Allows to restart on a new data set)#" 
          )
        .def("Evaluate",
             (void (IFGraph_Compare::*)() ) static_cast<void (IFGraph_Compare::*)() >(&IFGraph_Compare::Evaluate),
             R"#(Recomputes result of comparing to sub-parts)#" 
          )
        .def("Common",
             (Interface_EntityIterator (IFGraph_Compare::*)() const) static_cast<Interface_EntityIterator (IFGraph_Compare::*)() const>(&IFGraph_Compare::Common),
             R"#(returns entities common to the both parts)#" 
          )
        .def("FirstOnly",
             (Interface_EntityIterator (IFGraph_Compare::*)() const) static_cast<Interface_EntityIterator (IFGraph_Compare::*)() const>(&IFGraph_Compare::FirstOnly),
             R"#(returns entities which are exclusively in the first list)#" 
          )
        .def("SecondOnly",
             (Interface_EntityIterator (IFGraph_Compare::*)() const) static_cast<Interface_EntityIterator (IFGraph_Compare::*)() const>(&IFGraph_Compare::SecondOnly),
             R"#(returns entities which are exclusively in the second part)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class IFGraph_Cumulate from ./opencascade/IFGraph_Cumulate.hxx
    klass = m.attr("IFGraph_Cumulate");


    // nested enums

    static_cast<py::class_<IFGraph_Cumulate , shared_ptr<IFGraph_Cumulate>  , Interface_GraphContent >>(klass)
    // constructors
        .def(py::init< const Interface_Graph & >()  , py::arg("agraph") )
    // custom constructors
    // methods
        .def("GetFromEntity",
             (void (IFGraph_Cumulate::*)( const opencascade::handle<Standard_Transient> &  ) ) static_cast<void (IFGraph_Cumulate::*)( const opencascade::handle<Standard_Transient> &  ) >(&IFGraph_Cumulate::GetFromEntity),
             R"#(adds an entity and its shared ones to the list)#"  , py::arg("ent")
          )
        .def("GetFromIter",
             (void (IFGraph_Cumulate::*)( const Interface_EntityIterator &  ) ) static_cast<void (IFGraph_Cumulate::*)( const Interface_EntityIterator &  ) >(&IFGraph_Cumulate::GetFromIter),
             R"#(adds a list of entities (as an iterator) as such, that is, without their shared entities (use AllShared to have them))#"  , py::arg("iter")
          )
        .def("ResetData",
             (void (IFGraph_Cumulate::*)() ) static_cast<void (IFGraph_Cumulate::*)() >(&IFGraph_Cumulate::ResetData),
             R"#(Allows to restart on a new data set)#" 
          )
        .def("Evaluate",
             (void (IFGraph_Cumulate::*)() ) static_cast<void (IFGraph_Cumulate::*)() >(&IFGraph_Cumulate::Evaluate),
             R"#(Evaluates the result of cumulation)#" 
          )
        .def("Overlapped",
             (Interface_EntityIterator (IFGraph_Cumulate::*)() const) static_cast<Interface_EntityIterator (IFGraph_Cumulate::*)() const>(&IFGraph_Cumulate::Overlapped),
             R"#(returns entities which are taken several times)#" 
          )
        .def("Forgotten",
             (Interface_EntityIterator (IFGraph_Cumulate::*)() const) static_cast<Interface_EntityIterator (IFGraph_Cumulate::*)() const>(&IFGraph_Cumulate::Forgotten),
             R"#(returns entities which are not taken)#" 
          )
        .def("PerCount",
             (Interface_EntityIterator (IFGraph_Cumulate::*)( const Standard_Integer  ) const) static_cast<Interface_EntityIterator (IFGraph_Cumulate::*)( const Standard_Integer  ) const>(&IFGraph_Cumulate::PerCount),
             R"#(Returns entities taken a given count of times (0 : same as Forgotten, 1 : same as no Overlap : default))#"  , py::arg("count")=static_cast<const Standard_Integer>(1)
          )
        .def("NbTimes",
             (Standard_Integer (IFGraph_Cumulate::*)( const opencascade::handle<Standard_Transient> &  ) const) static_cast<Standard_Integer (IFGraph_Cumulate::*)( const opencascade::handle<Standard_Transient> &  ) const>(&IFGraph_Cumulate::NbTimes),
             R"#(returns number of times an Entity has been counted (0 means forgotten, more than 1 means overlap, 1 is normal))#"  , py::arg("ent")
          )
        .def("HighestNbTimes",
             (Standard_Integer (IFGraph_Cumulate::*)() const) static_cast<Standard_Integer (IFGraph_Cumulate::*)() const>(&IFGraph_Cumulate::HighestNbTimes),
             R"#(Returns the highest number of times recorded for every Entity (0 means empty, 1 means no overlap))#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class IFGraph_ExternalSources from ./opencascade/IFGraph_ExternalSources.hxx
    klass = m.attr("IFGraph_ExternalSources");


    // nested enums

    static_cast<py::class_<IFGraph_ExternalSources , shared_ptr<IFGraph_ExternalSources>  , Interface_GraphContent >>(klass)
    // constructors
        .def(py::init< const Interface_Graph & >()  , py::arg("agraph") )
    // custom constructors
    // methods
        .def("GetFromEntity",
             (void (IFGraph_ExternalSources::*)( const opencascade::handle<Standard_Transient> &  ) ) static_cast<void (IFGraph_ExternalSources::*)( const opencascade::handle<Standard_Transient> &  ) >(&IFGraph_ExternalSources::GetFromEntity),
             R"#(adds an entity and its shared ones to the list)#"  , py::arg("ent")
          )
        .def("GetFromIter",
             (void (IFGraph_ExternalSources::*)( const Interface_EntityIterator &  ) ) static_cast<void (IFGraph_ExternalSources::*)( const Interface_EntityIterator &  ) >(&IFGraph_ExternalSources::GetFromIter),
             R"#(adds a list of entities (as an iterator) with shared ones)#"  , py::arg("iter")
          )
        .def("ResetData",
             (void (IFGraph_ExternalSources::*)() ) static_cast<void (IFGraph_ExternalSources::*)() >(&IFGraph_ExternalSources::ResetData),
             R"#(Allows to restart on a new data set)#" 
          )
        .def("Evaluate",
             (void (IFGraph_ExternalSources::*)() ) static_cast<void (IFGraph_ExternalSources::*)() >(&IFGraph_ExternalSources::Evaluate),
             R"#(Evaluates external sources of a set of entities)#" 
          )
        .def("IsEmpty",
             (Standard_Boolean (IFGraph_ExternalSources::*)() ) static_cast<Standard_Boolean (IFGraph_ExternalSources::*)() >(&IFGraph_ExternalSources::IsEmpty),
             R"#(Returns True if no External Source are found It means that we have a "root" set (performs an Evaluation as necessary))#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class IFGraph_SubPartsIterator from ./opencascade/IFGraph_SubPartsIterator.hxx
    klass = m.attr("IFGraph_SubPartsIterator");


    // nested enums

    static_cast<py::class_<IFGraph_SubPartsIterator , shared_ptr<IFGraph_SubPartsIterator>  >>(klass)
    // constructors
        .def(py::init< const Interface_Graph &,const Standard_Boolean >()  , py::arg("agraph"),  py::arg("whole") )
        .def(py::init< IFGraph_SubPartsIterator & >()  , py::arg("other") )
    // custom constructors
    // methods
        .def("GetParts",
             (void (IFGraph_SubPartsIterator::*)( IFGraph_SubPartsIterator &  ) ) static_cast<void (IFGraph_SubPartsIterator::*)( IFGraph_SubPartsIterator &  ) >(&IFGraph_SubPartsIterator::GetParts),
             R"#(Gets Parts from another SubPartsIterator (in addition to the ones already recorded) Error if both SubPartsIterators are not based on the same Model)#"  , py::arg("other")
          )
        .def("Model",
             (opencascade::handle<Interface_InterfaceModel> (IFGraph_SubPartsIterator::*)() const) static_cast<opencascade::handle<Interface_InterfaceModel> (IFGraph_SubPartsIterator::*)() const>(&IFGraph_SubPartsIterator::Model),
             R"#(Returns the Model with which this Iterator was created)#" 
          )
        .def("AddPart",
             (void (IFGraph_SubPartsIterator::*)() ) static_cast<void (IFGraph_SubPartsIterator::*)() >(&IFGraph_SubPartsIterator::AddPart),
             R"#(Adds an empty part and sets it to receive entities)#" 
          )
        .def("NbParts",
             (Standard_Integer (IFGraph_SubPartsIterator::*)() const) static_cast<Standard_Integer (IFGraph_SubPartsIterator::*)() const>(&IFGraph_SubPartsIterator::NbParts),
             R"#(Returns count of registered parts)#" 
          )
        .def("PartNum",
             (Standard_Integer (IFGraph_SubPartsIterator::*)() const) static_cast<Standard_Integer (IFGraph_SubPartsIterator::*)() const>(&IFGraph_SubPartsIterator::PartNum),
             R"#(Returns numero of part which currently receives entities (0 at load time))#" 
          )
        .def("SetLoad",
             (void (IFGraph_SubPartsIterator::*)() ) static_cast<void (IFGraph_SubPartsIterator::*)() >(&IFGraph_SubPartsIterator::SetLoad),
             R"#(Sets SubPartIterator to get Entities (by GetFromEntity & GetFromIter) into load status, to be analysed later)#" 
          )
        .def("SetPartNum",
             (void (IFGraph_SubPartsIterator::*)( const Standard_Integer  ) ) static_cast<void (IFGraph_SubPartsIterator::*)( const Standard_Integer  ) >(&IFGraph_SubPartsIterator::SetPartNum),
             R"#(Sets numero of receiving part to a new value Error if not in range (1-NbParts))#"  , py::arg("num")
          )
        .def("GetFromEntity",
             (void (IFGraph_SubPartsIterator::*)( const opencascade::handle<Standard_Transient> & ,  const Standard_Boolean  ) ) static_cast<void (IFGraph_SubPartsIterator::*)( const opencascade::handle<Standard_Transient> & ,  const Standard_Boolean  ) >(&IFGraph_SubPartsIterator::GetFromEntity),
             R"#(Adds an Entity : into load status if in Load mode, to the current part if there is one. If shared is True, adds also its shared ones (shared at all levels))#"  , py::arg("ent"),  py::arg("shared")
          )
        .def("GetFromIter",
             (void (IFGraph_SubPartsIterator::*)( const Interface_EntityIterator &  ) ) static_cast<void (IFGraph_SubPartsIterator::*)( const Interface_EntityIterator &  ) >(&IFGraph_SubPartsIterator::GetFromIter),
             R"#(Adds a list of Entities (into Load mode or to a Part), given as an Iterator)#"  , py::arg("iter")
          )
        .def("Reset",
             (void (IFGraph_SubPartsIterator::*)() ) static_cast<void (IFGraph_SubPartsIterator::*)() >(&IFGraph_SubPartsIterator::Reset),
             R"#(Erases data (parts, entities) : "me" becomes empty and in load status)#" 
          )
        .def("Evaluate",
             (void (IFGraph_SubPartsIterator::*)() ) static_cast<void (IFGraph_SubPartsIterator::*)() >(&IFGraph_SubPartsIterator::Evaluate),
             R"#(Called by Clear, this method allows evaluation just before iteration; its default is doing nothing, it is designed to be redefined)#" 
          )
        .def("Loaded",
             (Interface_GraphContent (IFGraph_SubPartsIterator::*)() const) static_cast<Interface_GraphContent (IFGraph_SubPartsIterator::*)() const>(&IFGraph_SubPartsIterator::Loaded),
             R"#(Returns entities which where loaded (not set into a sub-part))#" 
          )
        .def("LoadedGraph",
             (Interface_Graph (IFGraph_SubPartsIterator::*)() const) static_cast<Interface_Graph (IFGraph_SubPartsIterator::*)() const>(&IFGraph_SubPartsIterator::LoadedGraph),
             R"#(Same as above, but under the form of a Graph)#" 
          )
        .def("IsLoaded",
             (Standard_Boolean (IFGraph_SubPartsIterator::*)( const opencascade::handle<Standard_Transient> &  ) const) static_cast<Standard_Boolean (IFGraph_SubPartsIterator::*)( const opencascade::handle<Standard_Transient> &  ) const>(&IFGraph_SubPartsIterator::IsLoaded),
             R"#(Returns True if an Entity is loaded (either set into a sub-part or not))#"  , py::arg("ent")
          )
        .def("IsInPart",
             (Standard_Boolean (IFGraph_SubPartsIterator::*)( const opencascade::handle<Standard_Transient> &  ) const) static_cast<Standard_Boolean (IFGraph_SubPartsIterator::*)( const opencascade::handle<Standard_Transient> &  ) const>(&IFGraph_SubPartsIterator::IsInPart),
             R"#(Returns True if an Entity is Present in a sub-part)#"  , py::arg("ent")
          )
        .def("EntityPartNum",
             (Standard_Integer (IFGraph_SubPartsIterator::*)( const opencascade::handle<Standard_Transient> &  ) const) static_cast<Standard_Integer (IFGraph_SubPartsIterator::*)( const opencascade::handle<Standard_Transient> &  ) const>(&IFGraph_SubPartsIterator::EntityPartNum),
             R"#(Returns number of the sub-part in which an Entity has been set if it is not in a sub-part (or not loaded at all), Returns 0)#"  , py::arg("ent")
          )
        .def("Start",
             (void (IFGraph_SubPartsIterator::*)() ) static_cast<void (IFGraph_SubPartsIterator::*)() >(&IFGraph_SubPartsIterator::Start),
             R"#(Sets iteration to its beginning; calls Evaluate)#" 
          )
        .def("More",
             (Standard_Boolean (IFGraph_SubPartsIterator::*)() ) static_cast<Standard_Boolean (IFGraph_SubPartsIterator::*)() >(&IFGraph_SubPartsIterator::More),
             R"#(Returns True if there are more sub-parts to iterate on Note : an empty sub-part is not taken in account by Iteration)#" 
          )
        .def("Next",
             (void (IFGraph_SubPartsIterator::*)() ) static_cast<void (IFGraph_SubPartsIterator::*)() >(&IFGraph_SubPartsIterator::Next),
             R"#(Sets iteration to the next sub-part if there is not, IsSingle-Entities will raises an exception)#" 
          )
        .def("IsSingle",
             (Standard_Boolean (IFGraph_SubPartsIterator::*)() const) static_cast<Standard_Boolean (IFGraph_SubPartsIterator::*)() const>(&IFGraph_SubPartsIterator::IsSingle),
             R"#(Returns True if current sub-part is single (has only one Entity) Error if there is no sub-part to iterate now)#" 
          )
        .def("FirstEntity",
             (opencascade::handle<Standard_Transient> (IFGraph_SubPartsIterator::*)() const) static_cast<opencascade::handle<Standard_Transient> (IFGraph_SubPartsIterator::*)() const>(&IFGraph_SubPartsIterator::FirstEntity),
             R"#(Returns the first entity of current sub-part, that is for a Single one, the only one it contains Error : same as above (end of iteration))#" 
          )
        .def("Entities",
             (Interface_EntityIterator (IFGraph_SubPartsIterator::*)() const) static_cast<Interface_EntityIterator (IFGraph_SubPartsIterator::*)() const>(&IFGraph_SubPartsIterator::Entities),
             R"#(Returns current sub-part, not as a "Value", but as an Iterator on Entities it contains Error : same as above (end of iteration))#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class IFGraph_ConnectedComponants from ./opencascade/IFGraph_ConnectedComponants.hxx
    klass = m.attr("IFGraph_ConnectedComponants");


    // nested enums

    static_cast<py::class_<IFGraph_ConnectedComponants , shared_ptr<IFGraph_ConnectedComponants>  , IFGraph_SubPartsIterator >>(klass)
    // constructors
        .def(py::init< const Interface_Graph &,const Standard_Boolean >()  , py::arg("agraph"),  py::arg("whole") )
    // custom constructors
    // methods
        .def("Evaluate",
             (void (IFGraph_ConnectedComponants::*)() ) static_cast<void (IFGraph_ConnectedComponants::*)() >(&IFGraph_ConnectedComponants::Evaluate),
             R"#(does the computation)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class IFGraph_Cycles from ./opencascade/IFGraph_Cycles.hxx
    klass = m.attr("IFGraph_Cycles");


    // nested enums

    static_cast<py::class_<IFGraph_Cycles , shared_ptr<IFGraph_Cycles>  , IFGraph_SubPartsIterator >>(klass)
    // constructors
        .def(py::init< const Interface_Graph &,const Standard_Boolean >()  , py::arg("agraph"),  py::arg("whole") )
        .def(py::init< IFGraph_StrongComponants & >()  , py::arg("subparts") )
    // custom constructors
    // methods
        .def("Evaluate",
             (void (IFGraph_Cycles::*)() ) static_cast<void (IFGraph_Cycles::*)() >(&IFGraph_Cycles::Evaluate),
             R"#(does the computation. Cycles are StrongComponants which are not Single)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class IFGraph_StrongComponants from ./opencascade/IFGraph_StrongComponants.hxx
    klass = m.attr("IFGraph_StrongComponants");


    // nested enums

    static_cast<py::class_<IFGraph_StrongComponants , shared_ptr<IFGraph_StrongComponants>  , IFGraph_SubPartsIterator >>(klass)
    // constructors
        .def(py::init< const Interface_Graph &,const Standard_Boolean >()  , py::arg("agraph"),  py::arg("whole") )
    // custom constructors
    // methods
        .def("Evaluate",
             (void (IFGraph_StrongComponants::*)() ) static_cast<void (IFGraph_StrongComponants::*)() >(&IFGraph_StrongComponants::Evaluate),
             R"#(does the computation)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class IFGraph_SCRoots from ./opencascade/IFGraph_SCRoots.hxx
    klass = m.attr("IFGraph_SCRoots");


    // nested enums

    static_cast<py::class_<IFGraph_SCRoots , shared_ptr<IFGraph_SCRoots>  , IFGraph_StrongComponants >>(klass)
    // constructors
        .def(py::init< const Interface_Graph &,const Standard_Boolean >()  , py::arg("agraph"),  py::arg("whole") )
        .def(py::init< IFGraph_StrongComponants & >()  , py::arg("subparts") )
    // custom constructors
    // methods
        .def("Evaluate",
             (void (IFGraph_SCRoots::*)() ) static_cast<void (IFGraph_SCRoots::*)() >(&IFGraph_SCRoots::Evaluate),
             R"#(does the computation)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

// functions
// ./opencascade/IFGraph_AllConnected.hxx
// ./opencascade/IFGraph_AllShared.hxx
// ./opencascade/IFGraph_Articulations.hxx
// ./opencascade/IFGraph_Compare.hxx
// ./opencascade/IFGraph_ConnectedComponants.hxx
// ./opencascade/IFGraph_Cumulate.hxx
// ./opencascade/IFGraph_Cycles.hxx
// ./opencascade/IFGraph_ExternalSources.hxx
// ./opencascade/IFGraph_SCRoots.hxx
// ./opencascade/IFGraph_StrongComponants.hxx
// ./opencascade/IFGraph_SubPartsIterator.hxx

// Additional functions

// operators

// register typdefs


// exceptions

// user-defined post-inclusion per module in the body

};

// user-defined post-inclusion per module

// user-defined post