//**************************************************************
//
// CS 240C : Spring 2003 Ohio University Travis Dillon
// Project 1 : A Templated Set Class
// file : node.h
// started : 04-07-03
//
//**************************************************************
#ifndef NODE_H
#define NODE_H
#include "main.h"
template <typename T>
class Bag;
template <typename T>
class Node
{
public:
Node(); //default c-tor
Node(T in_data); //data c-tor
private:
friend class Bag<T>;
friend ostream& operator << <> (ostream& os, const Bag<T>& rop);
friend Bag<T> operator + <> (const Bag<T>& lop, const Bag<T>& rop);
friend Bag<T> operator * <> (const Bag<T>& lop, const Bag<T>& rop);
friend Bag<T> operator - <> (const Bag<T>& lop, const Bag<T>& rop);
T data;
Node* fore;
};
#include "node.template"
#endif //NODE_H