changeset 1997 | b7a70cdb5520 |
parent 1991 | d7442141d9ef |
child 1999 | 2ff283124dfc |
20:61e390f77092 | 21:cbbbadd096c0 |
---|---|
809 } |
809 } |
810 |
810 |
811 static int aNodeId(const Node& node) { |
811 static int aNodeId(const Node& node) { |
812 return node.id >> 1; |
812 return node.id >> 1; |
813 } |
813 } |
814 static Node fromANodeId(int id, Node) { |
814 static Node fromANodeId(int id) { |
815 return Node(id << 1); |
815 return Node(id << 1); |
816 } |
816 } |
817 int maxANodeId() const { |
817 int maxANodeId() const { |
818 return aNodes.size(); |
818 return aNodes.size(); |
819 } |
819 } |