Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Constructors/Destructors

Subject: CGAL users discussion list

List archive

[cgal-discuss] Constructors/Destructors


Chronological Thread 
  • From: rcco <>
  • To:
  • Subject: [cgal-discuss] Constructors/Destructors
  • Date: Mon, 7 Jun 2010 12:09:02 -0700 (PDT)


Hello, is it possible to subclass Polyhedron_3 so that when a new object
(halfedge, vertex and facet) is created/destroyed some function is called?

something like this (in pseudo-code):

class MyHalfedge : Halfedge {
public MyHalfedge() { super(); myFunction(); }
public ~MyHalfedge() { MyOtherFunction(); super(); }
}


Is this acceptable to do something like this?

Thank you, Rodrigo
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Constructors-Destructors-tp2246412p2246412.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page