commit | 21eb7211b363add590f8213138b33e160715c631 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Thu Sep 26 09:05:40 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Thu Sep 26 09:05:40 2013 -0700 |
tree | 087727e65e5caa408c93feebfeae3746c3c58af0 | |
parent | 3e5acfb1d8b5850822abecb2208a8d23f101c7bb [diff] [blame] |
Name: Added append method which takes a Component.
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp index 32e001f..256bd59 100644 --- a/ndn-cpp/name.hpp +++ b/ndn-cpp/name.hpp
@@ -207,6 +207,13 @@ return *this; } + Name& + append(const Component &value) + { + components_.push_back(value); + return *this; + } + /** * Append the components of the given name to this name. * @param name The Name with components to append.