You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-02 17:22:27 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -27,7 +27,8 @@ using namespace std;
|
||||
#include "treenodeimpl.h"
|
||||
#include "objectreader.h"
|
||||
|
||||
namespace execplan {
|
||||
namespace execplan
|
||||
{
|
||||
/**
|
||||
* Constructors/Destructors
|
||||
*/
|
||||
@ -46,46 +47,49 @@ TreeNodeImpl::~TreeNodeImpl()
|
||||
*/
|
||||
void TreeNodeImpl::serialize(messageqcpp::ByteStream& b) const
|
||||
{
|
||||
b << (ObjectReader::id_t) ObjectReader::TREENODEIMPL;
|
||||
b << fData;
|
||||
b << (ObjectReader::id_t) ObjectReader::TREENODEIMPL;
|
||||
b << fData;
|
||||
}
|
||||
|
||||
void TreeNodeImpl::unserialize(messageqcpp::ByteStream& b)
|
||||
{
|
||||
ObjectReader::checkType(b, ObjectReader::TREENODEIMPL);
|
||||
b >> fData;
|
||||
ObjectReader::checkType(b, ObjectReader::TREENODEIMPL);
|
||||
b >> fData;
|
||||
}
|
||||
|
||||
|
||||
const string TreeNodeImpl::toString() const
|
||||
{
|
||||
return string(">TreeNodeImpl<");
|
||||
return string(">TreeNodeImpl<");
|
||||
}
|
||||
|
||||
bool TreeNodeImpl::operator==(const TreeNodeImpl& t) const
|
||||
{
|
||||
if (fData == t.fData)
|
||||
return true;
|
||||
return false;
|
||||
if (fData == t.fData)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TreeNodeImpl::operator==(const TreeNode* t) const
|
||||
{
|
||||
const TreeNodeImpl *tni;
|
||||
|
||||
tni = dynamic_cast<const TreeNodeImpl*>(t);
|
||||
if (tni == NULL)
|
||||
return false;
|
||||
return *this == *tni;
|
||||
const TreeNodeImpl* tni;
|
||||
|
||||
tni = dynamic_cast<const TreeNodeImpl*>(t);
|
||||
|
||||
if (tni == NULL)
|
||||
return false;
|
||||
|
||||
return *this == *tni;
|
||||
}
|
||||
|
||||
bool TreeNodeImpl::operator!=(const TreeNodeImpl& t) const
|
||||
{
|
||||
return !(*this == t);
|
||||
return !(*this == t);
|
||||
}
|
||||
|
||||
bool TreeNodeImpl::operator!=(const TreeNode* t) const
|
||||
{
|
||||
return !(*this == t);
|
||||
return !(*this == t);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -93,8 +97,8 @@ bool TreeNodeImpl::operator!=(const TreeNode* t) const
|
||||
*/
|
||||
ostream& operator<<(ostream& output, const TreeNodeImpl& rhs)
|
||||
{
|
||||
output << rhs.toString();
|
||||
return output;
|
||||
}
|
||||
output << rhs.toString();
|
||||
return output;
|
||||
}
|
||||
|
||||
} // namespace execplan
|
||||
|
Reference in New Issue
Block a user