/**************************************************************************************************/
/*                                                                                                */
/*  Name:  DarC KonQuesT                                                                          */
/*  Program:  #3                                                                                  */
/*  Date:  2005.2.8                                                                               */
/*  Purpose:                                                                                      */
/*  stockListType class implementation file, which allows for creating ordered, linked lists      */
/*  (using orderedListType.h) of type stockType (from stockType.h/cpp).                           */
/*  Includes operator overloading and assorted functions.                                         */   
/*                                                                                                */
/*                                                                                                */
/**************************************************************************************************/
#include <iostream>
#include <string>
#include <cassert>
#include "stockType.h"
#include "stockListType.h"
#include "orderedListType.h"

using namespace std;


//extraction operator overloading - populates list with data
istream& operator>>(istream& input, stockListType& stock_list) {
  while(input>>stock_list.stock_in)
	{
	  stock_list.insertNode(stock_list.stock_in);
	}
}

/*  Name: stockListType - constructor                                                                                 */
/*  Purpose: Inherits orderedLinkedListType from orderedListType.h                                                    */
/*  Parameters:  None                                                                                                 */
/*  Preconditions:  orderedLinkedListType exists                                                                      */
/*  Postconditions:  Inheritance is setup so an ordered, linked list can be created                                   */


stockListType::stockListType(): orderedLinkedListType<stockType>() {
	
}


