#include "intcellfull.h"

IntCellFull::IntCellFull(int initValue){
  value = new int(initValue);
}

IntCellFull::IntCellFull(const IntCellFull& rhs){
  value = new int(*(rhs.value));
  // or
  // value = new int(rhs.getValue())
}

const IntCellFull& IntCellFull::operator=(const IntCellFull& rhs){
  if( this != &rhs ){
    *value = *(rhs.value);
    // or
    // setValue(rhs.getValue())
    // setValue(*rhs.value)
  }

  return *this;
}

int IntCellFull::getValue() const{
  return *value;
}

void IntCellFull::setValue(int newValue){
  *value = newValue;
}
