Holder for getter/setter functions. More...
#include <Property.h>
Public Member Functions | |
| GetterSetter (as_function *getter, as_function *setter) | |
| Construct a user-defined getter-setter. | |
| GetterSetter (as_c_function_ptr getter, as_c_function_ptr setter) | |
| Construct a native getter-setter. | |
| as_value | get (fn_call &fn) const |
| Invoke the getter. | |
| void | set (fn_call &fn) |
| Invoke the setter. | |
| void | setCache (const as_value &v) |
| Set the cache value (for user-defined getter-setters). | |
| const as_value & | getCache () const |
| Get the cache value (for user-defined getter-setters). | |
| void | markReachableResources () const |
Holder for getter/setter functions.
Getter setter can be user-defined or native ones. This class abstracts the two.
| gnash::GetterSetter::GetterSetter | ( | as_function * | getter, | |
| as_function * | setter | |||
| ) | [inline] |
Construct a user-defined getter-setter.
| gnash::GetterSetter::GetterSetter | ( | as_c_function_ptr | getter, | |
| as_c_function_ptr | setter | |||
| ) | [inline] |
Construct a native getter-setter.
| const as_value& gnash::GetterSetter::getCache | ( | ) | const [inline] |
Get the cache value (for user-defined getter-setters).
| void gnash::GetterSetter::markReachableResources | ( | ) | const [inline] |
Referenced by gnash::Property::setReachable().
| void gnash::GetterSetter::set | ( | fn_call & | fn | ) | [inline] |
Invoke the setter.
| void gnash::GetterSetter::setCache | ( | const as_value & | v | ) | [inline] |
Set the cache value (for user-defined getter-setters).
1.7.1