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

Method gen_array

dds/idl/langmap_generator.cpp:1427–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1425 }
1426
1427 static void gen_array(AST_Array* arr, const std::string& type, const std::string& elem, const std::string& ind = "")
1428 {
1429 std::string array;
1430 std::ostringstream bounds;
1431 for (ACE_CDR::ULong dim = arr->n_dims(); dim; --dim) {
1432 array += "std::array<";
1433 bounds << ", " << arr->dims()[dim - 1]->ev()->u.ulval << '>';
1434 }
1435 be_global->add_include("<array>", BE_GlobalData::STREAM_LANG_H);
1436 be_global->lang_header_ << ind << "using " << type << " = " << array << elem << bounds.str() << ";\n";
1437 }
1438
1439 void gen_array(UTL_ScopedName* tdname, AST_Array* arr)
1440 {

Callers

nothing calls this directly

Calls 4

gen_arrayFunction · 0.85
add_includeMethod · 0.45
strMethod · 0.45
get_stringMethod · 0.45

Tested by

no test coverage detected