Lib Vector 2.0 beta (Generic Linked List)

Developed or developing a new product in PureBasic? Tell the world about it.
lionel_om
User
User
Posts: 31
Joined: Wed Jul 18, 2007 4:14 pm
Location: France

Lib Vector 2.0 beta (Generic Linked List)

Post by lionel_om »

Hi everyone,

I've just created the version 2 of the Vector Lib I've already distribute some years ago. But the last version was not easy to use. So this second version is now simple, can store every type of data and compiled with Tailbite (so you don't need any IncludeFile).

What is this User Lib ?

A Vector is a Linked List which can contains basics data (Byte, Long, Float, Quad...), Strings and structures (complex or simples).

A lot of functions are already available to allow you to compute something quickly.

This linked list are slower than PB's one, but you can easily copy a Vector to another, combine them in one command.

How to use Structure Vectors ?

According to me, there are two types of structures :
* complex : contains strings or pointers
* simple : where *a.struct <= *b.struct can be done with only one CopyMemory()

For the complex structures you need to define a Constructor and a Destructor (and a comparison procedure if you want to use Vector sort or search procedures). That's all you need to do. All the other procedures are already implemented.


Download

You can download the Lib Vector there : here.


Notes

The Help file is available and in English. But as it is not my home language it may have severals grammatical errors.

For the moment the Lib is not compatible with Linux or Mac (Files procedures won't work) because of the Resident. So if someone can compile the Resident on these OS and send me the Res file this Lib will work on every OS.


[EDIT]
To install it you just need to copy/paste files in your PB directory.

Sources and examples are contained in the zip file.


Thanks

Lio :wink:
Webmaster of Basic-univers
lionel_om
User
User
Posts: 31
Joined: Wed Jul 18, 2007 4:14 pm
Location: France

Post by lionel_om »

Thanks to walker, the zip got the Linux Resident now.
So the installation will be a little bit different (read the INSTALL.TXT file)

Lio
Webmaster of Basic-univers
Post Reply