| Line | |
|---|
| 1 | #ifndef EdgeList_h |
|---|
| 2 | #define EdgeList_h |
|---|
| 3 | |
|---|
| 4 | class EdgeList |
|---|
| 5 | { |
|---|
| 6 | public: |
|---|
| 7 | EdgeList(); |
|---|
| 8 | virtual ~EdgeList(); |
|---|
| 9 | |
|---|
| 10 | public: |
|---|
| 11 | void Clear(); |
|---|
| 12 | void Add(unsigned uNode1, unsigned uNode2); |
|---|
| 13 | unsigned GetCount() const; |
|---|
| 14 | void GetEdge(unsigned uIndex, unsigned *ptruNode1, unsigned *ptruNode2) const; |
|---|
| 15 | void Copy(const EdgeList &rhs); |
|---|
| 16 | void LogMe() const; |
|---|
| 17 | |
|---|
| 18 | private: |
|---|
| 19 | void Expand(); |
|---|
| 20 | |
|---|
| 21 | private: |
|---|
| 22 | unsigned m_uCount; |
|---|
| 23 | unsigned m_uCacheSize; |
|---|
| 24 | unsigned *m_uNode1; |
|---|
| 25 | unsigned *m_uNode2; |
|---|
| 26 | }; |
|---|
| 27 | |
|---|
| 28 | #endif // EdgeList_h |
|---|
Note: See
TracBrowser
for help on using the repository browser.