New version(?????)

This commit is contained in:
Valk Richard Li
2019-08-15 21:43:51 +08:00
committed by GitHub
parent ef709476b0
commit 7e919a81e2
19 changed files with 2572 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef __NASAL_HASH_H__
#define __NASAL_HASH_H__
#include "nasal_var.h"
struct nasal_hash_unit
{
std::string name;
var hash_var;
nasal_hash_unit *next;
};
class nasal_hash
{
private:
nasal_hash_unit *head;
public:
nasal_hash();
~nasal_hash();
nasal_hash& operator=(const nasal_hash&);
void append(std::string&,var&);
int contains(std::string&);
int delete_element(std::string&);
nasal_list keys();
};
#endif