
Former-commit-id: 54638fc7623ec0485109b0b5879144f8f2514213 Former-commit-id: 23f43cd31169d95df12ae1c207d9fd1c924d26b1
29 lines
507 B
C++
29 lines
507 B
C++
#ifndef EdgeList_h
|
|
#define EdgeList_h
|
|
|
|
class EdgeList
|
|
{
|
|
public:
|
|
EdgeList();
|
|
virtual ~EdgeList();
|
|
|
|
public:
|
|
void Clear();
|
|
void Add(unsigned uNode1, unsigned uNode2);
|
|
unsigned GetCount() const;
|
|
void GetEdge(unsigned uIndex, unsigned *ptruNode1, unsigned *ptruNode2) const;
|
|
void Copy(const EdgeList &rhs);
|
|
void LogMe() const;
|
|
|
|
private:
|
|
void Expand();
|
|
|
|
private:
|
|
unsigned m_uCount;
|
|
unsigned m_uCacheSize;
|
|
unsigned *m_uNode1;
|
|
unsigned *m_uNode2;
|
|
};
|
|
|
|
#endif // EdgeList_h
|