class ProtectionZone

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
handleProtectionZoneHandleProtection zone handle
namestringProtection zone friendly name
application_datastringApplication data (reserved for use by Web App)
is_enabledboolTrue if protection zone is enabled, false otherwise
shapeZoneShapeProtection zone shape
limitationsCartesianLimitationList of Cartesian limitation
envelope_limitationsCartesianLimitationList of Cartesian limitation of the envelop

Member functions

Function nameReturn typeInput typeDescription
has_handle() constboolvoidReturns true if handle is set.
handle()const ProtectionZoneHandle&voidReturns the current value of handle. If handle is not set, returns a ProtectionZoneHandle with none of its fields set (possibly handle::default_instance()).
mutable_handle()ProtectionZoneHandle *voidReturns a pointer to the mutable ProtectionZoneHandle object that stores the field's value. If the field was not set prior to the call, then the returned ProtectionZoneHandle will have none of its fields set (i.e. it will be identical to a newly-allocated ProtectionZoneHandle). After calling this, has_handle() will return true and handle() will return a reference to the same instance of ProtectionZoneHandle.
clear_handle()voidvoidClears the value of the field. After calling this, has_handle() will return false and handle() will return the default value.
set_allocated_handle()voidProtectionZoneHandle *Sets the ProtectionZoneHandle object to the field and frees the previous field value if it exists. If the ProtectionZoneHandle pointer is not NULL, the message takes ownership of the allocated ProtectionZoneHandle object and has_ ProtectionZoneHandle() will return true. Otherwise, if the handle is NULL, the behavior is the same as calling clear_handle().
release_handle()ProtectionZoneHandle *voidReleases the ownership of the field and returns the pointer of the ProtectionZoneHandle object. After calling this, caller takes the ownership of the allocated ProtectionZoneHandle object, has_handle() will return false, and handle() will return the default value.
name()const string&voidReturns the current value of name. If name is not set, returns the empty string/empty bytes.
set_name()voidconst string&Sets the value of name. After calling this, name() will return a copy of value.
set_name()voidstring&&(C++11 and beyond): Sets the value of name, moving from the passed string. After calling this, name() will return a copy of value.
set_name()voidconst char*Sets the value of name using a C-style null-terminated string. After calling this, name() will return a copy of value.
mutable_name()string *voidReturns a pointer to the mutable string object that stores name's value. If the field was not set prior to the call, then the returned string will be empty. After calling this, name() will return whatever value is written into the given string.
clear_name()voidvoidClears the value of name. After calling this, name() will return the empty string/empty bytes.
set_allocated_name()voidstring*Sets the string object to the field and frees the previous field value if it exists. If the string pointer is not NULL, the message takes ownership of the allocated string object. The message is free to delete the allocated string object at any time, so references to the object may be invalidated. Otherwise, if the value is NULL, the behavior is the same as calling clear_name().
release_name()string *voidReleases the ownership of name and returns the pointer of the string object. After calling this, caller takes the ownership of the allocated string object and name() will return the empty string/empty bytes.
application_data()const string&voidReturns the current value of application_data. If application_data is not set, returns the empty string/empty bytes.
set_application_data()voidconst string&Sets the value of application_data. After calling this, application_data() will return a copy of value.
set_application_data()voidstring&&(C++11 and beyond): Sets the value of application_data, moving from the passed string. After calling this, application_data() will return a copy of value.
set_application_data()voidconst char*Sets the value of application_data using a C-style null-terminated string. After calling this, application_data() will return a copy of value.
mutable_application_data()string *voidReturns a pointer to the mutable string object that stores application_data's value. If the field was not set prior to the call, then the returned string will be empty. After calling this, application_data() will return whatever value is written into the given string.
clear_application_data()voidvoidClears the value of application_data. After calling this, application_data() will return the empty string/empty bytes.
set_allocated_application_data()voidstring*Sets the string object to the field and frees the previous field value if it exists. If the string pointer is not NULL, the message takes ownership of the allocated string object. The message is free to delete the allocated string object at any time, so references to the object may be invalidated. Otherwise, if the value is NULL, the behavior is the same as calling clear_application_data().
release_application_data()string *voidReleases the ownership of application_data and returns the pointer of the string object. After calling this, caller takes the ownership of the allocated string object and application_data() will return the empty string/empty bytes.
is_enabled()boolvoidReturns the current value of is_enabled. If the is_enabled is not set, returns 0.
set_is_enabled()voidboolSets the value of is_enabled. After calling this, is_enabled() will return value.
clear_is_enabled()voidvoidClears the value of is_enabled. After calling this, is_enabled() will return 0.
has_shape() constboolvoidReturns true if shape is set.
shape()const ZoneShape&voidReturns the current value of shape. If shape is not set, returns a ZoneShape with none of its fields set (possibly shape::default_instance()).
mutable_shape()ZoneShape *voidReturns a pointer to the mutable ZoneShape object that stores the field's value. If the field was not set prior to the call, then the returned ZoneShape will have none of its fields set (i.e. it will be identical to a newly-allocated ZoneShape). After calling this, has_shape() will return true and shape() will return a reference to the same instance of ZoneShape.
clear_shape()voidvoidClears the value of the field. After calling this, has_shape() will return false and shape() will return the default value.
set_allocated_shape()voidZoneShape *Sets the ZoneShape object to the field and frees the previous field value if it exists. If the ZoneShape pointer is not NULL, the message takes ownership of the allocated ZoneShape object and has_ ZoneShape() will return true. Otherwise, if the shape is NULL, the behavior is the same as calling clear_shape().
release_shape()ZoneShape *voidReleases the ownership of the field and returns the pointer of the ZoneShape object. After calling this, caller takes the ownership of the allocated ZoneShape object, has_shape() will return false, and shape() will return the default value.
limitations_size() constintvoidReturns the number of elements currently in the field.
limitations() constconst CartesianLimitationint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, limitations_size()) yields undefined behavior.
mutable_limitations()CartesianLimitation*int indexReturns a pointer to the mutable CartesianLimitation object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, limitations_size()) yields undefined behavior.
add_limitations()CartesianLimitation*voidAdds a new element and returns a pointer to it. The returned CartesianLimitation is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated CartesianLimitation).
clear_limitations()voidvoidRemoves all elements from the field. After calling this, limitations_size() will return zero.
limitations() constconst RepeatedPtrField< CartesianLimitation>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_limitations()RepeatedPtrField< CartesianLimitation>*voidReturns a pointer to the underlying mutable RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
envelope_limitations_size() constintvoidReturns the number of elements currently in the field.
envelope_limitations() constconst CartesianLimitationint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, envelope_limitations_size()) yields undefined behavior.
mutable_envelope_limitations()CartesianLimitation*int indexReturns a pointer to the mutable CartesianLimitation object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, envelope_limitations_size()) yields undefined behavior.
add_envelope_limitations()CartesianLimitation*voidAdds a new element and returns a pointer to it. The returned CartesianLimitation is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated CartesianLimitation).
clear_envelope_limitations()voidvoidRemoves all elements from the field. After calling this, envelope_limitations_size() will return zero.
envelope_limitations() constconst RepeatedPtrField< CartesianLimitation>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_envelope_limitations()RepeatedPtrField< CartesianLimitation>*voidReturns a pointer to the underlying mutable RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.

Parent topic: Base (C++)