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

@ -20,7 +20,7 @@
*
*****************************************************************************/
/** @file
/** @file
* class XXX interface
*/
@ -35,48 +35,52 @@
#define EXPORT
#endif
namespace BRM {
namespace BRM
{
class ResourceNode : public RGNode
{
public:
EXPORT ResourceNode();
EXPORT ResourceNode(const ResourceNode &);
EXPORT ResourceNode(LBID_t);
EXPORT virtual ~ResourceNode();
public:
EXPORT ResourceNode();
EXPORT ResourceNode(const ResourceNode&);
EXPORT ResourceNode(LBID_t);
EXPORT virtual ~ResourceNode();
EXPORT ResourceNode& operator=(const ResourceNode &);
EXPORT bool operator==(const ResourceNode &) const;
EXPORT bool operator==(LBID_t) const;
EXPORT bool operator<(const ResourceNode &) const;
EXPORT ResourceNode& operator=(const ResourceNode&);
EXPORT bool operator==(const ResourceNode&) const;
EXPORT bool operator==(LBID_t) const;
EXPORT bool operator<(const ResourceNode&) const;
EXPORT void wakeAndDetach();
EXPORT void wakeAndDetach();
EXPORT LBID_t lbid() const;
private:
LBID_t _lbid;
EXPORT LBID_t lbid() const;
private:
LBID_t _lbid;
};
template<typename T>
struct RNLess {
bool operator()(const T &x, const T &y) const
{
return *x < *y;
}
struct RNLess
{
bool operator()(const T& x, const T& y) const
{
return *x < *y;
}
};
struct RNHasher {
size_t operator()(const ResourceNode *x) const
{
return x->lbid();
}
struct RNHasher
{
size_t operator()(const ResourceNode* x) const
{
return x->lbid();
}
};
struct RNEquals {
bool operator()(const ResourceNode *x, const ResourceNode *y) const
{
return *x == *y;
}
struct RNEquals
{
bool operator()(const ResourceNode* x, const ResourceNode* y) const
{
return *x == *y;
}
};
}