1
0
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:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@ -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