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

Function array_dims

dds/idl/langmap_generator.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 std::string array_dims(AST_Type* type, ACE_CDR::ULong& elems)
58 {
59 AST_Array* const arr = dynamic_cast<AST_Array*>(type);
60 std::string ret = array_zero_indices(arr);
61 elems *= array_element_count(arr);
62 AST_Type* base = resolveActualType(arr->base_type());
63 if (dynamic_cast<AST_Array*>(base)) {
64 ret += "[0]" + array_dims(base, elems);
65 }
66 return ret;
67 }
68
69 void gen_typecode(UTL_ScopedName* name)
70 {

Callers 2

gen_structMethod · 0.85
gen_structMethod · 0.85

Calls 3

array_zero_indicesFunction · 0.85
array_element_countFunction · 0.85
resolveActualTypeFunction · 0.85

Tested by

no test coverage detected