Flags defining the level of protection of a member. More...
#include <PropFlags.h>
Public Types | |
| enum | Flags { dontEnum = 1 << 0, dontDelete = 1 << 1, readOnly = 1 << 2, onlySWF6Up = 1 << 7, ignoreSWF6 = 1 << 8, onlySWF7Up = 1 << 10, onlySWF8Up = 1 << 12, onlySWF9Up = 1 << 13 } |
if true, this value is protected (internal to gnash) More... | |
Public Member Functions | |
| PropFlags () | |
| Default constructor. | |
| PropFlags (const bool read_only, const bool dont_delete, const bool dont_enum) | |
| Constructor. | |
| PropFlags (const int flags) | |
| Constructor, from numerical value. | |
| bool | operator== (const PropFlags &o) const |
| bool | operator!= (const PropFlags &o) const |
| bool | get_read_only () const |
| Get "read-only" flag. | |
| void | set_read_only () |
| Set "read-only" flag. | |
| void | clear_read_only () |
| Clear "read-only" flag. | |
| bool | get_dont_delete () const |
| Get "don't delete" flag. | |
| void | set_dont_delete () |
| Set "don't delete" flag. | |
| void | clear_dont_delete () |
| Clear "don't delete" flag. | |
| bool | get_dont_enum () const |
| Get "don't enum" flag. | |
| void | set_dont_enum () |
| Set "don't enum" flag. | |
| void | clear_dont_enum () |
| Clear "don't enum" flag. | |
| bool | get_visible (int swfVersion) const |
| Get version-based visibility. | |
| void | clear_visible (int swfVersion) |
| int | get_flags () const |
| accesor to the numerical flags value | |
| bool | set_flags (const int setTrue, const int setFalse=0) |
Flags defining the level of protection of a member.
if true, this value is protected (internal to gnash)
Actual flags
| dontEnum |
Protect from enumeration. |
| dontDelete |
Protect from deletion. |
| readOnly |
Protect from assigning a value. |
| onlySWF6Up |
Only visible by VM initialized for version 6 or higher. |
| ignoreSWF6 |
Ignore in SWF6-initialized VM. |
| onlySWF7Up |
Only visible by VM initialized for version 7 or higher. |
| onlySWF8Up |
Only visible by VM initialized for version 8 or higher. |
| onlySWF9Up |
Only visible by VM initialized for version 9 or higher. |
| gnash::PropFlags::PropFlags | ( | ) | [inline] |
Default constructor.
| gnash::PropFlags::PropFlags | ( | const bool | read_only, | |
| const bool | dont_delete, | |||
| const bool | dont_enum | |||
| ) | [inline] |
Constructor.
| gnash::PropFlags::PropFlags | ( | const int | flags | ) | [inline] |
Constructor, from numerical value.
| void gnash::PropFlags::clear_dont_delete | ( | ) | [inline] |
Clear "don't delete" flag.
Referenced by main().
| void gnash::PropFlags::clear_dont_enum | ( | ) | [inline] |
Clear "don't enum" flag.
Referenced by main().
| void gnash::PropFlags::clear_read_only | ( | ) | [inline] |
Clear "read-only" flag.
Referenced by main().
| void gnash::PropFlags::clear_visible | ( | int | swfVersion | ) | [inline] |
References ignoreSWF6, onlySWF6Up, onlySWF7Up, and onlySWF8Up.
Referenced by gnash::Property::clearVisible().
| bool gnash::PropFlags::get_dont_delete | ( | ) | const [inline] |
| bool gnash::PropFlags::get_dont_enum | ( | ) | const [inline] |
Get "don't enum" flag.
References dontEnum.
Referenced by main(), gnash::IsEnumerable::operator()(), and gnash::operator<<().
| int gnash::PropFlags::get_flags | ( | ) | const [inline] |
accesor to the numerical flags value
Referenced by main().
| bool gnash::PropFlags::get_read_only | ( | ) | const [inline] |
Get "read-only" flag.
References readOnly.
Referenced by main(), gnash::operator<<(), and gnash::readOnly().
| bool gnash::PropFlags::get_visible | ( | int | swfVersion | ) | const [inline] |
Get version-based visibility.
References ignoreSWF6, onlySWF6Up, onlySWF7Up, onlySWF8Up, and onlySWF9Up.
Referenced by gnash::visible().
| bool gnash::PropFlags::operator!= | ( | const PropFlags & | o | ) | const [inline] |
| bool gnash::PropFlags::operator== | ( | const PropFlags & | o | ) | const [inline] |
| void gnash::PropFlags::set_dont_delete | ( | ) | [inline] |
Set "don't delete" flag.
Referenced by main().
| void gnash::PropFlags::set_dont_enum | ( | ) | [inline] |
Set "don't enum" flag.
Referenced by main().
| bool gnash::PropFlags::set_flags | ( | const int | setTrue, | |
| const int | setFalse = 0 | |||
| ) | [inline] |
set the numerical flags value (return the new value ) If unlocked is false, you cannot un-protect from over-write, you cannot un-protect from deletion and you cannot un-hide from the for..in loop construct
| setTrue | the set of flags to set | |
| setFalse | the set of flags to clear |
Referenced by gnash::PropertyList::setFlags(), and gnash::PropertyList::setFlagsAll().
| void gnash::PropFlags::set_read_only | ( | ) | [inline] |
Set "read-only" flag.
Referenced by main().
1.7.1