Update IVTree.cpp

Add a function to load Vlist's cache
This commit is contained in:
ZongyueQin 2017-07-15 11:04:11 +08:00 committed by GitHub
parent c72abfb718
commit ec07a520e9
1 changed files with 11 additions and 0 deletions

View File

@ -624,6 +624,17 @@ IVTree::release(IVNode* _np) const
delete _np;
}
void
IVTree::AddIntoCache(TYPE_ENTITY_LITERAL_ID _id)
{
char* tmp = NULL;
unsigned len;
this->search(_id, tmp, len);
// cout << "len is " << len << endl;
this->value_list->AddIntoCache(_id, tmp, len);
delete [] tmp;
}
IVTree::~IVTree()
{
delete this->value_list;