1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

clang format apply

This commit is contained in:
Leonid Fedorov
2022-01-21 16:43:49 +00:00
parent 6b6411229f
commit 04752ec546
1376 changed files with 393460 additions and 412662 deletions

View File

@ -16,10 +16,10 @@
MA 02110-1301, USA. */
/***********************************************************************
* $Id: treenodeimpl.h 9210 2013-01-21 14:10:42Z rdempsey $
*
*
***********************************************************************/
* $Id: treenodeimpl.h 9210 2013-01-21 14:10:42Z rdempsey $
*
*
***********************************************************************/
/** @file */
#pragma once
@ -45,91 +45,87 @@ namespace execplan
*/
class TreeNodeImpl : public TreeNode
{
public:
/**
* Constructors
*/
TreeNodeImpl();
TreeNodeImpl(const std::string& sql);
// not needed yet
// TreeNodeImpl(const TreeNodeImpl& rhs);
public:
/**
* Destructors
*/
virtual ~TreeNodeImpl();
/**
* Accessor Methods
*/
/**
* Constructors
*/
TreeNodeImpl();
TreeNodeImpl(const std::string& sql);
// not needed yet
//TreeNodeImpl(const TreeNodeImpl& rhs);
/**
* Operations
*/
virtual const std::string toString() const;
/**
* Destructors
*/
virtual ~TreeNodeImpl();
/**
* Accessor Methods
*/
virtual const std::string data() const
{
return fData;
}
virtual void data(const std::string data)
{
fData = data;
}
/**
* Operations
*/
virtual const std::string toString() const;
/** return a copy of this pointer
*
* deep copy of this pointer and return the copy
*/
inline virtual TreeNodeImpl* clone() const
{
return new TreeNodeImpl(*this);
}
virtual const std::string data() const
{
return fData;
}
virtual void data(const std::string data)
{
fData = data;
}
/**
* The serialization interface
*/
virtual void serialize(messageqcpp::ByteStream&) const;
virtual void unserialize(messageqcpp::ByteStream&);
/** return a copy of this pointer
*
* deep copy of this pointer and return the copy
*/
inline virtual TreeNodeImpl* clone() const
{
return new TreeNodeImpl (*this);
}
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return true iff every member of t is a duplicate copy of every member of this; false otherwise
*/
virtual bool operator==(const TreeNode* t) const;
/**
* The serialization interface
*/
virtual void serialize(messageqcpp::ByteStream&) const;
virtual void unserialize(messageqcpp::ByteStream&);
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return true iff every member of t is a duplicate copy of every member of this; false otherwise
*/
bool operator==(const TreeNodeImpl& t) const;
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return true iff every member of t is a duplicate copy of every member of this; false otherwise
*/
virtual bool operator==(const TreeNode* t) const;
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return false iff every member of t is a duplicate copy of every member of this; true otherwise
*/
virtual bool operator!=(const TreeNode* t) const;
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return true iff every member of t is a duplicate copy of every member of this; false otherwise
*/
bool operator==(const TreeNodeImpl& t) const;
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return false iff every member of t is a duplicate copy of every member of this; true otherwise
*/
bool operator!=(const TreeNodeImpl& t) const;
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return false iff every member of t is a duplicate copy of every member of this; true otherwise
*/
virtual bool operator!=(const TreeNode* t) const;
/** @brief Do a deep, strict (as opposed to semantic) equivalence test
*
* Do a deep, strict (as opposed to semantic) equivalence test.
* @return false iff every member of t is a duplicate copy of every member of this; true otherwise
*/
bool operator!=(const TreeNodeImpl& t) const;
private:
//default okay
//TreeNodeImpl& operator=(const TreeNodeImpl& rhs);
std::string fData;
private:
// default okay
// TreeNodeImpl& operator=(const TreeNodeImpl& rhs);
std::string fData;
};
std::ostream& operator<<(std::ostream& os, const TreeNodeImpl& rhs);
}
} // namespace execplan