SheafSystem
0.0.0.0
|
A queue for record read requests. More...
#include <record_queue.h>
RECORD_QUEUE FACET | |
record_queue () | |
Default constructor. More... | |
record_queue (const record_queue &xother) | |
Copy constructor. More... | |
virtual | ~record_queue () |
Destructor. More... | |
void | enqueue (pod_index_type xindex) |
Inserts xindex at the end of the record queue. More... | |
pod_index_type | dequeue () |
Removes and returns the index at the front of the record queue. More... | |
int | ct () const |
The number of requests in the record queue. More... | |
bool | is_empty () const |
True if the record queue is empty. More... | |
void | clear () |
Makes the record queue empty. More... | |
ANY FACET | |
virtual record_queue * | clone () const |
Virtual constructor; makes a new instance of the same type as this. More... | |
virtual bool | invariant () const |
Class invariant. More... | |
virtual bool | is_ancestor_of (const any *other) const |
Conformance test; true if other conforms to this. More... | |
Additional Inherited Members | |
Public Member Functions inherited from sheaf::any | |
bool | is_same_type (const any *other) const |
True if other is the same type as this. More... | |
virtual | ~any () |
Destructor. More... | |
bool | invariant_check () const |
True if invariant checking is enabled. More... | |
void | enable_invariant_check () const |
Enable invariant checking. More... | |
void | disable_invariant_check () const |
Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing invariant checking during multi-phase initialization. More... | |
int | disable_invariance_check_request_depth () const |
Number of times disable_invariant_check has been called without matching call to enable_invariant_check. More... | |
Protected Member Functions inherited from sheaf::any | |
any () | |
default constructor More... | |
A queue for record read requests.
Definition at line 50 of file record_queue.h.
sheaf::record_queue::record_queue | ( | ) |
Default constructor.
Definition at line 32 of file record_queue.cc.
References invariant(), and is_empty().
Referenced by clone().
sheaf::record_queue::record_queue | ( | const record_queue & | xother | ) |
Copy constructor.
Not Implemented.
Definition at line 49 of file record_queue.cc.
References invariant(), and ~record_queue().
|
virtual |
Destructor.
Definition at line 63 of file record_queue.cc.
References enqueue().
Referenced by record_queue().
void sheaf::record_queue::clear | ( | ) |
Makes the record queue empty.
Definition at line 142 of file record_queue.cc.
References clone(), dequeue(), and is_empty().
Referenced by is_empty().
|
virtual |
Virtual constructor; makes a new instance of the same type as this.
Reimplemented from sheaf::any.
Definition at line 173 of file record_queue.cc.
References invariant(), sheaf::any::is_same_type(), and record_queue().
Referenced by clear().
int sheaf::record_queue::ct | ( | ) | const |
The number of requests in the record queue.
Definition at line 128 of file record_queue.cc.
References is_empty().
sheaf::pod_index_type sheaf::record_queue::dequeue | ( | ) |
Removes and returns the index at the front of the record queue.
Definition at line 105 of file record_queue.cc.
References ct(), and is_empty().
Referenced by clear(), enqueue(), sheaf::dof_tuple_record_set::externalize(), and sheaf::dof_tuple_record_set::read_records().
void sheaf::record_queue::enqueue | ( | pod_index_type | xindex | ) |
Inserts xindex at the end of the record queue.
Definition at line 80 of file record_queue.cc.
References ct(), dequeue(), and is_empty().
Referenced by sheaf::member_record::externalize(), sheaf::member_record::internalize(), and ~record_queue().
|
virtual |
Class invariant.
Reimplemented from sheaf::any.
Definition at line 195 of file record_queue.cc.
References sheaf::any::disable_invariant_check(), sheaf::any::enable_invariant_check(), sheaf::any::invariant(), sheaf::any::invariant_check(), and is_ancestor_of().
Referenced by clone(), and record_queue().
|
virtual |
Conformance test; true if other conforms to this.
Reimplemented from sheaf::any.
Definition at line 227 of file record_queue.cc.
Referenced by invariant().
bool sheaf::record_queue::is_empty | ( | ) | const |
True if the record queue is empty.
Definition at line 135 of file record_queue.cc.
References clear().
Referenced by clear(), ct(), dequeue(), enqueue(), sheaf::dof_tuple_record_set::externalize(), sheaf::dof_tuple_record_set::read_records(), and record_queue().