Made the more of the OSG's referenced object desctructors protected to ensure
that they arn't created on the stack inappropriately. Split the implemention of Matrix up so that it is a simple no referenced counted class and can be safefly created on the stack. To support referenced counting a seperate subclass now exists, this is RefMatrix which inherits from both Matrix and Object.
This commit is contained in:
@@ -28,7 +28,6 @@ class SG_EXPORT FrameStamp : public Referenced
|
||||
|
||||
FrameStamp();
|
||||
FrameStamp(const FrameStamp& fs);
|
||||
~FrameStamp();
|
||||
|
||||
FrameStamp& operator = (const FrameStamp& fs);
|
||||
|
||||
@@ -40,9 +39,14 @@ class SG_EXPORT FrameStamp : public Referenced
|
||||
|
||||
void setCalendarTime(const tm& calendarTime);
|
||||
void getCalendarTime(tm& calendarTime) const;
|
||||
|
||||
|
||||
// keep public to allow it to be permit allocation which is
|
||||
// not on the heap used osgcluster
|
||||
virtual ~FrameStamp();
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
// note no dynamic memory is used so that data can be passed
|
||||
// via a simple memory copy or within a data packet across
|
||||
// the network.
|
||||
|
||||
Reference in New Issue
Block a user