Inheritance diagram for DataIn:
Public Member Functions | |
DataIn (int anInt) | |
DataIn () | |
bool | operator< (const DataIn &aDI) const |
bool | operator== (const DataIn &aDI) const |
Private Attributes | |
int | _seq_num |
time_t | _creation_time |
Friends | |
std::ostream & | operator<< (ostream &aO, const DataIn &aDI) |
std::istream & | operator>> (istream &aI, DataIn &aDI) |
Note that this class does not contain any virtual method : This is a POD (Plain Old Data) object which can be binary copied from and to a stream.
DataIn::DataIn | ( | int | anInt | ) | [inline] |
DataIn::DataIn | ( | ) | [inline] |
bool DataIn::operator< | ( | const DataIn & | aDI | ) | const [inline] |
This is necessary when testing the results, because all the processed elements are put in std::multiset.
bool DataIn::operator== | ( | const DataIn & | aDI | ) | const [inline] |
std::ostream& operator<< | ( | ostream & | aO, | |
const DataIn & | aDI | |||
) | [friend] |
It must be possible to deserialize this object without ambiguity. It is possible to use binary IOs because there are much faster. But, it is mandatory that this class is a POD (Plain Old Data).
std::istream& operator>> | ( | istream & | aI, | |
DataIn & | aDI | |||
) | [friend] |
It is possible to use binary IOs because there are much faster. But, it is mandatory that this class is a POD (Plain Old Data).
time_t DataIn::_creation_time [private] |
int DataIn::_seq_num [private] |