You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
660 B
C++

//////////////////////////////////////////////////////////////////////////////
//文件 VectorSet.h
//主要功能:
// 模板数组基础类
//程序编写: 2011-7-07
/////////////////////////////////////////////////////////////////////////////
#ifndef vector_set_h
#define vector_set_h
namespace NSet
{
class CVectorSet
{
public:
virtual ~CVectorSet() {}
virtual int size() const = 0;
virtual bool IsValidIndex(int) const = 0;
virtual void swap(int,int) = 0;
virtual void erase() = 0;
virtual void remove(int from,int to) = 0;
inline bool isEmpty() const { return size() == 0; }
};
} // namespace
using namespace NSet;
#endif