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

Method insert_sample

dds/DCPS/GroupRakeData.cpp:24–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24bool GroupRakeData::insert_sample(ReceivedDataElement* sample,
25 ReceivedDataElementList* rdel,
26 SubscriptionInstance_rch instance,
27 size_t index_in_instance)
28{
29 // Ignore DISPOSE and UNREGISTER messages in case they are sent
30 // in the group coherent changes, but it shouldn't.
31 if (!sample->valid_data_) {
32 return false;
33 }
34
35 RakeData rd = {sample, rdel, instance, index_in_instance};
36 this->sorted_.insert(rd);
37
38 this->current_sample_ = this->sorted_.begin();
39 return true;
40}
41
42
43void

Callers 5

read_iFunction · 0.45
take_iFunction · 0.45
read_instance_iFunction · 0.45
take_instance_iFunction · 0.45
get_ordered_dataMethod · 0.45

Calls 2

insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected