class ConnectionList
August 13, 2019 ยท View on GitHub
Member values
| Member name | Data type | Description |
|---|---|---|
| connection | Connection | Connection |
Member functions
| Function name | Return type | Input type | Description |
|---|---|---|---|
| connection_size() const | int | void | Returns the number of elements currently in the field. |
| connection() const | const Connection | int index | Returns the element at the given zero-based index. Calling this method with index outside of [0, connection_size()) yields undefined behavior. |
| mutable_connection() | Connection* | int index | Returns a pointer to the mutable Connection object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, connection_size()) yields undefined behavior. |
| add_connection() | Connection* | void | Adds a new element and returns a pointer to it. The returned Connection is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated Connection). |
| clear_connection() | void | void | Removes all elements from the field. After calling this, connection_size() will return zero. |
| connection() const | const RepeatedPtrField< Connection>& | void | Returns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods. |
| mutable_connection() | RepeatedPtrField< Connection>* | void | Returns 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: Session (C++)