PrusaSlicer-NonPlainar/xs
Petr Ledvina 115aa6885f Implement type checking for XS objects
Type handling is mainly done using templates.
Template Slic3r::ClassTraits is used to store info about exported types (perl class name). Currently only perl class name and refference name is used.
Template values are initialized by REGISTER_CLASS macro. This macro is used in .cpp file of class ( it needs to be used exactly for each type).

Ref<type> class is used to return value as perl reference. Operator overloading is used to make c++ and XSpp happy, only pointer value should be possible to return.

Clone<type> class is used to return copy of value ( using new and copy constructor). Copy is created on assigment, this should be probably improved (memory leak on multiple assignments).
It is overloaded to be able to return type, type* and type&.

Typechecking in ExtrusionEntityCollection updated to check all passed types.
2014-04-27 19:38:56 +02:00
..
lib/Slic3r Include thin walls in general top-level perimeter sorting to get more efficient paths 2014-03-09 20:19:30 +01:00
src Implement type checking for XS objects 2014-04-27 19:38:56 +02:00
t Fix cut() test 2014-04-25 13:27:45 +02:00
xsp Implement type checking for XS objects 2014-04-27 19:38:56 +02:00
Build.PL New coverage detection for bridges. Includes implementation of ExPolygon::get_trapezoids() 2014-04-24 13:44:39 +02:00
MANIFEST Implement type checking for XS objects 2014-04-27 19:38:56 +02:00
MANIFEST.SKIP Update MANIFEST* 2013-07-23 23:27:06 +02:00