]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/object-key.hh
* flower
[lilypond.git] / lily / include / object-key.hh
index 755b72f1228b8ad5c8d35f06572eed2a4f3ee96f..d8ebf33eb6eb023f80966688a2602fe7fd1c2461 100644 (file)
@@ -4,7 +4,6 @@
   source file of the GNU LilyPond music typesetter
 
   (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
-
 */
 
 #ifndef OBJECT_KEY_HH
 
   In the future, they might also act as handles for external processes
   requesting notation to be drawn.
- */
+*/
 class Object_key
 {
-  DECLARE_SMOBS(Object_key, );
+  DECLARE_SMOBS (Object_key,);
 
 protected:
-  Object_key();
+  Object_key ();
   virtual void derived_mark () const;
   virtual int get_type () const;
-  virtual int do_compare (Object_key const * other) const;
+  virtual int do_compare (Object_key const *other) const;
   virtual SCM as_scheme () const;
 public:
   static Object_key *from_scheme (SCM);
@@ -36,40 +35,41 @@ public:
   SCM dump () const;
 };
 
-enum Object_key_type {
-  BASE_KEY,
-  COPIED_KEY,
-  GENERAL_KEY, 
-  GROB_KEY,
-  CONTEXT_KEY,
-  KEY_COUNT,
-};
+enum Object_key_type
+  {
+    BASE_KEY,
+    COPIED_KEY,
+    GENERAL_KEY,
+    GROB_KEY,
+    CONTEXT_KEY,
+    KEY_COUNT,
+  };
 
 class Copied_key : public Object_key
 {
 
 private:
-  Object_key const * original_;
+  Object_key const *original_;
   int copy_count_;
 
 protected:
   virtual void derived_mark () const;
   virtual int get_type () const;
-  virtual int do_compare (Object_key const * other) const;
+  virtual int do_compare (Object_key const *other) const;
   virtual SCM as_scheme () const;
 public:
   static Object_key *from_scheme (SCM);
-  Copied_key (Object_key const*, int); 
+  Copied_key (Object_key const *, int);
 };
 
-DECLARE_UNSMOB(Object_key, key);
+DECLARE_UNSMOB (Object_key, key);
 
-struct Object_key_less {
-  bool operator () (Object_key const *const &t1, Object_key const *const &t2) const
+struct Object_key_less
+{
+  bool operator() (Object_key const *const &t1, Object_key const *const &t2) const
   {
     return t1->compare (t2);
   }
 };
 
-
 #endif /* OBJECT_KEY_HH */