1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-27 21:01:50 +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

@ -34,7 +34,7 @@ ResourceNode::ResourceNode() : _lbid(0)
{
}
ResourceNode::ResourceNode(const ResourceNode &n) : _lbid(n._lbid)
ResourceNode::ResourceNode(const ResourceNode& n) : _lbid(n._lbid)
{
}
@ -46,47 +46,49 @@ ResourceNode::~ResourceNode()
{
}
ResourceNode & ResourceNode::operator=(const ResourceNode &n)
ResourceNode& ResourceNode::operator=(const ResourceNode& n)
{
static_cast<RGNode &>(*this) = static_cast<const RGNode &>(n);
_lbid = n._lbid;
return *this;
static_cast<RGNode&>(*this) = static_cast<const RGNode&>(n);
_lbid = n._lbid;
return *this;
}
bool ResourceNode::operator==(const ResourceNode &n) const
bool ResourceNode::operator==(const ResourceNode& n) const
{
return (_lbid == n._lbid);
return (_lbid == n._lbid);
}
bool ResourceNode::operator==(LBID_t l) const
{
return (_lbid == l);
return (_lbid == l);
}
bool ResourceNode::operator<(const ResourceNode &n) const
bool ResourceNode::operator<(const ResourceNode& n) const
{
return (_lbid < n._lbid);
return (_lbid < n._lbid);
}
LBID_t ResourceNode::lbid() const
{
return _lbid;
return _lbid;
}
void ResourceNode::wakeAndDetach()
{
TransactionNode *txn;
set<RGNode *>::iterator sit;
set<RGNode *>::iterator dummy_sit;
TransactionNode* txn;
set<RGNode*>::iterator sit;
set<RGNode*>::iterator dummy_sit;
for (sit = in.begin(); sit != in.end(); ) {
txn = dynamic_cast<TransactionNode *>(*sit);
txn->wake();
dummy_sit = ++sit;
removeInEdge(txn);
sit = dummy_sit;
}
in.clear();
for (sit = in.begin(); sit != in.end(); )
{
txn = dynamic_cast<TransactionNode*>(*sit);
txn->wake();
dummy_sit = ++sit;
removeInEdge(txn);
sit = dummy_sit;
}
in.clear();
}
}