/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1999--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 1999--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "lily-proto.hh"
#include "smobs.hh"
-class Spring
+class Spring : public Simple_smob<Spring>
{
+public:
+ static SCM equal_p (SCM, SCM);
+ static const char type_p_name_[];
+private:
Real distance_;
Real min_distance_;
void update_blocking_force ();
- DECLARE_SIMPLE_SMOBS (Spring);
public:
Spring ();
Spring (Real distance, Real min_distance);
void operator *= (Real);
bool operator > (Spring const &) const;
};
-DECLARE_UNSMOB (Spring, spring);
Spring merge_springs (vector<Spring> const &springs);
#endif /* SPRING_HH */
-