📄 ident_00.cc
字号:
// file: $isip/class/asr/Identifier/ident_00.cc// version: $Id: ident_00.cc,v 1.3 2002/08/13 21:28:35 alphonso Exp $//// isip include files//#include "Identifier.h"// method: default constructor//// arguments: none//// return: none//// this is the constructor for the Identifier class.//Identifier::Identifier() { // initialize member data // curr_d = 1; // set the allocation modes of the hash tables // anchors_d.setAllocationMode(DstrBase::USER); annotations_d.setAllocationMode(DstrBase::USER); }// method: default constructor//// arguments: none//// return: none//// this is the constructor for the Identifier class.//Identifier::Identifier(String& id_a, String& type_a) { // assign member data // namespace_d.assign(id_a); type_d.assign(type_a); curr_d = 1; // set the allocation modes of the hash tables // anchors_d.setAllocationMode(DstrBase::USER); annotations_d.setAllocationMode(DstrBase::USER); }//-----------------------------------------------------------------------------//// we define non-integral constants in the default constructor////-----------------------------------------------------------------------------// constants: required constants such as the class name//const String Identifier::CLASS_NAME(L"Identifier");const String Identifier::DEF_PARAM(L"");// static instantiations: debug level//Integral::DEBUG Identifier::debug_level_d = Integral::NONE;// static instantiations: the memory manager//MemoryManager Identifier::mgr_d(sizeof(Identifier));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -