MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / insert

Method insert

tests/DCPS/FooTest3_2/InstanceDataMap.cpp:16–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16int
17InstanceDataMap::insert (::DDS::InstanceHandle_t handle, ::Xyz::Foo& sample)
18{
19 ACE_GUARD_RETURN (ACE_Thread_Mutex,
20 guard,
21 this->lock_,
22 -1);
23
24 current_sequence_number_ ++;
25 sample.sample_sequence = current_sequence_number_;
26 std::pair<DataSet::iterator, bool> pair
27 = map_[handle].insert(DataSet::value_type(sample));
28
29 return pair.second == true ? 0 : -1;
30}
31
32int
33InstanceDataMap::remove (::DDS::InstanceHandle_t handle, ::Xyz::Foo& sample)

Callers 15

TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
get_contained_guidsMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
postMethod · 0.45
parseMethod · 0.45
addFunction · 0.45
getFunction · 0.45
addMethod · 0.45

Calls

no outgoing calls

Tested by 3

extract_sccFunction · 0.36
common_check_typemapFunction · 0.36
TestMonitorMethod · 0.36