-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCHANGELOG
477 lines (392 loc) · 20.3 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
2012-01-30 Alex Chow <[email protected]>
* Bzet4.cpp: Integrated collapsing in _binop
Resizing now uses a buffer that scales by 2 whenever realloc'd
2012-01-18 Alex Chow <[email protected]>
* Bzet4.cpp: Bugfix in _binop
Bugfix in subtreeNot
2012-01-06 Alex Chow <[email protected]>
* Bzet4.cpp: Call to collapse in binop is now conditional on whether or
not the resulting Bzet4 of _binop is collapsible
2011-12-16 Alex Chow <[email protected]>
* Bzet4.cpp: Significantly increased performance by precomputing steps
2011-12-13 Alex Chow <[email protected]>
* Bzet4.cpp: Everything is fully functioning
added functionality for validation of operations in debug mode
2011-12-12 Alex Chow <[email protected]>
* Bzet4.cpp: binop rewritten to properly evaluate level 1 data
collapse now works with saturated nodes and on level 1 data
collapse now works with empty nodes
2011-12-10 Alex Chow <[email protected]>
* Bzet4.cpp: Redid normalize, copy contructor, firstBit, lastBit, normalize,
align, buildDepth, stepThrough, printBzet, subtreeNot, operator~
to properly evaluate a Bzet4 with level 1 as the lowest level
2011-12-02 Jay Topiwala <[email protected]>
* help.txt: fixed help file for create command so that it no longer said
compress incorrectly while listing command templates.
2011-11-28 Hemming Leo <[email protected]>
* CLI.cpp Fixed various bugs
Adjusted some error messages to be more specific
2011-11-27 Jay Topiwala <[email protected]>
* WordIndex.cpp: Fixed default constructor so that memory is allocated for
m_words. getIndexOf can still be called on it, so the
array must still be initialized.
Fixed getIndexOf to return the proper Bzet after creating a
new word.
Changed addWord to return the position of the inserted word.
Fixed addWord to avoid making shiftWords shift things off the
end of the array.
Defined checkOrder to check that the sorting works correctly for
m_words.
Defined testWordIndexClass.
Defined checkWordsForWordIndex.
Defined verifyWordConsistency.
Defined verifyWord.
* WordIndex.h: Added member function declaration for checkOrder.
Changed return type for addWord.
Added declaration for checkWordsForWordIndex.
Added declaration for verifyWordConsistency.
Added declaration for verifyWord.
2011-11-27 Hemming Leo <[email protected]>
* CLI.cpp: Added help command
2011-11-27 Hemming Leo <[email protected]>
* CLI.cpp: Added new functionality to the create and set commands
Added xor command
Added some functionality to string together commands
Added more checks for invalid arguments
2011-11-26 Alex Chow <[email protected]>
* Bzet4.cpp: Rewrote do_op to work with all binary operations
2011-11-26 Jay Topiwala <[email protected]>
* WordIndex.cpp: Included cassert, for testing purposes.
Changed constructors to take line length arguments when
needed, and to initialize m_charsperline.
Changed buildFromStream to use m_charsperline instead of
WORDINDEX_MAXCHARSPERLINE.
Updated getText to insert a newline character when
appropriate, based on m_charsperline. Restructured
function to avoid unnecessary steps in the loop.
Updated cloneFromStream to copy m_charsperline from cloned
WordIndex object.
Added stub for testWordIndexClass that exists only if
WORDINDEX_TESTING is defined, to be used to run tests.
Currently it is incomplete.
* WordIndex.h: Added arguments/default values to constructors for
specifying line length
Added m_charsperline member variable.
Added external function testWordIndexClass that exists only
if WORDINDEX_TESTING is defined, to be used to run tests.
2011-11-26 Nico Guiton <[email protected]>
* WordIndex.cpp: Implemented a binary search function for finding words
Implemented a function for adding new words in alphabetical
order to m_words
Implemented helper function for adding new words
* WordIndex.h: Added a binary search function for finding words
Added a function and helper functions for adding new words
Added a new macro for a failed search
2011-11-25 Alex Chow <[email protected]>
* Bzet4.cpp: Fixed a bug in lastBit
Switched order of collapsing and calculating depth in binop
Fixed bug in at
Fixed subtreeNot
Made binop a public method
Changed binop call to be similar to logical operators
* Bzet4.h: Added more enums for OP
* PyBzet4.cpp: LIST_T now correctly returns as a python list
2011-11-25 Trisha Liao <[email protected]>
* Bzet4.cpp, Bzet4.h: Rewrote code for operations
2011-11-14 Alex Chow <[email protected]>
* PyBzet4.cpp: Added support for indexing (operator[])
Added NOT
* Bzet4.cpp: Fixed up some comments and error messages
2011-11-24 Trisha Liao <[email protected]>
* Bzet4.cpp, Bzet4.h: Changed how operations were done
2011-11-21 Alex Chow <[email protected]>
* Bzet4.cpp: Added subtreeNot for use with binop
2011-11-20 Hemming Leo <[email protected]>
* CLI.cpp: Fully separated bzet and wordindex operations into separate functions
Implemented getindex command of wordindex
2011-11-19 Hemming Leo <[email protected]>
* CLI.cpp: Created a new struct to hold bzets and wordindex arrays
Started to separate do_command_line into multiple functions
2011-11-18 Trisha Liao <[email protected]>
*Bzet4.cpp, Bzet4.h: Changed int types to long long
2011-11-18 Alex Chow <[email protected]>
* PyBzet4.h, PyBzet4.cpp: Created and implemented wrapper for Python interface
for call consistency
NOTE: no documentation
2011-11-16 Trisha Liao <[email protected]>
*Bzet4.cpp: Fixed an error in AND
*Bzet4.h: Changed some function names
2011-11-13 Nico Guiton <[email protected]>
* WordIndex.cpp: Changed functions to use Bzet4 instead of vectors to represent line
numbers.
* WordIndex.h: Changed functions and Words struct to use Bzet4 instead of vectors.
Added exitOnError prototype.
2011-11-13 Trisha Liao <[email protected]>
*Bzet4. cpp: Fixed an error in unset and AND
2011-11-12 Hemming Leo <[email protected]>
* CLI.cpp: Separated the code to execute the commands into a separate function
Some minor code cleanup
2011-11-11 Alex Chow <[email protected]>
* Bzet4.h, Bzet4.cpp: Retyped int64_t with long long for compatibility with SWIG
Made operator helper functions private
Added error handling to loadBzet and Bzet4(void*, int) for
null pointers
BUG: Constructors with two parameters causes ambiguity when
first parameter is 0 (uses Bzet4(void*, int))
2011-11-10 Alex Chow <[email protected]>
* Error.h: Created routine for displaying errors
* Bzet4.cpp: Added error handling for resize, firstBit, and lastBit
2011-11-09 Trisha Liao <[email protected]>
* Bzet4.cpp: Fixed the depth for AND, OR, XOR
* Bzet4.h: Added functions that help determine the depth
2011-11-08 Hemming Leo <[email protected]>
* CLI.cpp Implemented commands to print out a line or the entire text of WordIndex
Partially implemented command to print out bzet of a word in WordIndex
2011-11-08 Hemming Leo <[email protected]>
* CLI.cpp Added some WordIndex functionality
User can now create blank WordIndex and from file
* CLI.h Added a structure and functions to support creating WordIndex
2011-11-07 Trisha Liao <[email protected]>
*Bzet4.cpp: Nodes with only zeroes should now be empty nodes.
2011-11-07 Hemming Leo <[email protected]>
* CLI.cpp The command to read in a data file and convert to bzet now works
Added & and == operators to commands
2011-11-06 Trisha Liao <[email protected]>
*Bzet4.cpp: Added XOR. Added normalize to AND, OR, XOR, and NOT. Fixed and
error in collapse. Added the == operator.
*Bzet4.h: Added XOR and ==.
2011-11-05 Trisha Liao <[email protected]>
*Bzet4.cpp: Fixed an error in collapse. Added binop for general binary
operations. Fixed OR and added AND.
*Bzet4.h: Added binop
2011-11-05 Hemming Leo <[email protected]>
* CLI.cpp Updated the CLI so it now can accept an arbitrary number of
arguments and can create an arbitrary number of bzets
* CLI.h Added function used for above change
2011-11-05 Trisha Liao <[email protected]>
*Bzet4.cpp: Fixed an error in collapse
2011-11-04 Jay Topiwala <[email protected]>
* WordIndex.cpp: Implemented exitOnError to have a uniform error handling solution.
Removed allocateMemory, since it's no longer needed.
Removed reallocateMemory, since it's no longer needed.
Changed all functions to us malloc/realloc instead, and handle
errors with exitOnError.
* WordIndex.h: Added exitOnError prototype.
Removed allocateMemory prototype.
Removed reallocateMemory prototype.
2011-11-04 Alex Chow <[email protected]>
* Bzet4.cpp: Created and implemented a Bzet4 constructor from literal bitstrings
Created and implemented private loadBzet function
2011-11-04 Jay Topiwala <[email protected]>
* WordIndex.cpp: Changed all related functions to treat m_words and m_lines as
dynamic arrays of pointers to objects instead of dynamic
arrays of objects, so that member objects do not move while
WordIndex object still exists, even if the array is reallocated.
* WordIndex.h: Changed type of m_words from Word* to Word**.
Changed type of m_liness from std::string* to std::string**.
2011-11-04 Trisha Liao <[email protected]>
*Bzet4.cpp: Added collapse function to collapse the appropriate data nodes and
OR now collapses them. Fixed errors in OR.
2011-11-04 Jay Topiwala <[email protected]>
* WordIndex.cpp: Fixed profoundly ugly memory management error. Program can
now successfully parse the bible.
2011-11-03 Alex Chow <[email protected]>
* Bzet4.cpp: Fixed the OR operator to work properly on empty Bzets
Created and implemented setRange function
Implemented range constructor
2011-11-03 Trisha Liao <[email protected]>
*Bzet4.cpp: Added turn_off_tree_bits function that turns off a tree bit and
turns on a data bit and the moving function that overwrites a node and shifts
everything over
*Bzet4.h: Added the above functions
2011-11-02 Alex Chow <[email protected]>
* Bzet4.cpp: _printBzet now prints full Bzet correctly
2011-11-02 Trisha Liao <[email protected]>
* Bzet4.cpp: Added parent_node function that finds the parent node of a given child node
*Bzet4.h: Added the parent_node function
2011-11-02 Alex Chow <[email protected]
* Bzet4.cpp: Modified _printBzet to output nibbles in uppercase for consistency
depthAt now works correctly
2011-11-01 Alex Chow <[email protected]>
* Bzet4.cpp: Created and implemented bitwise not operator
Fixed alignment of output from _printBzet
2011-11-01 Trisha Liao <[email protected]>
*Bzet.h: Added OR helper functions
*Bzet.cpp: Fixed OR.
Modified the copy constructor and equal operator.
2011-11-1 Hemming Leo <[email protected]>
* CLI.cpp Added functionality for an interactive session for the user
Reworked main() to better support the above change
Added commands to let user import and save data files and bzet files
Change uses of c strings to Strings for better consistency
* CLI.h Updated function prototypes to reflect changes
Added find_bzet function and bzet_file struct to support interactive session
2011-10-31 Jay Topiwala <[email protected]>
* WordIndex.cpp: Clarified documentation for allocateMemory and reallocateMemory
2011-10-31 Jay Topiwala <[email protected]>
* WordIndex.cpp: Moved macro MAXCHARSPERLINE to header
Changed references to MAXCHARSPERLINE to WORDINDEX_MAXCHARSPERLINE
Implemented allocateMemory
Implemented reallocateMemory
Retooled functions so that all allocation/reallocation goes through
the above two functions
Memory reallocation now uses macro WORDINDEX_RESIZEFACTOR when
calculating the new size of the array
* WordIndex.h: Renamed MAXCHARSPERLINE to WORDINDEX_MAXCHARSPERLINE
Added macro WORDINDEX_RESIZEFACTOR to represent the resize factor
when reallocating memory for an array (2)
Added allocateMemory prototype
Added reallocateMemory prototype
2011-10-31 Nico Guiton <[email protected]>
* WordIndex.cpp: Added a few more comments to make code easier to understand and read
Added a macro MAXCHARSPERLINE to represent the maximum number of
characters per line (100).
Replaced instances of 100 and 101 with MAXCHARSPERLINE and
(MAXCHARSPERLINE + 1) respectively.
Moved loop variable declaration in destroyData and cloneWordIndex
inside of the for loops.
2011-10-31 Alex Chow <[email protected]>
* Bzet4.h:
* Bzet4.cpp: Changed uint64_t type to int64_t and modified special return values
accordingly
2011-10-31 Jay Topiwala <[email protected]>
* WordIndex.cpp: Implemented destroyData
Changed destructor to utilize destroyData
* WordIndex.h: Added destroyData prototype
2011-10-31 Jay Topiwala <[email protected]>
* WordIndex.h: Added copy constructor prototype
Added operator= prototype
Added cloneWordIndex prototype
Removed const modifier from getLine return type
Removed const modifier from getText return type
* WordIndex.cpp: Implemented copy constructor
Implemented operator=
Implemented cloneWordIndex to assist the above two functions
Removed const modifier from getLine return type
Removed const modifier from getText return type
2011-10-31 Nico Guiton <[email protected]>
* WordIndex.cpp: Added const modifier to getText
Added const modifier to getLine
* WordIndex.h: Added const modifier to getText
Added const modifier to getLine
2011-10-31 Nico Guiton <[email protected]>
* WordIndex.cpp: Fixed an error in getText() that prevented the function from obtaining
the last line of text.
2011-10-31 Jay Topiwala <[email protected]>
* WordIndex.cpp: Corrected ~WordIndex to avoid memory leak
2011-10-31 Nico Guiton <[email protected]>
* WordIndex.cpp: Implemented a getLine(linenumber) function for WordIndex that
returns a line from m_text corresponding to linenumber
Implemented a getText() function for WordIndex that returns
the entire text stored in WordIndex
* WordIndex.h: Added getLine prototype
Added getText prototype
2011-10-31 Jay Topiwala <[email protected]>
* WordIndex.cpp: Corrected getIndexOf, seems to work fine now, but more testing is needed
2011-10-31 Jay Topiwala <[email protected]>
* WordIndex.cpp: Implemented buildFromStream, changed constructors to use them
Corrected dynamic memory management statements for syntax and logic
* WordIndex.h: Created buildFromStream to assist in reusing code for the two constructors
Added TODO: comments for missing constructor types
2011-10-30 Jay Topiwala <[email protected]>
* WordIndex.cpp: Fixed syntax and logic errors to allow for successful compilation
Fixed include statements.
* WordIndex.h: Cleaned up files to allow for successful compilation.
Removed private helper function for constructor, consolidated into one function.
Fixed include statements.
2011-10-30 Jay Topiwala <[email protected]>
* WordIndex.cpp: Took care of all CHECK: comments Nico made previously
2011-10-30 Nico Guiton <[email protected]>
* WordIndex.cpp: Fixed text-based constructor to hand straddling words
Added a few more comments to attempt to clarify the constructors
Added a few possible changes to loops and conditions as comments
marked by //CHECK:
2011-10-30 Jay Topiwala <[email protected]>
* WordIndex.cpp: Changed file-based constructor to account for words that straddle a line
break
2011-10-30 Jay Topiwala <[email protected]>
* Bzet4.h: Changed include guard to keep format the same for all.
* CLI.h: Added include guard.
* WordIndex.cpp: Renamed m_text to m_lines, for clarity.
* WordIndex.h: Renamed m_text to m_lines, for clarity.
2011-10-30 Nico Guiton <[email protected]>
* WordIndex.h: Changed instances of Bzet4 and Bzet4* to vector<unsigned int> for testing
purposes
Added vector library
* WordIndex.cpp: Added vector library
Changed instances of Bzet4 and Bzet4* to vector<unsigned int> for testin
purposes
Added additional comments to further explain code in createLinesFromText
Added length parameter to createLinesFromText function to help estimate
the amount of memory to allocate to m_text
Removed superfulous variables, instead modifying the private member
variables directly in createLinesFromText
Cleaned up createLinesFromText implementation
2011-10-30 Jay Topiwala <[email protected]>
* WordIndex.cpp: Fixed mistakes in file-based constructor and getIndexOf, and cleaned
up algorithm in the latter as well.
2011-10-29 Alex Chow <[email protected]>
* Bzet4.cpp: Fixed printBzet to properly display multiple data nodes
2011-10-29 Jay Topiwala <[email protected]>
* Bzet4.cpp: Tagged final constructor with a TODO comment -- needs to be implemented
* WordIndex.cpp: Implemented constructor based on file path
Added memory allocation/reallocation code for m_words
* WordIndex.h: Removed completed TODO: statements
2011-10-29 Nico Guiton <[email protected]>
* WordIndex.h: Added include guards for header file
Added m_maxwords to private member variables
Added m_numofwords to private member variables
* WordIndex.cpp: Fleshed out getIndexOf function
Marked unfinished functions with //TODO: comments
2011-10-29 Nico Guiton <[email protected]>
* WordIndex.h: Added createLinesFromText private helper function for constructor
Added unsigned int m_numoflines private member variable
* WordIndex.cpp: Implemented createLinesFromText function
2011-10-29 Alex Chow <[email protected]>
* Bzet4.cpp: Created and implemented count function
2011-10-29 Nico Guiton <[email protected]>
* WordIndex.h: Changed some inputs to be const
Added another WordIndex constructor for text files (unfinished)
Changed all instances of cstrings to C++ strings
* WordIndex.cpp: Changed some inputs to be const
Added another WordIndex constructor for text files (unfinished)
Changed all instances of cstrings to C++ strings
2011-10-29 Nico Guiton <[email protected]>
* WordIndex.h: Added prototypes for WordIndex constructor and getIndexOf functions
Added and implemented Word struct
* WordIndex.cpp: Implemented WordIndex constructor
Implemented dummy getIndexOf function
2011-10-28 Alex Chow <[email protected]>
* Bzet4.h: Added prototypes for bitwise operators
* Bzet4.cpp: Created and implemented empty function
Created and implemented firstBit function
Fixed constructor for bit = 0 and printBzet for an empty Bzet
Fixed _printBzet to work with Bzets containing multiple data nodes
Added debug constructor
Created and implemented depthAt function
Created and implemented stepThrough function
Created lastBit function
Implemented lastBit function
2011-10-27 Alex Chow <[email protected]>
* Bzet4.cpp: Created and implemented normalize function
2011-10-26 Alex Chow <[email protected]>
* Bzet4.cpp: Created and implemented printBzet function
Added explicit offset (user can specify standard offset of all lines)
Now adds a newline at the end
Hid implementation of printBzet as a private method
Reversed order of visiting tree nodes (corrected)
Changed order of parameters (standard offset before file descriptor)
2011-10-25 Alex Chow <[email protected]>
* Bzet4.cpp: Changed everything so that level 0 does not count in depth
Redid resize functionality to resize to specified number of bytes.
Created and implemented copy constructor
Created and implemented assignment operator
Created and implemented dust function
Created and implemented align function
Retyped m_bzet to unsigned char* for uniformity
2011-10-24 Alex Chow <[email protected]>
* Bzet4.cpp: Implemented Bzet4 contructor that takes one argument
Implemented function to retrieve Bzet as hex string
2011-10-23 Alex Chow <[email protected]>
* Bzet4.h: Created Bzet4 header
* Bzet4.cpp: Implemented default Bzet4 constructor and functions resize, clear