#ifndef OBJECTCELL_H #define OBJECTCELL_H template class ObjectCell { public: explicit ObjectCell( const Object & initialValue = Object( ) ) : storedValue( initialValue ) { } const Object & getValue( ) const { return storedValue; } void setValue( const Object & val ) { storedValue = val; } private: Object storedValue; }; #endif