How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

&#10;#include &lt;rtt/types/SequenceConstructor.hpp&gt;&#10;#include &lt;rtt/types/TemplateConstructor.hpp&gt;&#10;&#10;// ...&#10;&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( new SequenceBuilder&lt;MyTypes&gt;() );&#10;        // fixed number of args:&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor&lt;MyTypes&gt;() ) );&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor2&lt;MyTypes&gt;() ) );&#10;

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

&#10;#include &lt;rtt/types/SequenceConstructor.hpp&gt;&#10;#include &lt;rtt/types/TemplateConstructor.hpp&gt;&#10;&#10;// ...&#10;&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( new SequenceBuilder&lt;MyTypes&gt;() );&#10;        // fixed number of args:&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor&lt;MyTypes&gt;() ) );&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor2&lt;MyTypes&gt;() ) );&#10;

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

&#10;#include &lt;rtt/types/SequenceConstructor.hpp&gt;&#10;#include &lt;rtt/types/TemplateConstructor.hpp&gt;&#10;&#10;// ...&#10;&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( new SequenceBuilder&lt;MyTypes&gt;() );&#10;        // fixed number of args:&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor&lt;MyTypes&gt;() ) );&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor2&lt;MyTypes&gt;() ) );&#10;

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

&#10;#include &lt;rtt/types/SequenceConstructor.hpp&gt;&#10;#include &lt;rtt/types/TemplateConstructor.hpp&gt;&#10;&#10;// ...&#10;&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( new SequenceBuilder&lt;MyTypes&gt;() );&#10;        // fixed number of args:&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor&lt;MyTypes&gt;() ) );&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor2&lt;MyTypes&gt;() ) );&#10;

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

&#10;#include &lt;rtt/types/SequenceConstructor.hpp&gt;&#10;#include &lt;rtt/types/TemplateConstructor.hpp&gt;&#10;&#10;// ...&#10;&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( new SequenceBuilder&lt;MyTypes&gt;() );&#10;        // fixed number of args:&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor&lt;MyTypes&gt;() ) );&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor2&lt;MyTypes&gt;() ) );&#10;

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

&#10;#include &lt;rtt/types/SequenceConstructor.hpp&gt;&#10;#include &lt;rtt/types/TemplateConstructor.hpp&gt;&#10;&#10;// ...&#10;&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( new SequenceBuilder&lt;MyTypes&gt;() );&#10;        // fixed number of args:&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor&lt;MyTypes&gt;() ) );&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor2&lt;MyTypes&gt;() ) );&#10;

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

&#10;#include &lt;rtt/types/SequenceConstructor.hpp&gt;&#10;#include &lt;rtt/types/TemplateConstructor.hpp&gt;&#10;&#10;// ...&#10;&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( new SequenceBuilder&lt;MyTypes&gt;() );&#10;        // fixed number of args:&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor&lt;MyTypes&gt;() ) );&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor2&lt;MyTypes&gt;() ) );&#10;

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

&#10;#include &lt;rtt/types/SequenceConstructor.hpp&gt;&#10;#include &lt;rtt/types/TemplateConstructor.hpp&gt;&#10;&#10;// ...&#10;&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( new SequenceBuilder&lt;MyTypes&gt;() );&#10;        // fixed number of args:&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor&lt;MyTypes&gt;() ) );&#10;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor( &#10;sequence_ctor2&lt;MyTypes&gt;() ) );&#10;

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

On Fri, Oct 22, 2010 at 15:45, Peter Soetens <peter [..] ...> wrote:
> On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
>> Hi all,
>>
>> In 1.10 we were able to create vectors of our own types. To this end
>> Ruben and me wrote StdVectorTemplateTypeComposition.
>> How should we handle the vector<MyTypes> in 2.x?
>
> By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")
>
> This will give you size/capacity/[] access to your type. You won't have
> constructors or operators.

This works indeed! (I tested it with different types!)

> It's a mistake that the constructors are not present, since we could have
> added them in the constructor of SequenceTypeInfo itself. The accessor
> functions for these constructors are defined in SequenceConstructor.hpp
>
> For 2.1, you'll need to add in your typekit:
>
> &#10;&gt; #include &lt;rtt/types/SequenceConstructor.hpp&gt;&#10;&gt; #include &lt;rtt/types/TemplateConstructor.hpp&gt;&#10;&gt;&#10;&gt; // ...&#10;&gt;&#10;&gt;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( new SequenceBuilder&lt;MyTypes&gt;() );&#10;&gt;        // fixed number of args:&#10;&gt;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor(&#10;&gt; sequence_ctor&lt;MyTypes&gt;() ) );&#10;&gt;        ti-&gt;type(&quot;mytypes&quot;)-&gt;addConstructor( newConstructor(&#10;&gt; sequence_ctor2&lt;MyTypes&gt;() ) );&#10;&gt;
>
> It should no longer be necessary to add these in 2.2.

Using the git master, the constructors were not needed any more.

Thanks,

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne