class SwitchControlMapping

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
controller_identifieruint32Identifier of the controller for which changing the active map is requested
map_group_handleMapGroupHandleReference to the map group for which the active map needs to change
map_handleMapHandleReference to new active map

Member functions

Function nameReturn typeInput typeDescription
controller_identifier()uint32voidReturns the current value of controller_identifier. If the controller_identifier is not set, returns 0.
set_controller_identifier()voiduint32Sets the value of controller_identifier. After calling this, controller_identifier() will return value.
clear_controller_identifier()voidvoidClears the value of controller_identifier. After calling this, controller_identifier() will return 0.
has_map_group_handle() constboolvoidReturns true if map_group_handle is set.
map_group_handle()const MapGroupHandle&voidReturns the current value of map_group_handle. If map_group_handle is not set, returns a MapGroupHandle with none of its fields set (possibly map_group_handle::default_instance()).
mutable_map_group_handle()MapGroupHandle *voidReturns a pointer to the mutable MapGroupHandle object that stores the field's value. If the field was not set prior to the call, then the returned MapGroupHandle will have none of its fields set (i.e. it will be identical to a newly-allocated MapGroupHandle). After calling this, has_map_group_handle() will return true and map_group_handle() will return a reference to the same instance of MapGroupHandle.
clear_map_group_handle()voidvoidClears the value of the field. After calling this, has_map_group_handle() will return false and map_group_handle() will return the default value.
set_allocated_map_group_handle()voidMapGroupHandle *Sets the MapGroupHandle object to the field and frees the previous field value if it exists. If the MapGroupHandle pointer is not NULL, the message takes ownership of the allocated MapGroupHandle object and has_ MapGroupHandle() will return true. Otherwise, if the map_group_handle is NULL, the behavior is the same as calling clear_map_group_handle().
release_map_group_handle()MapGroupHandle *voidReleases the ownership of the field and returns the pointer of the MapGroupHandle object. After calling this, caller takes the ownership of the allocated MapGroupHandle object, has_map_group_handle() will return false, and map_group_handle() will return the default value.
has_map_handle() constboolvoidReturns true if map_handle is set.
map_handle()const MapHandle&voidReturns the current value of map_handle. If map_handle is not set, returns a MapHandle with none of its fields set (possibly map_handle::default_instance()).
mutable_map_handle()MapHandle *voidReturns a pointer to the mutable MapHandle object that stores the field's value. If the field was not set prior to the call, then the returned MapHandle will have none of its fields set (i.e. it will be identical to a newly-allocated MapHandle). After calling this, has_map_handle() will return true and map_handle() will return a reference to the same instance of MapHandle.
clear_map_handle()voidvoidClears the value of the field. After calling this, has_map_handle() will return false and map_handle() will return the default value.
set_allocated_map_handle()voidMapHandle *Sets the MapHandle object to the field and frees the previous field value if it exists. If the MapHandle pointer is not NULL, the message takes ownership of the allocated MapHandle object and has_ MapHandle() will return true. Otherwise, if the map_handle is NULL, the behavior is the same as calling clear_map_handle().
release_map_handle()MapHandle *voidReleases the ownership of the field and returns the pointer of the MapHandle object. After calling this, caller takes the ownership of the allocated MapHandle object, has_map_handle() will return false, and map_handle() will return the default value.

Parent topic: Base (C++)