Code Fragment: Locator



  class Locator {					// a locator
    BTPosition	btPos;					// position of tree node
  public:
    Locator(const BTPosition& p) : btPos(p) { }		// constructor
    Element& element() const 				// get element
      { return btPos.element().element(); }
    const Key& key() const 				// get key (read only)
      { return btPos.element().key(); }
    bool isNull() const 				// a null locator?
      { return btPos.isNull(); }
  };