MCPcopy Create free account
hub / github.com/apache/mesos / operator()

Method operator()

src/common/protobuf_utils.cpp:710–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708 struct Injector
709 {
710 void operator()(
711 Resource& resource, const Resource::AllocationInfo& allocationInfo)
712 {
713 if (!resource.has_allocation_info()) {
714 resource.mutable_allocation_info()->CopyFrom(allocationInfo);
715 }
716 }
717
718 void operator()(
719 RepeatedPtrField<Resource>* resources,

Callers

nothing calls this directly

Calls 2

CopyFromMethod · 0.80
foreachFunction · 0.70

Tested by

no test coverage detected