#pragma once #include "../Beef/BfCommon.h" #include #include "BeefySysLib/util/Hash.h" //#define BL_USE_DENSEMAP_SYMTAB #ifdef BL_USE_DENSEMAP_SYMTAB #include #include #endif NS_BF_BEGIN class BlContext; class BlSymbol; class BlSymTable { public: BlContext* mContext; #ifdef BL_USE_DENSEMAP_SYMTAB google::dense_hash_map mMap; #else std::unordered_map mMap; #endif public: BlSymTable(); BlSymbol* Add(const char* name, bool* isNew = NULL); }; NS_BF_END