summaryrefslogtreecommitdiff
path: root/src/tests (follow)
AgeCommit message (Collapse)Author
2007-06-06Except for storing the data somewhere, the TafReader is more or less done.Mike Buland
Some more generalizations are in order, then we'll stuff the data somewhere.
2007-06-05Added a basic ringbuffer, it should be nice and quick, but may be bad to useMike Buland
with objects at the moment, still contemplating that one...
2007-05-17As evidenced by my latest test, the Bu::FString copy is actually slower thanMike Buland
the std::string copy by a rather large margin. This seems very odd, so I'm going to do a few tests, the first one is stripping out the FString shared pointer stuff and seeing if that makes an appreciable difference.
2007-05-17Lots of cool new stuff, the Server class actually works for everything exceptMike Buland
actually interacting with clients, and the Client class is almost there, except that it doesn't really do anything yet.
2007-05-15SPtr is now Bu::ified, and the List class now acts the way we think const listsMike Buland
should act, you can't change anything in there. I'm still debating changing the const_iterator to a constIterator, or something else that's more Bu::worthy. Heh, the namespaces are funny...ok...I'm really tired.
2007-05-11Added a list template class, seems to work pretty well for now, I may haveMike Buland
forgotten proper cleanup in the deconstructor, but besides that you can do almost everything you need. I'll make a slist/stack next, probably with the same basic code, just a different structure (not doubley-linked). The xml system from old-libbu++ is almost completely converted, I was going to re-write it, but this seemed easier at first, it may not have been, we'll see. It almost parses everything again, and almost outputs again, and it does use streams now. The FString is partway to doing minimum chunk allocations, so that adding single-characters will be really fast up to the minimum chunk size. I also figured out how to add this optimization without any extra variables taking up space, and it's optional in the template, which is cool. You can specify the size of the blocks (default 256 bytes), if it's 0 then they'll be like the old FString, 1 chunk per operation. The next FString update should be allowing efficient removal from the begining of the string by faking it, and simply moving a secondary base pointer ahead, and then optimizing appends after that fact to simply move the existing data around if you shouldn't have to re-allocate (alla FlexBuf). The final fun addition that I'm planning is a simple switch in the template (boolean) that will switch an FString into a thread-safe mode without changing the interface or anything that you can do with them at all. It may increasing memory usage, but they should still be better than std::strings, and totally thread-safe. The best part of that is that if it's done with a boolean template parameter and if statements that only test that parameter controlling flow, the code that you don't want (threadsafe/non-threadsafe) won't be included at all post-optimization.
2007-05-08Added the TAF format structures and XML format structures, I'm making up TAFMike Buland
(textual archive format), but named it wrong, this seemed easier than redoing it all.
2007-04-26Merged Ito and put it in the BU namespace. I should probably clean up theMike Buland
formatting on the comments, some of the lines wrap, but I'm not too worried about it right now. I also fixed up the doxygen config and build.conf files so that everything is building nice and smooth now.
2007-04-10I did it, the streams don't start with an S now.Mike Buland
2007-04-03The file stream is imported and works, as does our first test, and the newMike Buland
tweaks to archive. The && operator is now a template function, and as such requires no special handling. It could be worth it to check this out for other types, yet dangerous, since it would let you archive anything, even a class, without writing the proper functions for it...we shall see what happens...
2007-04-03The first batch seem to have made it alright. Unfortunately the Archive classMike Buland
isn't done yet, I'm going to make it rely on streams, so those will be next, then we can make it work all sortsa' well.
2007-04-03Ok, no code is left in src, it's all in src/old. We'll gradually move code backMike Buland
into src as it's fixed and re-org'd. This includes tests, which, I may write a unit test system into libbu++ just to make my life easier.
2007-03-21Fixed another random bug in the string compare for raw strings.Mike Buland
2007-03-19Fixed some bugs and added some new goo. You can serialize FStrings and HeshesMike Buland
now.
2007-03-15This version may break hashing of strings, but at least you can hash FStrings...Mike Buland
templates are confusing.
2007-03-15Looks like FString is ready for general consumption, not too shabby.Mike Buland
2007-03-15FString is totally usable, a few more helpers must be written before it surpasesMike Buland
the other classes in functionality. It's already rather fast.
2007-03-14Now fixed the xml escaping...sigh.Mike Buland
2007-02-27This may require slightly more testing, but basically I made ConnectionManagerMike Buland
more general, you can now listen to all local addresses (the old way), or individual addressses.
2007-02-19The formula system works just fine, just no functions yet, but I don't need themMike Buland
for quite a while.
2007-02-17Tweaked the stream classes, added an example, and the begining of a formulaMike Buland
parser.
2006-12-18A second test for the new hash system.Mike Buland
2006-11-27Added the new OrdHash, check the test file for an example.Mike Buland
2006-11-24david - added sizeDavid
2006-11-24Added a simple smart-pointer. It deletes what's in it automatically and doesMike Buland
ref-counting. You just have to be careful to not hand it an array...
2006-11-22Fixed a silly mistake that made the whole thing useless when using strings.Mike Buland
2006-11-21Fixed the rest of the -Wall complaints. This has made the xmlrepltestMike Buland
particularly lame.
2006-11-21Hash uses real exceptions now, and has a clear() function.Mike Buland
2006-11-21Added a has function to HashMike Buland
2006-11-21Added erase functionality, and specializations for using ints as hash keys, soMike Buland
really it does everything the old one did, does it better, easier, and possibly faster.
2006-11-21Wow, craziness. Part way through working on the confpair system I got someMike Buland
sudden insperation and completely redid Hash. Now everything but delete is implemented, including typesafe iterators and more. It's really cool, and everyone should check it out and start using it right away!
2006-11-21Adding a new config-system that should be easy to make derive from xml. Or justMike Buland
used in general. The base unit, the confpair is a template, so if things go right, you should be able to use this to store any kind of config data in a nice and easily accessable way.
2006-11-02Added the SBuffer class, a memory buffer that can be used like a stream. Yay!Mike Buland
2006-10-31Expanded the scope of the stream system to include positional functions. UpdatedMike Buland
the Connection class so that it won't die horribly if you don't provide the pointers to updatable memory for the amount of time not spent waiting for data during a read. Also fiddled with the http test, as you can see...nothing important.
2006-10-31Changed the file class to be SFile so that it will collide less, all of themMike Buland
will be named like that, make life easier.
2006-10-31Added an sha1 class...Mike Buland
2006-10-11Rearranged the tests, now it's like the old style, which I like more for someMike Buland
reason.
2006-10-11Despite some svn oddness, I'm now moving to a new setup for the tests, that'sMike Buland
very much like the original one, but now using build. You will need the latest build in order to build the tests.