16#include <unordered_map>
17#include <unordered_set>
41 const std::string &
GetId()
const {
60 bool MatchTags(
const std::string &wildcard_pattern)
const;
62 std::vector<std::string>
GetTags()
const {
86 void SetAttribute(
const std::string &
id, std::string value);
118 std::unordered_set<std::string>
_tags;
An attribute of an ActorBlueprint.
Contains all the necessary information for spawning an Actor.
rpc::ActorDescription MakeActorDescription() const
std::unordered_map< std::string, ActorAttribute > _attributes
const ActorAttribute & GetAttribute(const std::string &id) const
std::unordered_set< std::string > _tags
bool ContainsTag(const std::string &tag) const
ActorBlueprint(rpc::ActorDefinition actor_definition)
const std::string & GetId() const
bool ContainsAttribute(const std::string &id) const
bool MatchTags(const std::string &wildcard_pattern) const
Test if any of the flags matches wildcard_pattern.
void SetAttribute(const std::string &id, std::string value)
Set the value of the attribute given by id.
std::vector< std::string > GetTags() const
static auto make_map_values_const_iterator(It it)
Creates an iterator over const references to the values of a map.
This file contains definitions of common data structures used in traffic manager.