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

Method IsArray

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

Source from the content-addressed store, hash-verified

582}
583
584bool CJsonObject::IsArray() const
585{
586 cJSON* pFocusData = NULL;
587 if (m_pJsonData != NULL)
588 {
589 pFocusData = m_pJsonData;
590 }
591 else if (m_pExternJsonDataRef != NULL)
592 {
593 pFocusData = m_pExternJsonDataRef;
594 }
595
596 if (pFocusData == NULL)
597 {
598 return(false);
599 }
600
601 if (pFocusData->type == cJSON_Array)
602 {
603 return(true);
604 }
605 else
606 {
607 return(false);
608 }
609}
610
611std::string CJsonObject::ToString() const
612{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected