1: // Created by Frank M. Carrano and Tim Henry.
2: // Copyright (c) 2013 __Pearson Education__. All rights reserved.
4: /** Listing C1-4
5: @file PlainBox.cpp */
6:
7: #include "PlainBox.h"
9: template<class ItemType>
10: PlainBox<ItemType>::PlainBox()
11: {
12: } // end default constructor
14: template<class ItemType>
15: PlainBox<ItemType>::PlainBox(const ItemType& theItem)
16: {
17: item = theItem;
18: } // end constructor
20: template<class ItemType>
21: void PlainBox<ItemType>::setItem(const ItemType& theItem)
22: {
23: item = theItem;
24: } // end setItem
26: template<class ItemType>
27: ItemType PlainBox<ItemType>::getItem() const
28: {
29: return item;
30: } // end getItem