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

Method remove

tests/Utils/DDSApp.cpp:147–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void
148DDSApp::remove(const DDS::DomainParticipant_var& participant)
149{
150 participants_.erase(participant.in());
151 if (participant.in() == default_participant_.in()) {
152 if (participants_.empty()) {
153 default_participant_ = DDS::DomainParticipant_var();
154 }
155 else {
156 ACE_DEBUG((LM_DEBUG,
157 "NOTE: removed default participant and assigning new "
158 "default\n"));
159 default_participant_ = participants_.begin()->second;
160 }
161 }
162}
163
164void
165DDSApp::determine_participant(DDS::DomainParticipant_var& part)

Callers 5

TESTFunction · 0.45
TESTFunction · 0.45
test_add_removeMethod · 0.45
test_removesMethod · 0.45
TESTFunction · 0.45

Calls 4

eraseMethod · 0.45
inMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45

Tested by 2

test_add_removeMethod · 0.36
test_removesMethod · 0.36