s57recordset.h
来自「国际海图标准S-57格式数据读取源码VC」· C头文件 代码 · 共 39 行
H
39 行
#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 + =
减小字号Ctrl + -
显示快捷键?