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

Function is_primitive

dds/DCPS/XTypes/TypeObject.cpp:1296–1318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1294}
1295
1296bool is_primitive(TypeKind tk)
1297{
1298 switch (tk) {
1299 case TK_BOOLEAN:
1300 case TK_BYTE:
1301 case TK_INT8:
1302 case TK_UINT8:
1303 case TK_INT16:
1304 case TK_UINT16:
1305 case TK_INT32:
1306 case TK_UINT32:
1307 case TK_INT64:
1308 case TK_UINT64:
1309 case TK_FLOAT32:
1310 case TK_FLOAT64:
1311 case TK_FLOAT128:
1312 case TK_CHAR8:
1313 case TK_CHAR16:
1314 return true;
1315 default:
1316 return false;
1317 }
1318}
1319
1320bool is_scalar(TypeKind tk)
1321{

Callers 15

begin_arrayMethod · 0.85
begin_sequenceMethod · 0.85
begin_mapMethod · 0.85
get_item_countMethod · 0.85
get_single_valueMethod · 0.85
clear_all_valuesMethod · 0.85
clear_valueMethod · 0.85
set_single_valueMethod · 0.85
get_value_from_selfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected