Lists, Vectors, ArrayLists, etc
#1

Has anyone ever tried to make a List or Vector plugin using STL? It could make life a lot easier for some users as they wouldn't have to deal with raw arrays. I thought about this after we were learning about ArrayLists and data structures in my Java class.
Reply
#2

http://www.cppreference.com/cppvector/index.html

Also, Vectors are becoming/have become deprecated in Java.
Reply
#3

I don't need the API for vectors. I know what they are and what they do. I'm just wondering if anybody has ever tried building a plugin utilizing vectors to make life easier on scripters.
Reply
#4

I made Vectors plugin for myself,but I lose it when I reinstall windows.
Reply
#5

I'm using vectors in my script, and now I'll be trying to develop structure like this:
struct PLAYER{
<pdata>
};
vector<PLAYER> PlayersData;
But for now I don't see a real point linking vector into pawn, as you can't use it as real vector anyway, you could rather make a simple dynamic array, with reduced but much more efficient methods.
Reply
#6

Well for the advanced users, I'm pretty sure they know how to make their script efficient. New users most likely always will make arrays MUCH to big and a vector or arraylist type plugin will reduce that since they don't start out so big.
Reply
#7

People dont really realize we already really have a dynamic array plugin. Search for incognito's gvar plugin, it has functions for storing floats,strings, and ints - all of which have an index parameter so you can create arrays.


I agree though it would be pretty awesome to see an STL plugin with the algorithms,maps,lists, and all the other cool things it has to offer.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)