fixed class decl order for VMS
This commit is contained in:
+29
-26
@@ -31,6 +31,9 @@
|
||||
*
|
||||
* History
|
||||
* $Log$
|
||||
* Revision 1.5 1996/11/02 01:07:19 jhill
|
||||
* many improvements
|
||||
*
|
||||
* Revision 1.4 1996/08/14 12:32:09 jbk
|
||||
* added first() to list class, added first()/last() to iterator.
|
||||
*
|
||||
@@ -49,6 +52,31 @@
|
||||
#ifndef tsDLListH_include
|
||||
#define tsDLListH_include
|
||||
|
||||
//
|
||||
// tsDLNode<T>
|
||||
//
|
||||
template <class T>
|
||||
class tsDLNode {
|
||||
friend class tsDLList<T>;
|
||||
friend class tsDLIter<T>;
|
||||
friend class tsDLFwdIter<T>;
|
||||
friend class tsDLBwdIter<T>;
|
||||
public:
|
||||
tsDLNode() : pNext(0), pPrev(0) {}
|
||||
//
|
||||
// when someone copies in a class deriving from this
|
||||
// do _not_ change the node pointers
|
||||
//
|
||||
void operator = (tsDLNode<T> &) {}
|
||||
|
||||
protected:
|
||||
T *getNext(void) { return pNext; }
|
||||
T *getPrev(void) { return pPrev; }
|
||||
private:
|
||||
T *pNext;
|
||||
T *pPrev;
|
||||
};
|
||||
|
||||
//
|
||||
// tsDLList<T>
|
||||
//
|
||||
@@ -278,31 +306,6 @@ private:
|
||||
unsigned itemCount;
|
||||
};
|
||||
|
||||
//
|
||||
// tsDLNode<T>
|
||||
//
|
||||
template <class T>
|
||||
class tsDLNode {
|
||||
friend class tsDLList<T>;
|
||||
friend class tsDLIter<T>;
|
||||
friend class tsDLFwdIter<T>;
|
||||
friend class tsDLBwdIter<T>;
|
||||
public:
|
||||
tsDLNode() : pNext(0), pPrev(0) {}
|
||||
//
|
||||
// when someone copies in a class deriving from this
|
||||
// do _not_ change the node pointers
|
||||
//
|
||||
void operator = (tsDLNode<T> &) {}
|
||||
|
||||
protected:
|
||||
T *getNext(void) { return pNext; }
|
||||
T *getPrev(void) { return pPrev; }
|
||||
private:
|
||||
T *pNext;
|
||||
T *pPrev;
|
||||
};
|
||||
|
||||
//
|
||||
// tsDLIter<T>
|
||||
//
|
||||
@@ -482,7 +485,7 @@ template <class T>
|
||||
class tsDLBwdIter : private tsDLIter<T> {
|
||||
public:
|
||||
tsDLBwdIter(tsDLList<T> &listIn) :
|
||||
tsDLIter<T>(&listIn) {}
|
||||
tsDLIter<T>(listIn) {}
|
||||
|
||||
void reset ()
|
||||
{
|
||||
|
||||
+25
-21
@@ -31,6 +31,9 @@
|
||||
*
|
||||
* History
|
||||
* $Log$
|
||||
* Revision 1.5 1996/11/02 01:07:20 jhill
|
||||
* many improvements
|
||||
*
|
||||
* Revision 1.4 1996/09/04 19:57:07 jhill
|
||||
* string id resource now copies id
|
||||
*
|
||||
@@ -50,6 +53,27 @@
|
||||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
//
|
||||
// tsSLNode<>
|
||||
//
|
||||
template <class T>
|
||||
class tsSLNode {
|
||||
friend class tsSLList<T>;
|
||||
friend class tsSLIter<T>;
|
||||
public:
|
||||
tsSLNode() : pNext(0) {}
|
||||
|
||||
//
|
||||
// when someone copies into a class deriving from this
|
||||
// do _not_ change the node pointers
|
||||
//
|
||||
void operator = (tsSLNode<T> &) {}
|
||||
|
||||
private:
|
||||
T *pNext;
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
// tsSLList<>
|
||||
//
|
||||
@@ -112,27 +136,7 @@ public:
|
||||
};
|
||||
|
||||
//
|
||||
// tsSLNode<>
|
||||
//
|
||||
template <class T>
|
||||
class tsSLNode {
|
||||
friend class tsSLList<T>;
|
||||
friend class tsSLIter<T>;
|
||||
public:
|
||||
tsSLNode() : pNext(0) {}
|
||||
|
||||
//
|
||||
// when someone copies into a class deriving from this
|
||||
// do _not_ change the node pointers
|
||||
//
|
||||
void operator = (tsSLNode<T> &) {}
|
||||
|
||||
private:
|
||||
T *pNext;
|
||||
};
|
||||
|
||||
//
|
||||
// tsDLFwdIter<T>
|
||||
// tsSLIter<T>
|
||||
//
|
||||
// Notes:
|
||||
// 1) No direct access to pCurrent is provided since
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
*
|
||||
* History
|
||||
* $Log$
|
||||
* Revision 1.5 1996/11/02 01:07:19 jhill
|
||||
* many improvements
|
||||
*
|
||||
* Revision 1.4 1996/08/14 12:32:09 jbk
|
||||
* added first() to list class, added first()/last() to iterator.
|
||||
*
|
||||
@@ -49,6 +52,31 @@
|
||||
#ifndef tsDLListH_include
|
||||
#define tsDLListH_include
|
||||
|
||||
//
|
||||
// tsDLNode<T>
|
||||
//
|
||||
template <class T>
|
||||
class tsDLNode {
|
||||
friend class tsDLList<T>;
|
||||
friend class tsDLIter<T>;
|
||||
friend class tsDLFwdIter<T>;
|
||||
friend class tsDLBwdIter<T>;
|
||||
public:
|
||||
tsDLNode() : pNext(0), pPrev(0) {}
|
||||
//
|
||||
// when someone copies in a class deriving from this
|
||||
// do _not_ change the node pointers
|
||||
//
|
||||
void operator = (tsDLNode<T> &) {}
|
||||
|
||||
protected:
|
||||
T *getNext(void) { return pNext; }
|
||||
T *getPrev(void) { return pPrev; }
|
||||
private:
|
||||
T *pNext;
|
||||
T *pPrev;
|
||||
};
|
||||
|
||||
//
|
||||
// tsDLList<T>
|
||||
//
|
||||
@@ -278,31 +306,6 @@ private:
|
||||
unsigned itemCount;
|
||||
};
|
||||
|
||||
//
|
||||
// tsDLNode<T>
|
||||
//
|
||||
template <class T>
|
||||
class tsDLNode {
|
||||
friend class tsDLList<T>;
|
||||
friend class tsDLIter<T>;
|
||||
friend class tsDLFwdIter<T>;
|
||||
friend class tsDLBwdIter<T>;
|
||||
public:
|
||||
tsDLNode() : pNext(0), pPrev(0) {}
|
||||
//
|
||||
// when someone copies in a class deriving from this
|
||||
// do _not_ change the node pointers
|
||||
//
|
||||
void operator = (tsDLNode<T> &) {}
|
||||
|
||||
protected:
|
||||
T *getNext(void) { return pNext; }
|
||||
T *getPrev(void) { return pPrev; }
|
||||
private:
|
||||
T *pNext;
|
||||
T *pPrev;
|
||||
};
|
||||
|
||||
//
|
||||
// tsDLIter<T>
|
||||
//
|
||||
@@ -482,7 +485,7 @@ template <class T>
|
||||
class tsDLBwdIter : private tsDLIter<T> {
|
||||
public:
|
||||
tsDLBwdIter(tsDLList<T> &listIn) :
|
||||
tsDLIter<T>(&listIn) {}
|
||||
tsDLIter<T>(listIn) {}
|
||||
|
||||
void reset ()
|
||||
{
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
*
|
||||
* History
|
||||
* $Log$
|
||||
* Revision 1.5 1996/11/02 01:07:20 jhill
|
||||
* many improvements
|
||||
*
|
||||
* Revision 1.4 1996/09/04 19:57:07 jhill
|
||||
* string id resource now copies id
|
||||
*
|
||||
@@ -50,6 +53,27 @@
|
||||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
//
|
||||
// tsSLNode<>
|
||||
//
|
||||
template <class T>
|
||||
class tsSLNode {
|
||||
friend class tsSLList<T>;
|
||||
friend class tsSLIter<T>;
|
||||
public:
|
||||
tsSLNode() : pNext(0) {}
|
||||
|
||||
//
|
||||
// when someone copies into a class deriving from this
|
||||
// do _not_ change the node pointers
|
||||
//
|
||||
void operator = (tsSLNode<T> &) {}
|
||||
|
||||
private:
|
||||
T *pNext;
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
// tsSLList<>
|
||||
//
|
||||
@@ -112,27 +136,7 @@ public:
|
||||
};
|
||||
|
||||
//
|
||||
// tsSLNode<>
|
||||
//
|
||||
template <class T>
|
||||
class tsSLNode {
|
||||
friend class tsSLList<T>;
|
||||
friend class tsSLIter<T>;
|
||||
public:
|
||||
tsSLNode() : pNext(0) {}
|
||||
|
||||
//
|
||||
// when someone copies into a class deriving from this
|
||||
// do _not_ change the node pointers
|
||||
//
|
||||
void operator = (tsSLNode<T> &) {}
|
||||
|
||||
private:
|
||||
T *pNext;
|
||||
};
|
||||
|
||||
//
|
||||
// tsDLFwdIter<T>
|
||||
// tsSLIter<T>
|
||||
//
|
||||
// Notes:
|
||||
// 1) No direct access to pCurrent is provided since
|
||||
|
||||
Reference in New Issue
Block a user