Proxy class implementing a list-like python wrapper for a protobuf repeated scalar field (ie. not of Message type)
More...
#include <repeated_field_proxy.h>
Proxy class implementing a list-like python wrapper for a protobuf repeated scalar field (ie. not of Message type)
◆ RepeatedScalarFieldProxy()
RepeatedScalarFieldProxy::RepeatedScalarFieldProxy |
( |
gpb::Message & |
msg, |
|
|
const gpb::FieldDescriptor * |
field |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
msg | Message storing the wrapped field |
field | Field descriptor |
◆ Append()
void RepeatedScalarFieldProxy::Append |
( |
const bpy::object & |
value | ) |
|
|
inline |
◆ Clear()
void RepeatedScalarFieldProxy::Clear |
( |
| ) |
|
|
inline |
◆ create()
static void RepeatedScalarFieldProxy::create |
( |
| ) |
|
|
inlinestatic |
Creates the python wrapper.
The python wrapper supports the usual python "list" index get/set operations and iteration. It does not support the next list methods: 'delitem', 'copy', 'count', 'index', 'insert', 'remove', 'reverse', 'sort'. It does not support comparison with a list.
◆ Extend()
void RepeatedScalarFieldProxy::Extend |
( |
const bpy::object & |
value | ) |
|
|
inline |
◆ GetItem()
bpy::object RepeatedScalarFieldProxy::GetItem |
( |
PyObject * |
indices | ) |
|
◆ Iter()
bpy::object RepeatedScalarFieldProxy::Iter |
( |
| ) |
|
◆ Len()
int RepeatedScalarFieldProxy::Len |
( |
| ) |
|
|
inline |
◆ Pop()
void RepeatedScalarFieldProxy::Pop |
( |
| ) |
|
|
inline |
◆ SetItem()
void RepeatedScalarFieldProxy::SetItem |
( |
PyObject * |
indices, |
|
|
PyObject * |
value |
|
) |
| |
The documentation for this class was generated from the following files: