Hi,
is there a way to determine for a given a DataSoureBase whether it is
indexable (other than assuming this is the case because is happens to
have capacity and size members?)
Thanks
Markus
Orocos Real-Time ToolkitSmarter realtime. Safer threads
|
|
how to find out whether a DataSource is indexable |
how to find out whether a DataSource is indexable
On Wednesday 08 December 2010 16:26:29 Markus Klotzbuecher wrote:
> Hi,
>
> is there a way to determine for a given a DataSoureBase whether it is
> indexable (other than assuming this is the case because is happens to
> have capacity and size members?)
No. There is no generic interface to get that information. Since this
information is tied to the type, such interface should be added to the
TypeInfo class.
Peter
how to find out whether a DataSource is indexable
Isn't there the getMember method ?
Peter Soetens wrote:
> On Wednesday 08 December 2010 16:26:29 Markus Klotzbuecher wrote:
>> Hi,
>>
>> is there a way to determine for a given a DataSoureBase whether it is
>> indexable (other than assuming this is the case because is happens to
>> have capacity and size members?)
>
> No. There is no generic interface to get that information. Since this
> information is tied to the type, such interface should be added to the
> TypeInfo class.
>
> Peter
how to find out whether a DataSource is indexable
On Wed, Dec 08, 2010 at 07:46:47PM +0100, Paul Chavent wrote:
> Isn't there the getMember method ?
>
> Peter Soetens wrote:
> > On Wednesday 08 December 2010 16:26:29 Markus Klotzbuecher wrote:
> >> Hi,
> >>
> >> is there a way to determine for a given a DataSoureBase whether it is
> >> indexable (other than assuming this is the case because is happens to
> >> have capacity and size members?)
> >
> > No. There is no generic interface to get that information. Since this
> > information is tied to the type, such interface should be added to the
> > TypeInfo class.
Yes but I meant indexable by numeric values in the sense of an array.
Markus
how to find out whether a DataSource is indexable
On Wed, Dec 08, 2010 at 04:54:50PM +0100, Peter Soetens wrote:
> On Wednesday 08 December 2010 16:26:29 Markus Klotzbuecher wrote:
> > Hi,
> >
> > is there a way to determine for a given a DataSoureBase whether it is
> > indexable (other than assuming this is the case because is happens to
> > have capacity and size members?)
>
> No. There is no generic interface to get that information. Since this
> information is tied to the type, such interface should be added to the
> TypeInfo class.
Thanks!
Markus