#include "slot_base.h" bool slot_base::data_container::operator== (const slot_base::data_container& other) const { // TODO: should use memcmp or equivalent // do a bytewise comparison for (int i=0;idata[i] != other.data[i] ) { return false; } } // must be a perfect match return true; } void slot_base::data_container::zero() { // do a bytewise zeroing for (int i=0;idata[i] = 0; } } slot_base::slot_base () { for (int i=0;idata[i] == other.data[i]) ) return false; } // all data matched return true; }