MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / util_MapHierRoot

Function util_MapHierRoot

src/tw/dbdebug.cpp:121–134  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// util_MapHierRoot : Map the Root and RootArray in the HierDatabase: //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

119// util_MapHierRoot : Map the Root and RootArray in the HierDatabase:
120///////////////////////////////////////////////////////////////////////////////
121static void util_MapHierRoot(std::map<std::pair<int, int>, int>* dbMap)
122{
123 cDbDebug_i::hierDbMap::iterator i = dbMap->find(std::pair<int, int>(0, 0));
124 //dbMap->insert( cDbDebug_i::hierDbMap::value_type( std::pair< int, int > ( 0, 0 ), 1 ) );
125 //
126 // This insert statement should work to change the value, but it doesn't ????
127 (*i).second = 1;
128
129 i = dbMap->find(std::pair<int, int>(0, 1));
130 (*i).second = 1;
131
132 i = dbMap->find(std::pair<int, int>(0, 2));
133 (*i).second = 1;
134}
135
136///////////////////////////////////////////////////////////////////////////////
137// DisplayDbMap -- Displays the entire map.

Callers 1

ExecuteMethod · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected