MCPcopy Create free account
hub / github.com/Kitware/VTK / GetAttributeOrDefault

Method GetAttributeOrDefault

Common/DataModel/vtkDataAssembly.cxx:1062–1068  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1060
1061//------------------------------------------------------------------------------
1062const char* vtkDataAssembly::GetAttributeOrDefault(
1063 int id, const char* name, const char* default_value) const
1064{
1065 const auto& internals = (*this->Internals);
1066 const auto node = internals.FindNode(id);
1067 return node.attribute(name).as_string(default_value);
1068}
1069
1070//------------------------------------------------------------------------------
1071int vtkDataAssembly::GetAttributeOrDefault(int id, const char* name, int default_value) const

Callers 11

VisitMethod · 0.80
VisitMethod · 0.80
VisitMethod · 0.80
VisitMethod · 0.80
VisitMethod · 0.80
TestMultiBlockDataSetFunction · 0.80

Calls 6

FindNodeMethod · 0.80
as_stringMethod · 0.80
attributeMethod · 0.80
as_intMethod · 0.80
as_uintMethod · 0.80
as_llongMethod · 0.80

Tested by 2

TestMultiBlockDataSetFunction · 0.64