-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. _`sec:dev-Edge.h`: | ||
|
||
Edge.h | ||
###### | ||
|
||
.. cpp:namespace:: Dyninst::dev | ||
|
||
.. cpp:class:: Edge | ||
|
||
.. cpp:type:: private boost::shared_ptr<Node> NodeSharedPtr | ||
.. cpp:type:: private boost::weak_ptr<Node> NodePtr | ||
|
||
These member functions are technically all private because :cpp:type:`NodeSharedPtr` and | ||
:cpp:type:`NodePtr` are private. | ||
|
||
.. cpp:function:: static Ptr createEdge(const NodeSharedPtr source, const NodeSharedPtr target); | ||
|
||
Create a new directed edge from ``source`` to ``target``. | ||
|
||
.. cpp:function:: NodeSharedPtr source() const | ||
.. cpp:function:: NodeSharedPtr target() const | ||
|
||
Return the source / target Dyninst::Node. | ||
|
||
.. cpp:function:: void setSource(NodeSharedPtr source) | ||
.. cpp:function:: void setTarget(NodeSharedPtr target) | ||
|
||
.. cpp:class:: EdgeIterator | ||
|
||
.. cpp:type:: protected EdgeIteratorImpl *iter_ | ||
|
||
We hide the internal iteration behavior behind a pointer. | ||
This allows us to override. | ||
|
||
.. cpp:class:: EdgeIteratorImpl | ||
|
||
.. cpp:function:: virtual void inc() = 0; | ||
.. cpp:function:: virtual Dyninst::Edge::Ptr get() = 0; | ||
.. cpp:function:: virtual bool equals(EdgeIteratorImpl *) = 0; | ||
.. cpp:function:: virtual EdgeIteratorImpl *copy() = 0; | ||
|
||
.. cpp:class:: EdgeIteratorSet : public EdgeIteratorImpl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters