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 repeated field in
> C++.
>
> In RProtoBuf, we do a lot of :
>
> for( int i=0; i<size; i++){
> INTEGER(res)[i] = (int) ref->GetRepeatedInt32( *message, fieldDesc, i ) ;
> }
>
> where essentially the INTEGER macro gives a pointer to the beginning of the
> int array we are filling.
>
> I'd like to replace this using e.g std::copy
>
> RepeatedField field ;
> std::copy( field.begin(), field.end(), INTEGER(res) ) ;
>
> but I can't find how to actually get hold of a RepeatedField object.
>
> Is it possible ?
>
> Romain
>
> --
> Romain Francois
> Professional R Enthusiast
> +33(0) 6 28 91 30 30
> http://romainfrancois.blog.free.fr
> |- http://tr.im/NrTG : Rcpp 0.7.5
> |- http://tr.im/MPYc : RProtoBuf: protocol buffers for R
> `- http://tr.im/KfKn : Rcpp 0.7.2
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to