How do I call these functions?
I am having trouble calling these functions in my cpp file. I have created the linked list and I just need to cover each of these functions. I have deleted a few of them since I already got them working. I am having trouble understanding what portion of the functions parameter is. I just don't know what to put in there. I am sure it is really simple too. Also, I am not sure what the does. If anyone could help I would be extremely thankful.
Code:
template <typename Data>
struct LListNode
{
Data data;
LListNode<Data>* next;
LListNode() {next = 0;}
LListNode (const Data& d, LListNode<Data>* nxt = 0)
: data(d), next(nxt)
{}
};
template <typename Data>
struct LListHeader {
LListNode<Data>* first;
LListHeader();
// Add value after the indicated position
//pre: afterThis != NULL
void addAfter (LListNode<Data>* afterThis, const Data& value);
// Add value before the indicated position
//pre: beforeThis != NULL
void addBefore (LListNode<Data>* beforeThis, const Data& value);
// Remove value at the indicated position
//pre: here != NULL
void remove (LListNode<Data>* here);
// Add value after the indicated position
//pre: afterThis != NULL
void removeAfter (LListNode<Data>* afterThis);
// Search for a value. Returns null if not found
LListNode<Data>* find (const Data& value) const;
// Search an ordered list for a value. Returns null if not found
LListNode<Data>* findOrdered (const Data& value) const;
// Append another list onto the end of this one
void append (const LListHeader<Data>& list);
};