projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cyclegraph: don't export CycleNode::edges directly, use accessors
[model-checker.git]
/
cyclegraph.h
diff --git
a/cyclegraph.h
b/cyclegraph.h
index f0f04ffee0c3ca1f9cd3ef2edf46c2743e6c0515..829c845f75b1a34019922c02640e092ee88ae004 100644
(file)
--- a/
cyclegraph.h
+++ b/
cyclegraph.h
@@
-63,7
+63,8
@@
class CycleNode {
public:
CycleNode(const ModelAction *action);
bool addEdge(CycleNode * node);
public:
CycleNode(const ModelAction *action);
bool addEdge(CycleNode * node);
- std::vector<CycleNode *> * getEdges();
+ CycleNode * getEdge(unsigned int i) const;
+ unsigned int getNumEdges() const;
bool setRMW(CycleNode *);
CycleNode* getRMW();
const ModelAction * getAction() {return action;};
bool setRMW(CycleNode *);
CycleNode* getRMW();
const ModelAction * getAction() {return action;};