We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8dcf93 commit 7a4d222Copy full SHA for 7a4d222
1 file changed
libs/openFrameworks/types/ofParameter.h
@@ -56,6 +56,11 @@ class ofAbstractParameter{
56
return static_cast<const ofReadOnlyParameter<ParameterType, Friend> &>(*this);
57
}
58
59
+ template<typename OtherType>
60
+ bool isOfType() const {
61
+ return typeid(*this) == typeid(ofParameter<OtherType>);
62
+ }
63
+
64
ofParameterGroup & castGroup();
65
const ofParameterGroup & castGroup() const;
66
0 commit comments