Small progress

This commit is contained in:
Alexander Afanasyev
2012-03-02 11:34:22 -08:00
parent df718f5861
commit cf9d65b78c
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -48,6 +48,7 @@ CcnxNameInfo::CcnxNameInfo (Ptr<const CcnxNameComponents> name)
: m_name (name)
{
m_id = m_ids ++; // set ID for a newly inserted element
m_digest << *name;
}
string
+3 -2
View File
@@ -54,8 +54,8 @@ public:
/**
* @brief Calculates digest of the name
*/
// Digest
// getDigest () const;
const Digest &
getDigest () const { return m_digest; }
/**
* @brief Convert prefix to string
@@ -67,6 +67,7 @@ public:
protected:
// actual stuff
size_t m_id; ///< @brief Identifies NameInfo throughout the library (for hash container, doesn't need to be strictly unique)
Digest m_digest;
// static stuff
typedef std::map<std::string, const_ptr> NameMap;