Initial
This commit is contained in:
29
types.cpp
Normal file
29
types.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user