|
From: <tf...@us...> - 2008-04-26 01:06:00
|
Revision: 186
http://personalrobots.svn.sourceforge.net/personalrobots/?rev=186&view=rev
Author: tfoote
Date: 2008-04-25 18:06:06 -0700 (Fri, 25 Apr 2008)
Log Message:
-----------
adding default argument for cacheing as per ticket:21
Modified Paths:
--------------
pkg/trunk/libTF/include/libTF/Quaternion3D.h
pkg/trunk/libTF/src/simple/Quaternion3D.cpp
Modified: pkg/trunk/libTF/include/libTF/Quaternion3D.h
===================================================================
--- pkg/trunk/libTF/include/libTF/Quaternion3D.h 2008-04-26 01:05:46 UTC (rev 185)
+++ pkg/trunk/libTF/include/libTF/Quaternion3D.h 2008-04-26 01:06:06 UTC (rev 186)
@@ -76,8 +76,8 @@
};
/** Constructors **/
- // Standard constructor
- Quaternion3D();
+ // Standard constructor max_cache_time is how long to cache transform data
+ Quaternion3D(unsigned long long max_cache_time = DEFAULT_MAX_STORAGE_TIME);
/** Mutators **/
// Set the values manually
@@ -112,7 +112,7 @@
private:
/**** Linked List stuff ****/
- static const unsigned long long MAX_STORAGE_TIME = 100ULL * 1000000000ULL; // max of 100 seconds storage
+ static const unsigned long long DEFAULT_MAX_STORAGE_TIME = 10ULL * 1000000000ULL; // default value of 10 seconds storage
struct data_LL{
Quaternion3DStorage data;
Modified: pkg/trunk/libTF/src/simple/Quaternion3D.cpp
===================================================================
--- pkg/trunk/libTF/src/simple/Quaternion3D.cpp 2008-04-26 01:05:46 UTC (rev 185)
+++ pkg/trunk/libTF/src/simple/Quaternion3D.cpp 2008-04-26 01:06:06 UTC (rev 186)
@@ -39,8 +39,8 @@
};
-Quaternion3D::Quaternion3D():
- max_storage_time(MAX_STORAGE_TIME),
+Quaternion3D::Quaternion3D(unsigned long long max_cache_time):
+ max_storage_time(max_cache_time),
first(NULL),
last(NULL)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|