Gems/EMotionFX/Code/EMotionFX/Source/NodeMap.cpp
void NodeMap::SetEntry(const char* firstName, const char* secondName, bool addIfNotExists)
    {
        // check if there is already an entry for this name
        const size_t entryIndex = FindEntryIndexByName(firstName);
        if (entryIndex == InvalidIndex)
        {
            // if there is no such entry yet, and we also don't want to add a new one, then there is nothing to do
            if (addIfNotExists == false)
            {
                return;
            }

            // add a new entry
            AddEntry(firstName, secondName);
            return;
        }

        // modify it
        SetSecondName(entryIndex, secondName);
    }
// set the entry of the firstName item to the second name
set the entry of the firstName item to the second name
set the entry of the firstName item to the second name
void NodeMap::SetEntry(const char* firstName, const char* secondName, bool addIfNotExists)
    {
        const size_t entryIndex = FindEntryIndexByName(firstName);
        if (entryIndex == InvalidIndex)
        {
            if (addIfNotExists == false)
            {
                return;
            }
            AddEntry(firstName, secondName);
            return;
        }
        SetSecondName(entryIndex, secondName);
    }
void NodeMap :: SetEntry ( const char * firstName , const char * secondName , bool addIfNotExists ) { const size_t entryIndex = FindEntryIndexByName ( firstName ) ; if ( entryIndex == InvalidIndex ) { if ( addIfNotExists == false ) { return ; } AddEntry ( firstName , secondName ) ; return ; } SetSecondName ( entryIndex , secondName ) ; }
set the entry of the firstName item to the second name
set the entry of the firstName item to the second name
// check if there is already an entry for this name // if there is no such entry yet, and we also don't want to add a new one, then there is nothing to do // add a new entry // modify it