MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / GetArraySize

Method GetArraySize

eval/LANE_evaluation/lane2d/src/CJsonObject.cpp:2253–2270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2251}
2252
2253int CJsonObject::GetArraySize() const
2254{
2255 if (m_pJsonData != NULL)
2256 {
2257 if (m_pJsonData->type == cJSON_Array)
2258 {
2259 return(cJSON_GetArraySize(m_pJsonData));
2260 }
2261 }
2262 else if (m_pExternJsonDataRef != NULL)
2263 {
2264 if(m_pExternJsonDataRef->type == cJSON_Array)
2265 {
2266 return(cJSON_GetArraySize(m_pExternJsonDataRef));
2267 }
2268 }
2269 return(0);
2270}
2271
2272bool CJsonObject::Get(int iWhich, CJsonObject& oJsonObject) const
2273{

Callers 1

read_lane_fileFunction · 0.80

Calls 1

cJSON_GetArraySizeFunction · 0.85

Tested by

no test coverage detected