/[publicrep]
ViewVC logotype

Revision 329


Jump to revision: Previous Next
Author: tomek
Date: Thu Nov 25 22:39:58 2010 UTC (12 years, 2 months ago)
Changed paths: 6
Log Message:
added: Pattern::CacheFunctions(Functions<StreamType> & fun)
       you can cache all functions (their addresses) in the pattern

changed: now we have two methods for generating content:
       Generator<>::Generate(StreamType & o, Pattern & p, Functions<StreamType> & f);
       similar like previous -- Set(...) methods were removed as well as the second ctor 

       and a second one:
       Generate(StreamType & o, Pattern & p);
       without functions, the functions should be cached beforehand in the pattern
       by calling CacheFunctions() method on the pattern
       this gives O(1) complexity when looking for a specific function
       previously was O(log n) 
       


Changed paths

Path Details
Directoryezc/trunk/src/Makefile.dep modified , text changed
Directoryezc/trunk/src/functions.h modified , text changed
Directoryezc/trunk/src/generator.h modified , text changed
Directoryezc/trunk/src/item.h modified , text changed
Directoryezc/trunk/src/pattern.cpp modified , text changed
Directoryezc/trunk/src/pattern.h modified , text changed

svnadmin@ttmath.org
ViewVC Help
Powered by ViewVC 1.2.1