CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace utils {
36 const std::string&
name()
const {
45 template<
typename TNamedObjects>
46 std::vector<std::string>
ExtractNames(
const TNamedObjects& namedObjects) {
47 std::vector<std::string> names;
48 names.reserve(namedObjects.size());
49 for (
const auto& pObject : namedObjects)
50 names.push_back(pObject->name());
56 inline std::string
ReduceNames(
const std::vector<std::string>& names) {
58 std::string result =
"{";
59 for (
const auto& name : names) {
std::vector< std::string > ExtractNames(const TNamedObjects &namedObjects)
Extracts all names from namedObjects.
Definition: NamedObject.h:46
std::string m_name
Definition: NamedObject.h:41
NamedObjectMixin(const std::string &name)
Creates a mixin with name.
Definition: NamedObject.h:31
Mixin to have named objects.
Definition: NamedObject.h:28
std::string ReduceNames(const std::vector< std::string > &names)
Reduces names into a single string.
Definition: NamedObject.h:56
const std::string & name() const
Returns the name.
Definition: NamedObject.h:36
Definition: AddressExtractionExtension.cpp:28