MCPcopy Create free account
hub / github.com/NetSys/bess / CreateTrafficClass

Method CreateTrafficClass

core/traffic_class.h:659–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657 public:
658 template <typename T, typename... TArgs>
659 static T *CreateTrafficClass(const std::string &name, TArgs... args) {
660 if (all_tcs_.count(name)) {
661 return nullptr;
662 }
663
664 T *c = new T(name, args...);
665 all_tcs_.emplace(name, c);
666 return c;
667 }
668
669 struct PriorityArgs {
670 PriorityFakeType dummy;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected