Code clean up.
[SXSI/XMLTree.git] / libcds / src / static_sequence / wt_node_leaf.cpp
index 6c036fd..9d15193 100644 (file)
@@ -57,6 +57,11 @@ uint wt_node_leaf::access(uint pos) {
        return symbol;
 }
 
+uint wt_node_leaf::access(uint pos, uint &rank) {
+    rank = pos+1;
+    return symbol;
+}
+
 void wt_node_leaf::access(vector<int> &result, uint i, uint j, uint min, uint max, uint l, uint pivot)
 {
 //    std::cout << "At l = " << l << ", [" << i << ", " << j  << "], [" << min << ", " << max << "], symbol = " << symbol << std::endl;