00001 00005 class DpListItemPtr(Type) 00006 00007 { 00008 friend class DpList(Type,Itemtype); 00009 00010 private: 00011 Type* obj; 00012 DpListItemPtr(Type)* next; 00013 DpListItemPtr(Type)* prev; 00014 00015 DpListItemPtr(Type)(Type& obj_, 00016 DpListItemPtr(Type)* nitem, 00017 DpListItemPtr(Type)* pitem) 00018 { 00019 obj = &obj_; 00020 next = nitem; 00021 prev = pitem; 00022 } 00023 00024 ~DpListItemPtr(Type) () {} 00025 00026 Type& object() { return *obj; } 00027 }; 00028 00029