WPILibC++  trunk
Public Member Functions | List of all members
StringCache Class Referenceabstract

#include <StringCache.h>

Inheritance diagram for StringCache:
Inheritance graph
[legend]

Public Member Functions

 StringCache ()
 
std::string & Get (const std::string &input)
 
virtual std::string Calc (const std::string &input)=0
 

Detailed Description

A simple cache that allows for caching the mapping of one string to another calculated one

Author
Mitchell

Definition at line 15 of file StringCache.h.

Constructor & Destructor Documentation

StringCache::StringCache ( )
Parameters
input
Returns
the value for a given input

Definition at line 13 of file StringCache.cpp.

Member Function Documentation

virtual std::string StringCache::Calc ( const std::string &  input)
pure virtual

Will only be called if a value has not already been calculated

Parameters
input
Returns
the calculated value for a given input

Implemented in NetworkTableKeyCache.


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