2 acursor.hh -- declare ACursor, PACursor
4 source file of the Flower Library
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
20 ACursor (ACursor const& s)
25 ACursor (Array<T> const &arr)
33 T& thing() { return arr_[idx_]; }
39 bool ok() { return idx_ >=0 && idx_ < arr_.size (); }
44 class PACursor : public ACursor<T*>
47 PACursor (Link_array<T> l)
51 T* ptr() { return arr_[idx_]; }