Logo Search packages:      
Sourcecode: inkscape version File versions

Verb * Inkscape::Verb::get_search ( unsigned int  code  )  [static, private]

A function to turn a code into a Verb for dynamically created Verbs.

Parameters:
code What code is being looked for
Returns:
The found Verb of NULL if none is found.
This function basically just looks through the _verbs hash table. STL does all the work.

Definition at line 608 of file verbs.cpp.

References _verbs.

Referenced by get().

{
    Verb * verb = NULL;
    VerbTable::iterator verb_found = _verbs.find(code);

    if (verb_found != _verbs.end()) {
        verb = verb_found->second;
    }

    return verb;
}


Generated by  Doxygen 1.6.0   Back to index