#pragma once
#include "vector.h"



class vectorTree{
public:
	vector* Word;
	vector* Definition;
	vectorTree* Next;
	vectorTree( vector* word, vector* def):Word(word),Definition(def), Next(NULL){ };
};

class Dictionnary
{
	vectorTree* Begin;
	size_type m_size;
	
	
private:// helper functions
	void destroy(vectorTree*);

	
public:
	size_type size() const{
		//Returns the number of elements that are in
		//the vector.
		return this->m_size;
	};                   

	//Constructor, Destructors
	Dictionnary( );
	Dictionnary(const vector&, const vector&);
	Dictionnary(const Dictionnary& );
	~Dictionnary(void);

	//operators
	const vectorTree& operator[](size_type n) const;
	bool operator==(const Dictionnary&) const;

	const Dictionnary& operator=(const Dictionnary&);



	void insert(const vectorTree&); 
};
