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

@ -36,53 +36,52 @@
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>
template <typename T>
struct RNLess
{
bool operator()(const T& x, const T& y) const
{
return *x < *y;
}
bool operator()(const T& x, const T& y) const
{
return *x < *y;
}
};
struct RNHasher
{
size_t operator()(const ResourceNode* x) const
{
return x->lbid();
}
size_t operator()(const ResourceNode* x) const
{
return x->lbid();
}
};
struct RNEquals
{
bool operator()(const ResourceNode* x, const ResourceNode* y) const
{
return *x == *y;
}
bool operator()(const ResourceNode* x, const ResourceNode* y) const
{
return *x == *y;
}
};
}
} // namespace BRM
#undef EXPORT