MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / clear

Method clear

libraries/AP_JSON/AP_JSON.cpp:195–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void AP_JSON::value::clear()
196{
197 switch (type_) {
198#define DEINIT(p) \
199 case p##type: \
200 delete u_.p; \
201 break
202 DEINIT(string_);
203 DEINIT(array_);
204 DEINIT(object_);
205#undef DEINIT
206 default:
207 break;
208 }
209}
210
211AP_JSON::value::~value()
212{

Callers 15

update_threadMethod · 0.45
update_serial_LEDsMethod · 0.45
clear_all_itemsMethod · 0.45
update_sendMethod · 0.45
start_new_logMethod · 0.45
EraseAllMethod · 0.45
stop_loggingMethod · 0.45
io_timerMethod · 0.45
should_logMethod · 0.45
delete_registrationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected