Created
September 16, 2013 23:50
-
-
Save arijitvt/6588266 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IdentifierTable *iTable = identifierTable; | |
LiteralIdentifierTable& literalTable = iTable->literalTable(); | |
//if(literalTable) { | |
cout<<"Hashmap capacity : "<<literalTable.size()<<endl; | |
//} | |
LiteralIdentifierTable::iterator itr = literalTable.begin(); | |
while(itr != literalTable.end()) { | |
++itr; | |
const char *data = itr->first; | |
if(data && strcmp(data,"var") == 0) { | |
cout<<"The literal is : "<<data<<endl; | |
//cout<<"And the value is : "<<*itr->second<<endl; | |
} | |
// cout<<(*itr)->first()<<endl; | |
//const char* key = itr->begin(); | |
//cout<<"The Key is : "<<key<<endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment