]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/cursor.icc
release: 0.0.53
[lilypond.git] / flower / include / cursor.icc
index e103c88e43a8fa5e5386b1c837b6ff4cc46bb3c9..3390d69026499526aa1ceaed1abb1cbc0dc62563 100644 (file)
@@ -1,8 +1,28 @@
- // cursor.icc -*-c++-*-
-#ifndef CURSOR_INL
-#define CURSOR_INL
+/*
+  cursor.icc -- implement Cursor
+
+  source file of the Flower Library
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
+
+#ifndef CURSOR_ICC
+#define CURSOR_ICC
+
+
+
 #include <assert.h>
 
+// untested
+template<class T>
+inline
+Cursor<T>::Cursor( )
+ :   list_(*(List<T> *)0)      // ugh
+{
+    pointer_ = 0;
+}
+
 
 template<class T>
 inline
@@ -70,21 +90,21 @@ Cursor<T>::pointer()
 
 template<class T>
 inline bool
-Cursor<T>::backward()
+Cursor<T>::backward()const
 {
     return ( pointer_ != 0 );
 }
 
 template<class T>
 inline bool
-Cursor<T>::forward()
+Cursor<T>::forward()const
 {
     return ( pointer_ != 0 );
 }
 
 template<class T>
 inline bool
-Cursor<T>::ok()
+Cursor<T>::ok()const
 {
     return ( pointer_ != 0 );
 }
@@ -110,4 +130,5 @@ Cursor<T>::operator --( int )
     return r;
 }
 
-#endif
+
+#endif // CURSOR_ICC