Skip to content

Commit

Permalink
Update common/h/Buffer.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent a5912b3 commit 9e9f149
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common/h/Buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ class COMMON_EXPORT Buffer {
bool operator!=(const iterator<storage> &rhs) const {
return rhs.pos != pos;
}
iterator<storage> operator++() { // prefix
iterator<storage> operator++() {
assert(valid);
++pos;
return *this;
}

iterator<storage> operator++(int) { // postfix
iterator<storage> operator++(int) {
assert(valid);
iterator<storage> i = *this;
++pos;
Expand Down Expand Up @@ -114,7 +114,6 @@ class COMMON_EXPORT Buffer {
Address curAddr() const { return start_ + size_; }

private:
// May call realloc();
void increase_allocation(int added);
unsigned char * cur_ptr() const;

Expand Down
4 changes: 4 additions & 0 deletions docs/common/public/Graph.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ Graph.h

Returns the entry nodes (nodes without any incoming edges) of the graph.

If you want to traverse the graph start here.

.. cpp:function:: virtual void exitNodes(NodeIterator &begin, NodeIterator &end)

Returns the exit nodes (nodes without any outgoing edges) of the graph.

If you want to traverse the graph backwards start here.

.. cpp:function:: virtual void allNodes(NodeIterator &begin, NodeIterator &end)

Iterates all nodes in the graph.
Expand Down

0 comments on commit 9e9f149

Please sign in to comment.