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

Method empty

valdi/src/valdi/runtime/Attributes/ViewNodeAttribute.cpp:308–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308bool ViewNodeAttribute::empty() const {
309 if (_hasSingleAttribute) {
310 return false;
311 } else if (_hasAttributeCollection) {
312 return getAttributeValueCollection().values.empty();
313 } else {
314 return true;
315 }
316}
317
318bool ViewNodeAttribute::requiresView() const {
319 return _handlerNeedsView;

Callers 15

_InternalSerializeMethod · 0.45
ByteSizeLongMethod · 0.45
MergeFromMethod · 0.45
loadSyncMethod · 0.45
TEST_PFunction · 0.45
TEST_PMethod · 0.45
TESTMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 15

loadSyncMethod · 0.36
TEST_PFunction · 0.36
TEST_PMethod · 0.36
TESTMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36