Skip to content

Commit

Permalink
Add common/src/Node.C
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent 89ec512 commit 8334be0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions common/src/Node.C
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/


// Node class implementation

#include "Graph.h"
#include "Edge.h"
#include "Node.h"
#include <assert.h>

#include "common/src/NodeIterator.h"

// Nodes are quite simple; they have an Insn, an Absloc, and a set of Edges.

using namespace Dyninst;

const Address Node::INVALID_ADDR = (Address) -1;
Expand Down Expand Up @@ -144,15 +139,13 @@ std::string VirtualNode::format() const {
return name_;
}

// Prefix...
NodeIterator &NodeIterator::operator++() {
if (!iter_) return *this;

iter_->inc();
return *this;
}

// Postfix...
NodeIterator NodeIterator::operator++(int) {
NodeIterator ret = *this;
++(*this);
Expand Down

0 comments on commit 8334be0

Please sign in to comment.