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. More... | |
rid () | |
Constructor. | |
bool | operator<= (const rid &r) const |
Compare two gid. More... | |
bool | operator< (const rid &r) const |
Compare two gid. More... | |
rid | operator- (int i) const |
Subtract two gid. More... | |
rid | operator- (struct rid i) const |
Subtract two gid. More... | |
rid | operator+ (int i) const |
Sum two gid. More... | |
rid & | operator+= (const rid &i) |
Sum two gid. More... | |
rid & | operator++ () |
Increment the id. More... | |
bool | operator== (const rid &r) const |
compare two ids More... | |
Data Fields | |
idx_t | id |
id | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |