22 #ifndef NLSR_FACE_MAP_HPP 23 #define NLSR_FACE_MAP_HPP 72 std::string m_faceUri;
89 update(
const std::string& faceUri, uint32_t faceId)
92 std::map<std::string, FaceMapEntry>::iterator it = m_table.find(faceUri);
93 if (it == m_table.end()) {
94 m_table.emplace(faceUri, fme);
105 std::map<std::string, FaceMapEntry>::iterator it = m_table.find(faceUri);
106 if (it != m_table.end()) {
107 return (it->second).getFaceId();
116 std::map<std::string, FaceMapEntry> m_table;
121 #endif // NLSR_FACE_MAP_HPP
FaceMapEntry(const std::string &faceUri, uint32_t faceId)
bool compare(const FaceMapEntry &fme)
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California.
void setFaceUri(const std::string &faceUri)
const std::string & getFaceUri() const
void setFaceId(uint32_t faceId)
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
uint32_t getFaceId() const
void update(const std::string &faceUri, uint32_t faceId)
uint32_t getFaceId(const std::string &faceUri)