#ifndef STORAGE_CELL_H #define STORAGE_CELL_H #include "MemoryCell.h" // A class for simulating a memory cell. template class StorageCell : private MemoryCell { public: explicit StorageCell( const Object & initialValue = Object( ) ) : MemoryCell( initialValue ) { } const Object & get( ) const { return read( ); } void put( const Object & x ) { write( x ); } }; #endif