#include <TestDataModule.h>
Inheritance diagram for Anp::StorekNNData:

Public Member Functions | |
| StorekNNData () | |
| virtual | ~StorekNNData () |
| bool | Add (const std::string &key, float data) |
| bool | Get (const std::string &key, float &data) |
Private Attributes | |
| std::map< std::string, float > | fData |
|
|
Definition at line 33 of file TestDataModule.cxx. 00034 {
00035 }
|
|
|
Definition at line 38 of file TestDataModule.cxx. 00039 {
00040 }
|
|
||||||||||||
|
Definition at line 43 of file TestDataModule.cxx. References fData. 00044 {
00045 return fData.insert(map<string, float>::value_type(key, data)).second;
00046 }
|
|
||||||||||||
|
Definition at line 49 of file TestDataModule.cxx. References fData. 00050 {
00051 map<string, float>::const_iterator fit = fData.find(key);
00052 if(fit != fData.end())
00053 {
00054 data = fit -> second;
00055 return true;
00056 }
00057
00058 return false;
00059 }
|
|
|
Definition at line 35 of file TestDataModule.h. |
1.3.9.1