Files
Work/test/PAGE.CPP
2024-08-07 09:16:27 -04:00

78 lines
1.1 KiB
C++

#include <test/page.hpp>
PurePage::PurePage(int rows,int cols)
{
createPage(rows,cols);
setState(Created);
}
PurePage::PurePage(const PurePage &somePurePage)
{
*this=somePurePage;
}
PurePage::~PurePage()
{
}
PurePage &PurePage::operator=(const PurePage &somePurePage)
{
return *this;
}
bool PurePage::operator==(const PurePage &somePurePage)const
{
return false;
}
bool PurePage::setAt(Page &page)
{
return false;
}
bool PurePage::getAt(int row,int col,Char &charData)
{
return false;
}
bool PurePage::getAt(int row,Row &rowData)
{
return false;
}
bool PurePage::setAt(int row,int col,Char &charData)
{
return false;
}
bool PurePage::setAt(int row,Row &rowData)
{
return false;
}
void PurePage::setState(State state)
{
mState|=int(state);
}
void PurePage::clearState(State state)
{
mState|=int(~state);
}
bool PurePage::queryState(State state)const
{
return mState&state;
}
void PurePage::createPage(int rows,int cols)
{
mPage.reserve(rows);
for(int index=0;index<rows;index++)mPage[index].reserve(cols);
}
bool PurePage::copyPage(Page &page)
{
return false;
}