⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s57recordset.h

📁 国际海图标准S-57格式数据读取源码VC
💻 H
字号:
#pragma once
#include   "stdarg.h"   
#include   "io.h"

template <class   T>   
struct   SetNode   
{   
        T   val;   
        SetNode   *next;   
        SetNode   *pre;   
};
//typedef   struct   _SetNode   SetNode;  

template <class T>
class CS57RecordSet
{
public:
	/* the constructor */
	CS57RecordSet(){Head=0;iSetSize=0;};
    CS57RecordSet(const CS57RecordSet<T>& ms);
    CS57RecordSet(int ValCnt, T val);
    
	~CS57RecordSet();
    
	int Capacity() const;
    bool InsertItem(T val);
    bool DeleteItem(T val);
    void DisplayItems()const;
    bool Find(T val);
	SetNode * Find(CS57RecordSet<T>&   ms,T val);
	CS57RecordSet<T>   operator+(CS57RecordSet<T>&   ms);
    CS57RecordSet<T>   operator-(CS57RecordSet<T>&   ms);
    CS57RecordSet<T>   operator*(CS57RecordSet<T>&   ms);

private:   
	SetNode<T>   *Head;   
	int   iSetSize;
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -