20 #include "SheafSystem/read_write_monitor_handle.h" 21 #include "SheafSystem/assert_contract.h" 22 #include "SheafSystem/poset_state.h" 23 #include "SheafSystem/read_write_monitor.h" 28 #include "SheafSystem/poset_state_handle.h" 457 int lindex = lpsh->
index();
504 int lindex = lpsh->
index();
548 int lindex = lpsh->
index();
poset_state_handle * host() const
The poset which this is a handle to a component of.
bool state_is_auto_read_write_accessible(bool xauto_access) const
True if state is auto accessible for read and write, that is, if the state is already accessible for ...
bool state_is_not_read_only_accessible() const
True if this is attached and the state is not accessible for read only access.
const scoped_index & index() const
The member index of this poset within the namespace host()
bool state_is_read_accessible() const
True if this is attached and if the state is accessible for read or access control is disabled...
bool is_not_read_only_accessible() const
True if this thread does not have read-only access.
bool state_is_auto_read_accessible(bool xauto_access) const
True if the state is auto accessible for read, that is, if the state is already accessible for read o...
static void enable_access_control()
Enables access control. Synonym for read_write_monitor::enable_access_control(). Should only be invok...
A handle for a hidden read_write_monitor state.
A client handle for a general, abstract partially order set.
virtual void get_read_access() const
Get read access to the state associated with this.
void get_read_access() const
Get read access to the state associated with this.
virtual read_write_monitor_handle * clone() const
Make a new, unattached handle of the same type as this.
void clear_is_modified()
Makes is_modified() false.
bool state_is_not_read_write_accessible() const
True if state is attached and if not accessible for read and write or access control is disabled...
bool is_read_write_accessible() const
True if this thread has read-write access or if access control is not enabled.
virtual bool is_ancestor_of(const any *xother) const
True if other conforms to current.
void get_read_write_access(bool xrelease_read_only_access=false)
Get read write access to the state associated with this. If release_read_only_access is requested...
virtual read_write_monitor * state_obj() const =0
State object for this handle.
Abstract base class with useful features for all objects.
void clear_state_is_modified()
Sets the state_is_modified floag to false.
virtual void release_access(bool xall=false) const
Release access. If xall is true, release all levels of access. Otherwise, release one level of access...
bool is_mode_locked() const
bool state_is_read_write_accessible() const
True if this is attached and if the state is accessible for read and write or access control is disab...
int access_request_depth() const
Number of times access has been granted without a corresponding release.
void get_mode_lock() const
Obsolete.
void release_access(bool xall=false) const
Release access. If xall is true, release all levels of access. Otherwise, release one level of access...
bool state_is_mode_locked() const
Obsolete.
bool state_is_modified() const
True if write access has been granted and released since the last call to clear_state_is_modified().
bool is_read_only_accessible() const
True if this thread has read-only access.
virtual void get_read_write_access(bool xrelease_read_only_access=false)
Get read write access to the state associated with this. If release_read_only_access is requested...
virtual bool is_attached() const
True if this handle has a state associated with it.
bool is_not_read_accessible() const
True if this thread has neither read-only or read-write access or if access control is disabled...
static bool access_control_disabled()
True if access control mechanism is disabled. Default value is enabled (false) and access is controll...
int access_request_depth() const
The number of times access has been requested and granted without being released. ...
bool is_not_read_write_accessible() const
True if this thread does not have read-write access or if access control is not enabled.
static bool access_control_disabled()
True if access control mechanism is disabled. Default value is enabled (false) and access is controll...
void release_mode_lock()
Obsolete.
bool is_modified() const
True if any client has had read-write access to this object since the last call to clear_is_modified(...
An abstract client handle for a member of a poset.
bool is_read_accessible() const
True if this thread has read-only or read-write access.
virtual ~read_write_monitor_handle()
Descturctor.
static void enable_access_control()
Enables access control. Should only be invoked once at beginning of a program, before any other Sheaf...
bool state_is_not_read_accessible() const
True if this is attached and if the state is accessible for read or if access control is disabled...
bool state_is_read_only_accessible() const
True if this is attached and the state is accessible for read access but not for write.
int mode_lock_ct() const
Obsolete.