-
Notifications
You must be signed in to change notification settings - Fork 1
/
EdgeList.h
47 lines (35 loc) · 1.04 KB
/
EdgeList.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef _EDGELIST_
#define _EDGELIST_
#include "Edge.h"
#include "Role.h"
#include "ExpressionNode.h"
#include <vector>
using namespace std;
class Individual;
class Role;
class Node;
class DependencySet;
typedef vector<Edge*> EdgeVector;
class EdgeList
{
public:
EdgeList();
void addEdge(Edge* pEdge);
bool removeEdge(Edge* pEdge);
void findEdges(Role* pRole, Individual* pFrom, Node* pTo, EdgeList* pEdgeList);
void getEdges(Role* pRole, EdgeList* pEdgeList);
void getEdgesTo(Node* pTo, EdgeList* pEdgeList);
void getNeighbors(Node* pNode, void* pSetNeighbors);
void getPredecessors(void* pPredecessors);
void getSuccessors(void* pSuccessors);
void getRoles(RoleSet* pRoles);
DependencySet* getDepends(bool bDoExplanation);
bool hasEdge(Role* pRole);
bool hasEdge(Individual* pFrom, Role* pRole, Node* pTo);
bool hasEdge(Edge* pEdge);
bool hasEdgeTo(Node* pNode);
void getFilteredNeighbors(Individual* pNode, ExprNode* pC, void* pNodes);
int size() { return m_listEdge.size(); }
EdgeVector m_listEdge;
};
#endif