Forward declaring class A and having a RefPtr to it in class B causes
trouble if B's constructor or destructor is synthesized at a location
where A's definition is not visible.
looping(false)
{ }
+// Avoid synthesizing ~RefPtr in files including animation.h
+Animation::~Animation()
+{ }
+
void Animation::set_armature(const Armature &a)
{
armature = &a;
public:
Animation();
+ ~Animation();
void set_armature(const Armature &);
const Armature *get_armature() const { return armature; }
descent(0)
{ }
+// Avoid synthesizing ~RefPtr in files including font.h
+Font::~Font()
+{ }
+
void Font::set_texture(const Texture2D &t)
{
texture = &t;
public:
Font();
+ ~Font();
void set_texture(const Texture2D &);
const Texture2D &get_texture() const;
namespace Msp {
namespace GL {
+// Avoid synthesizing RefPtr c'tor and d'tor in files including keyframe.h
+KeyFrame::KeyFrame()
+{ }
+
+KeyFrame::~KeyFrame()
+{ }
+
void KeyFrame::set_matrix(const Matrix &m)
{
matrix = m;
RefPtr<const Pose> pose;
public:
+ KeyFrame();
+ ~KeyFrame();
+
void set_matrix(const Matrix &);
void set_pose(const Pose &);
const Matrix &get_matrix() const { return matrix; }
set_technique(t);
}
+// Avoid synthesizing ~RefPtr in files including object.h
Object::~Object()
-{
-}
+{ }
void Object::set_mesh(unsigned i, const Mesh *m)
{