On Wed, Feb 17, 2010 at 12:19 AM, Romain Francois
romain.francois.r.enthusi...@gmail.com wrote:
On 02/17/2010 12:51 AM, Kenton Varda wrote:
The Reflection interface already provides a way -- FieldSize() and
GetRepeatedX(). The only problem is that it's a bit slower than the
generated
On 02/17/2010 12:51 AM, Kenton Varda wrote:
On Tue, Feb 16, 2010 at 2:47 PM, Romain Francois
romain.francois.r.enthusi...@gmail.com
mailto:romain.francois.r.enthusi...@gmail.com wrote:
Thanks for the feedback.
On 02/16/2010 10:44 PM, Kenton Varda wrote:
Thanks for the feedback.
On 02/16/2010 10:44 PM, Kenton Varda wrote:
GeneratedMessageReflection is an internal class used by the protobuf
implementation. Currently, users are not allowed to use it directly,
because we may change it at any time. You're suggesting that we promote
it to a public
Why not ? It seems reasonnable to want to use e.g. std::copy and friends.
On the documentation it says :
Most users will not ever use a RepeatedField directly; they will use the
get-by-index, set-by-index, and add accessors that are generated for all
repeated fields
What if I do want to
+kenton
Kenton may have a better answer, but I surmise that it's to avoid tying the
Reflection interface to implementation details. A Message implementation
might not use RepeatedField at all. The original version of protobufs used a
different class to represent repeated fields, so it wouldn't
Hello,
How can I get hold of a RepeatedField object to manage a repeated field
in C++.
In RProtoBuf, we do a lot of :
for( int i=0; isize; i++){
INTEGER(res)[i] = (int) ref-GetRepeatedInt32( *message, fieldDesc, i ) ;
}
where essentially the INTEGER macro gives a
No, there isn't a way to get the RepeatedField from the reflection
interface. You can only do so via the generated interface.
On Thu, Feb 11, 2010 at 5:57 AM, Romain Francois
romain.francois.r.enthusi...@gmail.com wrote:
Hello,
How can I get hold of a RepeatedField object to manage a