|
| ofReadOnlyParameter () |
|
| ofReadOnlyParameter (const ParameterType &v) |
|
| ofReadOnlyParameter (const std::string &name, const ParameterType &v) |
|
| ofReadOnlyParameter (const std::string &name, const ParameterType &v, const ParameterType &min, const ParameterType &max) |
|
const ParameterType & | get () const |
|
const ParameterType * | operator-> () const |
|
| operator const ParameterType & () const |
|
std::string | getName () const |
|
ParameterType | getMin () const |
|
ParameterType | getMax () const |
|
std::string | toString () const |
|
template<class ListenerClass , typename ListenerMethod > |
void | addListener (ListenerClass *listener, ListenerMethod method, int prio=OF_EVENT_ORDER_AFTER_APP) |
|
template<class ListenerClass , typename ListenerMethod > |
void | removeListener (ListenerClass *listener, ListenerMethod method, int prio=OF_EVENT_ORDER_AFTER_APP) |
|
std::shared_ptr< ofAbstractParameter > | newReference () const |
|
template<typename... Args> |
std::unique_ptr< of::priv::AbstractEventToken > | newListener (Args...args) |
|
bool | isSerializable () const |
|
bool | isReadOnly () const |
|
std::string | valueType () const |
|
virtual | ~ofAbstractParameter () |
|
virtual std::string | type () const |
|
virtual std::string | getEscapedName () const |
|
std::vector< std::string > | getGroupHierarchyNames () const |
|
template<typename ParameterType > |
ofParameter< ParameterType > & | cast () |
|
template<typename ParameterType > |
const ofParameter< ParameterType > & | cast () const |
|
template<typename ParameterType , typename Friend > |
ofReadOnlyParameter< ParameterType, Friend > & | castReadOnly () |
|
template<typename ParameterType , typename Friend > |
const ofReadOnlyParameter< ParameterType, Friend > & | castReadOnly () const |
|
ofParameterGroup & | castGroup () |
|
const ofParameterGroup & | castGroup () const |
|
virtual bool | isReferenceTo (const ofAbstractParameter &other) const |
|
|
void | setName (const std::string &name) |
|
void | enableEvents () |
|
void | disableEvents () |
|
void | setSerializable (bool s) |
|
template<typename OtherFriend > |
void | makeReferenceTo (ofReadOnlyParameter< ParameterType, OtherFriend > mom) |
|
void | makeReferenceTo (ofParameter< ParameterType > mom) |
|
ofReadOnlyParameter< ParameterType, Friend > & | operator= (const ofReadOnlyParameter< ParameterType, Friend > &v) |
|
ofReadOnlyParameter< ParameterType, Friend > & | operator= (const ofParameter< ParameterType > &v) |
|
const ParameterType & | operator= (const ParameterType &v) |
|
ParameterType | operator++ (int v) |
|
ofReadOnlyParameter< ParameterType, Friend > & | operator++ () |
|
ParameterType | operator-- (int v) |
|
ofReadOnlyParameter< ParameterType, Friend > & | operator-- () |
|
template<typename OtherType > |
ofReadOnlyParameter< ParameterType, Friend > & | operator+= (const OtherType &v) |
|
template<typename OtherType > |
ofReadOnlyParameter< ParameterType, Friend > & | operator-= (const OtherType &v) |
|
template<typename OtherType > |
ofReadOnlyParameter< ParameterType, Friend > & | operator*= (const OtherType &v) |
|
template<typename OtherType > |
ofReadOnlyParameter< ParameterType, Friend > & | operator/= (const OtherType &v) |
|
template<typename OtherType > |
ofReadOnlyParameter< ParameterType, Friend > & | operator%= (const OtherType &v) |
|
template<typename OtherType > |
ofReadOnlyParameter< ParameterType, Friend > & | operator&= (const OtherType &v) |
|
template<typename OtherType > |
ofReadOnlyParameter< ParameterType, Friend > & | operator|= (const OtherType &v) |
|
template<typename OtherType > |
ofReadOnlyParameter< ParameterType, Friend > & | operator^= (const OtherType &v) |
|
template<typename OtherType > |
ofReadOnlyParameter< ParameterType, Friend > & | operator<<= (const OtherType &v) |
|
template<typename OtherType > |
ofReadOnlyParameter< ParameterType, Friend > & | operator>>= (const OtherType &v) |
|
ofReadOnlyParameter< ParameterType, Friend > & | set (const ParameterType &v) |
|
ofReadOnlyParameter< ParameterType, Friend > & | set (const std::string &name, const ParameterType &value) |
|
ofReadOnlyParameter< ParameterType, Friend > & | set (const std::string &name, const ParameterType &value, const ParameterType &min, const ParameterType &max) |
|
void | setMin (const ParameterType &min) |
|
void | setMax (const ParameterType &max) |
|
void | setInit (const ParameterType &init) |
|
void | fromString (const std::string &str) |
|
void | setParent (ofParameterGroup &_parent) |
|
const ofParameterGroup | getFirstParent () const |
|
const void * | getInternalObject () const |
|
virtual std::string | escape (const std::string &str) const |
|
template<typename ParameterType, typename
Friend>
class ofReadOnlyParameter< ParameterType, Friend >
ofReadOnlyParameter holds a value and notifies its listeners when it changes.
ofReadOnlyParameter is a "read only" version of ofPareameter
. "Friend" classes specified in the template arguments allow other classes write-access to the internal data. Otherwise, all other access is "read only".
- See also
- ofParameter
- Template Parameters
-
ParameterType | The data wrapped by the ofParameter. |
Friend | The type of the "friend" class with write access. |