예제 #1
0
bool DataList::Remove(PNode node)
{
    if (!node.Ok())
        return false;
    if (nodes.erase(BA::to_lower_copy(node->Name())) <= 0)
        return false;

    node->parent = NULL;
    node->ListRemove();
    return true;
}
예제 #2
0
bool DataList::Remove(const std::string& str)
{
    //PNode node=nodes.find(str.Lower())->last;
    PNode node = Find(str);
    if (!node.Ok())
        return false;
    if (nodes.erase(BA::to_lower_copy(str)) <= 0)
        return false;

    node->parent = NULL;
    node->ListRemove();
    return true;
}