g2o
Loading...
Searching...
No Matches
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 42 of file cache.h.

Constructor & Destructor Documentation

◆ CacheKey() [1/2]

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

Definition at line 38 of file cache.cpp.

38: _type(), _parameters() {}
ParameterVector _parameters
Definition cache.h:55
std::string _type
Definition cache.h:54

◆ CacheKey() [2/2]

g2o::Cache::CacheKey::CacheKey ( const std::string &  type_,
const ParameterVector parameters_ 
)

Definition at line 40 of file cache.cpp.

42 : _type(type_), _parameters(parameters_) {}

Member Function Documentation

◆ operator<()

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

Definition at line 47 of file cache.cpp.

47 {
48 if (_type < c._type)
49 return true;
50 else if (c._type < _type)
51 return false;
52 return std::lexicographical_compare(_parameters.begin(), _parameters.end(),
53 c._parameters.begin(),
54 c._parameters.end());
55}

References _parameters, and _type.

◆ parameters()

const ParameterVector & g2o::Cache::CacheKey::parameters ( ) const
inline

Definition at line 51 of file cache.h.

51{ return _parameters; }

◆ type()

const std::string & g2o::Cache::CacheKey::type ( ) const
inline

Definition at line 50 of file cache.h.

50{ return _type; }

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

Friends And Related Symbol Documentation

◆ CacheContainer

friend class CacheContainer
friend

Definition at line 44 of file cache.h.

Member Data Documentation

◆ _parameters

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

Definition at line 55 of file cache.h.

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

◆ _type

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

Definition at line 54 of file cache.h.

Referenced by operator<().


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