From: fred Date: Mon, 10 Feb 1997 18:16:53 +0000 (+0000) Subject: flower-1.0.27 X-Git-Tag: release/1.5.59~6352 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=be90392652dd0758a48a8ee9fdc4450053b1c577;p=lilypond.git flower-1.0.27 --- diff --git a/flower/pcursor.hh b/flower/pcursor.hh index 8498aa9e0d..1215270e3b 100644 --- a/flower/pcursor.hh +++ b/flower/pcursor.hh @@ -1,4 +1,3 @@ - /* pcursor.hh -- part of flowerlib @@ -8,15 +7,16 @@ #ifndef PCURSOR_HH #define PCURSOR_HH +#include "plist.hh" +#include "cursor.hh" -/// cursor to go with PointerList -/** +/** cursor to go with PointerList. don't create PointerList's. This cursor is just an interface class for Cursor. It takes care of the appropriate type casts */ template -struct PCursor : private Cursor { +class PCursor : private Cursor { friend class IPointerList; /// delete contents @@ -45,7 +45,7 @@ public: PCursor operator +( int no) const {return Cursor::operator+(no);} PCursor(const PointerList & l) : Cursor (l) {} PCursor( const Cursor& cursor ) : Cursor(cursor) { } - void* vptr() const { return * ((Cursor &) *this); } + void* vptr() const { return *((Cursor &) *this); } // should return T& ? T ptr() const { return (T) vptr(); }