#include <cache.h>
Definition at line 38 of file cache.h.
Cache * g2o::Cache::installDependency |
( |
const std::string & |
type_, |
|
|
const std::vector< int > & |
parameterIndices |
|
) |
| |
|
protected |
this function installs and satisfies a cache
- Parameters
-
type_ | the typename of the dependency |
parameterIndices | a vector containing the indices if the parameters in _parameters that will be used to assemble the Key of the cache being created For example if I have a cache of type C2, having parameters "A, B, and C", and it depends on a cache of type C1 that depends on the parameters A and C, the parameterIndices should contain "0, 2", since they are the positions in the parameter vector of C2 of the parameters needed to construct C1. |
- Returns
- the newly created cache
Definition at line 95 of file cache.cpp.
bool g2o::Cache::resolveDependancies |
( |
| ) |
|
|
protectedvirtual |
Function to be called from a cache that has dependencies. It just invokes a sequence of installDependency(). Although the caches returned are stored in the _parentCache vector, it is better that you redefine your own cache member variables, for better readability
Definition at line 114 of file cache.cpp.
void g2o::Cache::update |
( |
| ) |
|
virtual void g2o::Cache::updateImpl |
( |
| ) |
|
|
protectedpure virtual |
redefine this to do the update
std::vector<Cache*> g2o::Cache::_parentCaches |
|
protected |
bool g2o::Cache::_updateNeeded |
|
protected |
The documentation for this class was generated from the following files: