You've already forked mariadb-columnstore-engine
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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user