home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
WmtRWTOPtrSet.hxx
< prev
next >
Wrap
Text File
|
1996-05-31
|
2KB
|
52 lines
/*---------------------------------------------------------------------------
*
* (c) Westmount Technology 1994
*
* File: @(#)WmtRWTOPtrSet.hxx 1.1
* Author: wmt
* Description: ordered pointer set based on RogueWave library
*---------------------------------------------------------------------------
SccsId = @(#)WmtRWTPtrSet.hxx 1.2 6/3/94 Copyright 1994 Westmount Technology */
#ifndef WMTRWTOPTRSET_HXX
#define WMTRWTOPTRSET_HXX
#ifndef __RWTVSLIST_H__
#include "rw/tvslist.h"
#endif
typedef void* voidPtr;
template<class T>
#ifdef __GNUG__
class WmtRWTOPtrSet : public RWTValSlist<voidPtr> {
#else
class WmtRWTOPtrSet : private RWTValSlist<voidPtr> {
#endif
public:
WmtRWTOPtrSet() : RWTValSlist<voidPtr>() {}
WmtRWTOPtrSet(const WmtRWTOPtrSet<T> &set) :
RWTValSlist<voidPtr>(set) {}
T *operator[](size_t i) const
{ return (T *)RWTValSlist<voidPtr>::operator[](i); }
void append(T *ptr)
{ RWTValSlist<voidPtr>::append(ptr); }
T *at(size_t i) const
{ return (T *)RWTValSlist<voidPtr>::at(i); }
void clear()
{ RWTValSlist<voidPtr>::clear(); }
size_t entries() const
{ return RWTValSlist<voidPtr>::entries(); }
void insertAt(size_t i, T *ptr)
{ RWTValSlist<voidPtr>::insertAt(i, ptr); }
RWBoolean isEmpty() const
{ return RWTValSlist<voidPtr>::isEmpty(); }
RWBoolean remove(T *ptr)
{ return RWTValSlist<voidPtr>::remove(ptr); }
T *removeAt(size_t i)
{ return (T *)RWTValSlist<voidPtr>::removeAt(i); }
};
#endif /* WMTRWTOPTRSET_HXX */