MCPcopy Create free account
hub / github.com/Snapchat/Valdi / bindComposite

Method bindComposite

valdi/src/valdi/runtime/Attributes/AttributesBinderHelper.cpp:277–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277void AttributesBinderHelper::bindComposite(std::string_view attribute,
278 std::vector<CompositeAttributePart>&& compositeParts,
279 AttributeHandlerDelegateWithCallable::Applier applier,
280 AttributeHandlerDelegateWithCallable::Resetter resetter) {
281 auto compositeName = StringCache::getGlobal().makeString(attribute);
282 auto compositeAttribute = Valdi::makeShared<CompositeAttribute>(
283 _attributeIds.getIdForName(compositeName), compositeName, std::move(compositeParts));
284 auto delegate = makeShared<AttributeHandlerDelegateWithCallable>(applier, resetter);
285
286 Valdi::bindCompositeAttribute(_attributeIds, _attributes, compositeAttribute, delegate, false);
287}
288
289} // namespace Valdi

Callers 1

bindMethod · 0.80

Calls 4

getGlobalFunction · 0.85
bindCompositeAttributeFunction · 0.85
makeStringMethod · 0.80
getIdForNameMethod · 0.80

Tested by

no test coverage detected