class CustomData

August 13, 2019 · View on GitHub

Member values

Member nameData typeDescription
custom_data_idMessageIdMessageId
custom_data_0uint32Custom data word 0
custom_data_1uint32Custom data word 1
custom_data_2uint32Custom data word 2
custom_data_3uint32Custom data word 3
custom_data_4uint32Custom data word 4
custom_data_5uint32Custom data word 5
custom_data_6uint32Custom data word 6
custom_data_7uint32Custom data word 7
custom_data_8uint32Custom data word 8
custom_data_9uint32Custom data word 9
custom_data_10uint32Custom data word 10
custom_data_11uint32Custom data word 11
custom_data_12uint32Custom data word 12
custom_data_13uint32Custom data word 13
custom_data_14uint32Custom data word 14
custom_data_15uint32Custom data word 15
gripper_custom_dataoneof:tool_customData CustomData 

Member functions

Function nameReturn typeInput typeDescription
has_custom_data_id() constboolvoidReturns true if custom_data_id is set.
custom_data_id()const MessageId&voidReturns the current value of custom_data_id. If custom_data_id is not set, returns a MessageId with none of its fields set (possibly custom_data_id::default_instance()).
mutable_custom_data_id()MessageId *voidReturns a pointer to the mutable MessageId object that stores the field's value. If the field was not set prior to the call, then the returned MessageId will have none of its fields set (i.e. it will be identical to a newly-allocated MessageId). After calling this, has_custom_data_id() will return true and custom_data_id() will return a reference to the same instance of MessageId.
clear_custom_data_id()voidvoidClears the value of the field. After calling this, has_custom_data_id() will return false and custom_data_id() will return the default value.
set_allocated_custom_data_id()voidMessageId *Sets the MessageId object to the field and frees the previous field value if it exists. If the MessageId pointer is not NULL, the message takes ownership of the allocated MessageId object and has_ MessageId() will return true. Otherwise, if the custom_data_id is NULL, the behavior is the same as calling clear_custom_data_id().
release_custom_data_id()MessageId *voidReleases the ownership of the field and returns the pointer of the MessageId object. After calling this, caller takes the ownership of the allocated MessageId object, has_custom_data_id() will return false, and custom_data_id() will return the default value.
custom_data_0()uint32voidReturns the current value of custom_data_0. If the custom_data_0 is not set, returns 0.
set_custom_data_0()voiduint32Sets the value of custom_data_0. After calling this, custom_data_0() will return value.
clear_custom_data_0()voidvoidClears the value of custom_data_0. After calling this, custom_data_0() will return 0.
custom_data_1()uint32voidReturns the current value of custom_data_1. If the custom_data_1 is not set, returns 0.
set_custom_data_1()voiduint32Sets the value of custom_data_1. After calling this, custom_data_1() will return value.
clear_custom_data_1()voidvoidClears the value of custom_data_1. After calling this, custom_data_1() will return 0.
custom_data_2()uint32voidReturns the current value of custom_data_2. If the custom_data_2 is not set, returns 0.
set_custom_data_2()voiduint32Sets the value of custom_data_2. After calling this, custom_data_2() will return value.
clear_custom_data_2()voidvoidClears the value of custom_data_2. After calling this, custom_data_2() will return 0.
custom_data_3()uint32voidReturns the current value of custom_data_3. If the custom_data_3 is not set, returns 0.
set_custom_data_3()voiduint32Sets the value of custom_data_3. After calling this, custom_data_3() will return value.
clear_custom_data_3()voidvoidClears the value of custom_data_3. After calling this, custom_data_3() will return 0.
custom_data_4()uint32voidReturns the current value of custom_data_4. If the custom_data_4 is not set, returns 0.
set_custom_data_4()voiduint32Sets the value of custom_data_4. After calling this, custom_data_4() will return value.
clear_custom_data_4()voidvoidClears the value of custom_data_4. After calling this, custom_data_4() will return 0.
custom_data_5()uint32voidReturns the current value of custom_data_5. If the custom_data_5 is not set, returns 0.
set_custom_data_5()voiduint32Sets the value of custom_data_5. After calling this, custom_data_5() will return value.
clear_custom_data_5()voidvoidClears the value of custom_data_5. After calling this, custom_data_5() will return 0.
custom_data_6()uint32voidReturns the current value of custom_data_6. If the custom_data_6 is not set, returns 0.
set_custom_data_6()voiduint32Sets the value of custom_data_6. After calling this, custom_data_6() will return value.
clear_custom_data_6()voidvoidClears the value of custom_data_6. After calling this, custom_data_6() will return 0.
custom_data_7()uint32voidReturns the current value of custom_data_7. If the custom_data_7 is not set, returns 0.
set_custom_data_7()voiduint32Sets the value of custom_data_7. After calling this, custom_data_7() will return value.
clear_custom_data_7()voidvoidClears the value of custom_data_7. After calling this, custom_data_7() will return 0.
custom_data_8()uint32voidReturns the current value of custom_data_8. If the custom_data_8 is not set, returns 0.
set_custom_data_8()voiduint32Sets the value of custom_data_8. After calling this, custom_data_8() will return value.
clear_custom_data_8()voidvoidClears the value of custom_data_8. After calling this, custom_data_8() will return 0.
custom_data_9()uint32voidReturns the current value of custom_data_9. If the custom_data_9 is not set, returns 0.
set_custom_data_9()voiduint32Sets the value of custom_data_9. After calling this, custom_data_9() will return value.
clear_custom_data_9()voidvoidClears the value of custom_data_9. After calling this, custom_data_9() will return 0.
custom_data_10()uint32voidReturns the current value of custom_data_10. If the custom_data_10 is not set, returns 0.
set_custom_data_10()voiduint32Sets the value of custom_data_10. After calling this, custom_data_10() will return value.
clear_custom_data_10()voidvoidClears the value of custom_data_10. After calling this, custom_data_10() will return 0.
custom_data_11()uint32voidReturns the current value of custom_data_11. If the custom_data_11 is not set, returns 0.
set_custom_data_11()voiduint32Sets the value of custom_data_11. After calling this, custom_data_11() will return value.
clear_custom_data_11()voidvoidClears the value of custom_data_11. After calling this, custom_data_11() will return 0.
custom_data_12()uint32voidReturns the current value of custom_data_12. If the custom_data_12 is not set, returns 0.
set_custom_data_12()voiduint32Sets the value of custom_data_12. After calling this, custom_data_12() will return value.
clear_custom_data_12()voidvoidClears the value of custom_data_12. After calling this, custom_data_12() will return 0.
custom_data_13()uint32voidReturns the current value of custom_data_13. If the custom_data_13 is not set, returns 0.
set_custom_data_13()voiduint32Sets the value of custom_data_13. After calling this, custom_data_13() will return value.
clear_custom_data_13()voidvoidClears the value of custom_data_13. After calling this, custom_data_13() will return 0.
custom_data_14()uint32voidReturns the current value of custom_data_14. If the custom_data_14 is not set, returns 0.
set_custom_data_14()voiduint32Sets the value of custom_data_14. After calling this, custom_data_14() will return value.
clear_custom_data_14()voidvoidClears the value of custom_data_14. After calling this, custom_data_14() will return 0.
custom_data_15()uint32voidReturns the current value of custom_data_15. If the custom_data_15 is not set, returns 0.
set_custom_data_15()voiduint32Sets the value of custom_data_15. After calling this, custom_data_15() will return value.
clear_custom_data_15()voidvoidClears the value of custom_data_15. After calling this, custom_data_15() will return 0.
has_gripper_custom_data() constvoidvoidReturns the current value of the field if oneof case is kGripper_custom_data. Otherwise, returns oneof:tool_customData CustomData::default_instance()
gripper_custom_data() constconst oneof:tool_customData CustomData&voidReturns the current value of the field if oneof case is kGripper_custom_data
mutable_gripper_custom_data()oneof:tool_customData CustomData*voidIf any other oneof field in the same oneof is set, calls clear_tool_customData(). Sets the oneof case to kGripper_custom_data and returns a pointer to the mutable oneof:tool_customData CustomData object that stores the field's value. If the oneof case was not kGripper_custom_data prior to the call, then the returned oneof:tool_customData CustomData will have none of its fields set (i.e. it will be identical to a newly-allocated oneof:tool_customData CustomData). After calling this, has_gripper_custom_data() will return true, gripper_custom_data() will return a reference to the same instance of oneof:tool_customData CustomData and tool_customData_case() will return kGripper_custom_data
clear_gripper_custom_data()voidvoidNothing will be changed if the oneof case is not kGripper_custom_data. If the oneof case equals kGripper_custom_data, frees the field and clears the oneof case. has_gripper_custom_data() will return false, gripper_custom_data() will return the default value and tool_customData_case() will return TOOL_CUSTOMDATA_NOT_SET.
set_allocated_gripper_custom_data()voidoneof:tool_customData CustomData*Calls clear_tool_customData(). If the oneof:tool_customData CustomData pointer is not NULL: Sets the oneof:tool_customData CustomData object to the field and sets the oneof case to kGripper_custom_data. The message takes ownership of the allocated oneof:tool_customData CustomData object, has_gripper_custom_data() will return true and tool_customData_case() will return kGripper_custom_data. If the pointer is NULL, has_gripper_custom_data() will return false and tool_customData_case() will return TOOL_CUSTOMDATA_NOT_SET. (The behavior is like calling clear_tool_customData())
release_gripper_custom_data()oneof:tool_customData CustomData*voidReturns NULL if oneof case is not kGripper_custom_data. If the oneof case is kGripper_custom_data, clears the oneof case, releases the ownership of the field and returns the pointer of the tool_customData object. After calling this, caller takes the ownership of the allocated tool_customData object, has_gripper_custom_data() will return false, gripper_custom_data() will return the default value and tool_customData_case() will return TOOL_CUSTOMDATA_NOT_SET.

Parent topic: InterconnectCyclic (C++)