Most languages I have worked in have had a library for common data containers (Tree, Linked List, Stack/Queue, Hash Table, Map, Etc.). I understand that these data structures can be made by using an array and storing array indexes.
Lets face it, it stinks to have to write your own data container evry time you can't force a queue to do something it was clearly not meant to do be able to do, like be a stack.
The advent of classes in labeled was great & I have spent plenty of time creating data structures classes, but the problem is that without templates, or the ability to have more than one kind of dynamic dispatch terminal in a VI, you end up having to write a wrapper to box & unbox your data.
The other problem that I have found is that generally all data must be put into a array for storage. This makes inserting and deleting items from trees and link lists tricky.
I think a set of native data containers along with the operators/methods to manipulate them should be added to labview. It would be nice if upon creation there was a polymorphic terminal that would allow you to wire up any basic primitive type (numeric, double, boolean, string, cluster, references, etc.) as well as classes (not just the LV object, but a template like approach) and variants.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.