QuercusVL Programming Manual● LightsC++: Lights get_Lights()C: Does not existIn C++ returns the collection of lights that make up the traffic light.In C there is no representation of “Lights” collection, but methods to directly access tocollection properties:● int VL_TrafficLight_get_Lights_Count(int h): number of lights in the traffic light.● int VL_TrafficLight_get_Lights_Item(int h, int item): returns the light in thespecified position, inside the lights collection of the traffic light (starting fromzero).If there is no Light for the specified ligt, returns null.The parameter “h” is a handler of the traffic light (TrafficLight).3.17.2. Methods● IsValidC++: bool IsValid()C: Does not existReturns true if the object contains valid information about a traffic light, and false ifinvalid. Some methods, may sometimes, return void traffic lights. In C, this behaviouris detected as its value will be “0”. In C++, however, this method is necessary becausethe object, as it is not a pointer, would always be valid.● AddRefC++: Does not existC: void VL_TrafficLight_AddRef ( int h )See 2.2.1. Memory management.● ReleaseC++: Does not existC: void VL_TrafficLight_Release ( int h )See 2.2.1. Memory management.Quercus Technologies 52