This commit is contained in:
Christian Semmler
2023-10-18 16:09:33 -04:00
parent 2407b9e798
commit e7f14ecda4
4 changed files with 96 additions and 2 deletions

View File

@@ -92,6 +92,7 @@ public:
void SetValue(T p_obj);
void Head() { m_match = m_list->m_first; }
void Reset() { m_match = NULL; }
void Prepend(T p_newobj);
private:
MxList<T> *m_list;
@@ -229,4 +230,11 @@ inline void MxListCursor<T>::SetValue(T p_obj)
m_match->m_obj = p_obj;
}
template <class T>
inline void MxListCursor<T>::Prepend(T p_newobj)
{
if (m_match)
m_list->_InsertEntry(p_newobj, m_match->m_prev, m_match);
}
#endif // MXLIST_H