commit | 0560eec4721ca53c0ed1a250a5c7e4e11d4ee1dd | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Mon Jul 16 15:44:31 2012 -0700 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Mon Jul 16 15:44:31 2012 -0700 |
tree | d5193c18e6716ce0890d6f9117712d5dbe2a58bf | |
parent | 0845c09947e496fa7a892b8c900e74d9a41582dd [diff] [blame] |
Stats tree seems to work properly, including pruning of "empty" leaves
diff --git a/model/ccnx-name-components.cc b/model/ccnx-name-components.cc index a79b6bb..a0a12da 100644 --- a/model/ccnx-name-components.cc +++ b/model/ccnx-name-components.cc
@@ -50,6 +50,13 @@ is >> *this; } +CcnxNameComponents::CcnxNameComponents (const char *prefix) +{ + NS_ASSERT (prefix != 0); + + istringstream is (prefix); + is >> *this; +} const std::list<std::string> & CcnxNameComponents::GetComponents () const