g2o
Public Member Functions | Protected Attributes | Friends | List of all members
g2o::Cache::CacheKey Class Reference

#include <cache.h>

Public Member Functions

 CacheKey ()
 
 CacheKey (const std::string &type_, const ParameterVector &parameters_)
 
bool operator< (const CacheKey &c) const
 
const std::string & type () const
 
const ParameterVectorparameters () const
 

Protected Attributes

std::string _type
 
ParameterVector _parameters
 

Friends

class CacheContainer
 

Detailed Description

Definition at line 43 of file cache.h.

Constructor & Destructor Documentation

g2o::Cache::CacheKey::CacheKey ( )

Definition at line 36 of file cache.cpp.

36  :
37  _type(), _parameters()
38  {
39  }
ParameterVector _parameters
Definition: cache.h:57
std::string _type
Definition: cache.h:56
g2o::Cache::CacheKey::CacheKey ( const std::string &  type_,
const ParameterVector parameters_ 
)

Definition at line 41 of file cache.cpp.

41  :
42  _type(type_), _parameters(parameters_)
43  {
44  }
ParameterVector _parameters
Definition: cache.h:57
std::string _type
Definition: cache.h:56

Member Function Documentation

bool g2o::Cache::CacheKey::operator< ( const CacheKey c) const

Definition at line 51 of file cache.cpp.

References _parameters, g2o::Cache::_parameters, and _type.

51  {
52  if (_type < c._type)
53  return true;
54  else if (c._type < _type)
55  return false;
56  return std::lexicographical_compare (_parameters.begin( ), _parameters.end( ),
57  c._parameters.begin( ), c._parameters.end( ) );
58  }
ParameterVector _parameters
Definition: cache.h:57
std::string _type
Definition: cache.h:56
const ParameterVector& g2o::Cache::CacheKey::parameters ( ) const
inline

Definition at line 53 of file cache.h.

53 { return _parameters;}
ParameterVector _parameters
Definition: cache.h:57
const std::string& g2o::Cache::CacheKey::type ( ) const
inline

Definition at line 52 of file cache.h.

Referenced by g2o::CacheContainer::createCache().

52 { return _type;}
std::string _type
Definition: cache.h:56

Friends And Related Function Documentation

friend class CacheContainer
friend

Definition at line 46 of file cache.h.

Member Data Documentation

ParameterVector g2o::Cache::CacheKey::_parameters
protected

Definition at line 57 of file cache.h.

Referenced by g2o::CacheContainer::createCache(), and operator<().

std::string g2o::Cache::CacheKey::_type
protected

Definition at line 56 of file cache.h.

Referenced by operator<().


The documentation for this class was generated from the following files: