MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / insert

Method insert

Engine/modules/Verve/Core/VDataTable.cpp:80–93  ·  view source on GitHub ↗

----------------------------------------------------------------------------- VDataTable::insert( pType, pFieldName ); Add a DataTable entry, referencing the field name and assign it the given data type. For a full list of possible data types, see the 'eDataType' declaration in VDataTable.h. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

78//
79//-----------------------------------------------------------------------------
80void VDataTable::insert( eDataType pType, const String &pFieldName )
81{
82 if ( mDataMap.contains( pFieldName ) )
83 {
84 // Change Field Type.
85 mDataMap.find( pFieldName )->value.Type = pType;
86
87 // Return.
88 return;
89 }
90
91 // Insert Item.
92 mDataMap.insert( pFieldName, sDataItem( pType, pFieldName ) );
93}
94
95//-----------------------------------------------------------------------------
96//

Callers 9

readFieldsMethod · 0.45
writeFieldsMethod · 0.45
addNodeMethod · 0.45
setPostEffectOnMethod · 0.45
VPostEffectNetEventMethod · 0.45
writeDataTableMethod · 0.45
readDataTableMethod · 0.45
VController.cppFile · 0.45
getValueMethod · 0.45

Calls 3

sDataItemClass · 0.70
containsMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected