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

Method node_value_exists

dds/idl/annotations.cpp:385–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383 }
384
385 bool DataRepresentationAnnotation::node_value_exists(
386 AST_Decl* node, DataRepresentation& value) const
387 {
388 value = DataRepresentation();
389 bool found = false;
390 if (node) {
391 for (AST_Annotation_Appls::iterator i = node->annotations().begin();
392 i != node->annotations().end(); ++i) {
393 AST_Annotation_Appl* appl = i->get();
394 if (appl && appl->annotation_decl() == declaration()) {
395 found = true;
396 value.add(value_from_appl(appl));
397 }
398 }
399 }
400 return found;
401 }
402
403 DataRepresentation DataRepresentationAnnotation::value_from_appl(AST_Annotation_Appl* appl) const
404 {

Callers 15

is_nestedMethod · 0.45
is_default_nestedMethod · 0.45
check_keyMethod · 0.45
extensibilityMethod · 0.45
autoidMethod · 0.45
scoped_autoidMethod · 0.45
idMethod · 0.45
hashidMethod · 0.45
is_optionalMethod · 0.45
is_must_understandMethod · 0.45
is_externalMethod · 0.45
try_constructMethod · 0.45

Calls 5

DataRepresentationClass · 0.85
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected