class AdvancedSequenceHandle

August 13, 2019 · View on GitHub

Member values

Member nameData typeDescription
handleSequenceHandleSequence handle
in_loopbool 

Member functions

Function nameReturn typeInput typeDescription
has_handle() constboolvoidReturns true if handle is set.
handle()const SequenceHandle&voidReturns the current value of handle. If handle is not set, returns a SequenceHandle with none of its fields set (possibly handle::default_instance()).
mutable_handle()SequenceHandle *voidReturns a pointer to the mutable SequenceHandle object that stores the field's value. If the field was not set prior to the call, then the returned SequenceHandle will have none of its fields set (i.e. it will be identical to a newly-allocated SequenceHandle). After calling this, has_handle() will return true and handle() will return a reference to the same instance of SequenceHandle.
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()voidSequenceHandle *Sets the SequenceHandle object to the field and frees the previous field value if it exists. If the SequenceHandle pointer is not NULL, the message takes ownership of the allocated SequenceHandle object and has_ SequenceHandle() will return true. Otherwise, if the handle is NULL, the behavior is the same as calling clear_handle().
release_handle()SequenceHandle *voidReleases the ownership of the field and returns the pointer of the SequenceHandle object. After calling this, caller takes the ownership of the allocated SequenceHandle object, has_handle() will return false, and handle() will return the default value.
in_loop()boolvoidReturns the current value of in_loop. If the in_loop is not set, returns 0.
set_in_loop()voidboolSets the value of in_loop. After calling this, in_loop() will return value.
clear_in_loop()voidvoidClears the value of in_loop. After calling this, in_loop() will return 0.

Parent topic: Base (C++)