// ChangeNode.cpp: implementation of the ChangeNode class. // ////////////////////////////////////////////////////////////////////// #include <stdhdrs.h> #include <strbuf.h> #include "changenode.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// ChangeNode::ChangeNode(StrBuf input) { change = input; value = atoi((const char*) change.Text()); prev = NULL; next = NULL; } ChangeNode::~ChangeNode() { if (next != NULL) delete next; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 1704 | Sam Stafford |
Change API includes to <*.h> rather than "*.h". No functional change. |
||
#4 | 1685 | Sam Stafford |
Changes to p4hltest that didn't get submitted properly... boggle? |
||
#3 | 1684 | Sam Stafford |
Imported new 02.1 p4api headers and libs. MAJOR code cleanup to make it fit without resorting to re-hacking of the API headers. The hacked headers were not L33T. They deserved D34TH. |
||
#2 | 1419 | Sam Stafford | Tweaking and edits to make it compile on its own. | ||
#1 | 1417 | Sam Stafford |
Branching backend stuff off for rigorous testing. Grahr. |
||
//guest/sam_stafford/p4hl/src/dlls/ChangeNode.cpp | |||||
#2 | 1349 | Sam Stafford |
Overhaul to ChangeSorter implementation. Member variables of ChangeSorter have been made private, since nothing was (or should be) accessing them directly, and methods, which remain public, should look the same from outside. The original ChangeSorter was quick and dirty because I wanted to see P4HL working quickly, but it was also about as inefficient as possible because it used single links and linear searches. The new and improved ChangeSorter is a doubly-linked list with intelligent searching that's geared toward sequential access of elements that are close to each other, which is indeed the nature of most of the queries that P4HL makes. Even in a worst-case scenario, this version should perform at least as well as the old one. No noticeable performance change or bugs as of yet, but in theory we'd see the difference with really large sets of data (ones larger than P4HL can show us). |
||
#1 | 937 | Sam Stafford |
Renaming my guest directory to the more conventional sam_stafford. |
||
//guest/samwise/p4hl/src/dlls/ChangeNode.cpp | |||||
#1 | 936 | Sam Stafford |
Adding P4HL to the public depot. See relnotes.txt for installation instructions; all relevant files are under p4hl/dist. Source code is under p4hl/src in the form of a VC++ project. |