Gnash  0.8.10
Classes | Public Member Functions
gnash::GetterSetter Class Reference

Holder for getter/setter functions. More...

#include <Property.h>

List of all members.

Classes

struct  Get
 Get a GetterSetter. More...
struct  GetSetVisitor
 Get or set a GetterSetter. More...
struct  GetUnderlying
 Get the underlying value of a GetterSetter. More...
struct  MarkReachable
 Mark a GetterSetter reachable. More...
class  NativeGetterSetter
 Native GetterSetter. More...
struct  Set
 Set a GetterSetter. More...
struct  SetUnderlying
 Set the underlying value of a GetterSetter. More...
class  UserDefinedGetterSetter
 User-defined getter/setter. More...

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 (const fn_call &fn)
 Invoke the setter.
void setCache (const as_value &v)
 Set the cache value (for user-defined getter-setters)
as_value getCache () const
 Get the cache value (for user-defined getter-setters)
void markReachableResources () const

Detailed Description

Holder for getter/setter functions.

Getter setter can be user-defined or native ones. This class abstracts the two.


Constructor & Destructor Documentation

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.


Member Function Documentation

as_value gnash::GetterSetter::get ( fn_call fn) const [inline]

Invoke the getter.

References gnash::key::s.

Referenced by gnash::Property::getValue().

as_value gnash::GetterSetter::getCache ( ) const [inline]

Get the cache value (for user-defined getter-setters)

void gnash::GetterSetter::markReachableResources ( ) const [inline]
void gnash::GetterSetter::set ( const fn_call fn) [inline]

Invoke the setter.

References gnash::key::s.

Referenced by gnash::Property::setValue().

void gnash::GetterSetter::setCache ( const as_value v) [inline]

Set the cache value (for user-defined getter-setters)

References gnash::key::_1.

Referenced by gnash::Property::setValue().


The documentation for this class was generated from the following file: