00001 00029 #ifndef ABA_DLISTITEM_INC 00030 #define ABA_DLISTITEM_INC 00031 00032 #include <iostream> 00033 using namespace std; 00034 00035 template <class Type> 00036 inline ABA_DLISTITEM<Type>::ABA_DLISTITEM (const Type &elem, ABA_DLISTITEM<Type> *pred, 00037 ABA_DLISTITEM<Type> *succ) 00038 : 00039 elem_(elem), 00040 pred_(pred), 00041 succ_(succ) 00042 { } 00043 00044 template <class Type> 00045 ostream& operator<<(ostream &out, const ABA_DLISTITEM<Type> &item) 00046 { 00047 out << item.elem_; 00048 return out; 00049 } 00050 00051 template<class Type> 00052 inline Type ABA_DLISTITEM<Type>::elem() const 00053 { 00054 return elem_; 00055 } 00056 00057 template<class Type> 00058 inline ABA_DLISTITEM<Type>* ABA_DLISTITEM<Type>::succ() const 00059 { 00060 return succ_; 00061 } 00062 00063 template<class Type> 00064 inline ABA_DLISTITEM<Type>* ABA_DLISTITEM<Type>::pred() const 00065 { 00066 return pred_; 00067 } 00068 00069 #endif // ABA_DLISTITEM_INC