Here we define different the remapped-id
rid, gid and lid are all unsigned long integer, and can be easily interchanged by mistake encapsulating avoid that this could happen. The second is readability, from the definition of function/structure we see immediately which id parameter accept/store
#include <ids.hpp>
Public Member Functions | |
rid (size_t id) | |
Cosntructor from id. | |
rid () | |
Constructor. | |
bool | operator<= (const rid &r) const |
Compare two gid. | |
bool | operator< (const rid &r) const |
Compare two gid. | |
rid | operator- (int i) const |
Subtract two gid. | |
rid | operator- (struct rid i) const |
Subtract two gid. | |
rid | operator+ (int i) const |
Sum two gid. | |
rid & | operator+= (const rid &i) |
Sum two gid. | |
rid & | operator++ () |
Increment the id. | |
bool | operator== (const rid &r) const |
compare two ids | |
Data Fields | |
idx_t | id |
id | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |