30 lines
459 B
C++
30 lines
459 B
C++
#include "types.hpp"
|
|
|
|
aes_col::aes_col()
|
|
{
|
|
this->column[0] = 0;
|
|
this->column[1] = 0;
|
|
this->column[2] = 0;
|
|
this->column[3] = 0;
|
|
}
|
|
|
|
bool aes_col::operator==(const aes_col &other) const
|
|
{
|
|
for (int i = 0;i < 4;i++)
|
|
{
|
|
if (this->column[i] != other.column[i])
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
bool aes_col::operator<(const aes_col &other) const
|
|
{
|
|
for (int i = 0;i < 4;i++)
|
|
{
|
|
if (this->column[i] < other.column[i])
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|