MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / hasPropertyType

Method hasPropertyType

extern/happly/happly.h:810–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808 */
809 template <class T>
810 bool hasPropertyType(const std::string& target) {
811 for (std::unique_ptr<Property>& prop : properties) {
812 if (prop->name == target) {
813 TypedProperty<T>* castedProp = dynamic_cast<TypedProperty<T>*>(prop.get());
814 if (castedProp) {
815 return true;
816 }
817 return false;
818 }
819 }
820 return false;
821 }
822
823 /**
824 * @brief A list of the names of all properties

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected