aboutsummaryrefslogtreecommitdiff
path: root/src/tests/cache.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-04-10 06:23:07 +0000
committerMike Buland <eichlan@xagasoft.com>2009-04-10 06:23:07 +0000
commitfc96db275f65a9d5adc4a40758f50297fc5bdbf0 (patch)
tree6757c7e3dd2f008a243f50c3d1cc2c8fb42b7a94 /src/tests/cache.cpp
parenteb23533db14ce9d712dad87b08e4df11d77fa3d3 (diff)
downloadlibbu++-fc96db275f65a9d5adc4a40758f50297fc5bdbf0.tar.gz
libbu++-fc96db275f65a9d5adc4a40758f50297fc5bdbf0.tar.bz2
libbu++-fc96db275f65a9d5adc4a40758f50297fc5bdbf0.tar.xz
libbu++-fc96db275f65a9d5adc4a40758f50297fc5bdbf0.zip
Added some new goodness to the fbasicstring, fixing some inconsistancies and
adding some more helpers. Hopefully this won't affect anything, but if it complains about any functions not working the way they used to, see if they're returning an int or an iterator. I made several functions handle iterators instead of ints, the int versions have an "Idx" suffix added now. I'm trying to switch entirely to iterators to reduce flattening and increase performance and stability. Also...something must have changed in the cache code...
Diffstat (limited to 'src/tests/cache.cpp')
-rw-r--r--src/tests/cache.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp
index 8d95a9d..5d542ed 100644
--- a/src/tests/cache.cpp
+++ b/src/tests/cache.cpp
@@ -171,6 +171,7 @@ public:
171 171
172 virtual bool shouldSync( Bob *, const long &, time_t ) 172 virtual bool shouldSync( Bob *, const long &, time_t )
173 { 173 {
174 return false;
174 } 175 }
175 176
176private: 177private:
@@ -224,9 +225,9 @@ int main( int argc, char *argv[] )
224 case 'l': 225 case 'l':
225 { 226 {
226 BobCache::Ptr pBob = cBob.getLazy( strtol( argv[2], NULL, 0 ) ); 227 BobCache::Ptr pBob = cBob.getLazy( strtol( argv[2], NULL, 0 ) );
227 printf("isLoaded: %s\n", pBob.isLoaded()?"yes":"no"); 228 printf("isBound: %s\n", pBob.isBound()?"yes":"no");
228 printf("Value = %d\n", pBob->getInt() ); 229 printf("Value = %d\n", pBob->getInt() );
229 printf("isLoaded: %s\n", pBob.isLoaded()?"yes":"no"); 230 printf("isBound: %s\n", pBob.isBound()?"yes":"no");
230 } 231 }
231 return 0; 232 return 0;
232 } 233 }