A fixed copy of state from a StateCatalog.
More...
#include <StateCatalog.h>
|
template<class T > |
Result | getState (String a_name, T &a_rValue) const |
| Get historical state without any need for locking. More...
|
|
template<class T > |
Result | getState (String a_name, String a_property, T &a_rValue) const |
| Get historical state without any need for locking. More...
|
|
void | dump (void) const |
| Print all the values in the snapshot. More...
|
|
void | dumpUpdates (void) const |
| Print new state changes since the snapshot. More...
|
|
I32 | serial (void) const |
| Get the change count from when the snapshot was made. More...
|
|
I32 | flushCount (void) const |
|
virtual void | acquire (void) |
| Increment the reference count. More...
|
|
virtual void | acquire (int &rCount) |
| Increment the reference count (and get the count) More...
|
|
virtual void | release (void) |
| Decrement the reference count. More...
|
|
virtual void | abandon (void) |
| Decrement the reference count. More...
|
|
int | count (void) const |
| Return the count of references. More...
|
|
void | setName (const String &) |
|
void | trackReference (void *pReference, String what) |
|
void | untrackReference (void *pReference) |
|
void | registerRegion (void *pT, U32 bytes) |
|
|
I32 | m_serial |
|
I32 | m_flushCount |
|
sp< Catalog > | m_spSnapshotCatalog |
|
sp< Catalog > | m_spUpdateCatalog |
|
|
static String | reportTracker (void) |
|
static U32 | trackerCount (void) |
|
int | releaseInternal (void) |
| Decrement the reference count. More...
|
|
void | suppressReport (void) |
|
A fixed copy of state from a StateCatalog.
The state of a snapshot is frozen and can not be changed. Unlike the Atomic, a Snapshot does not lock the StateCatalog.
◆ dump()
void fe::StateCatalog::Snapshot::dump |
( |
void |
| ) |
const |
|
inline |
Print all the values in the snapshot.
◆ dumpUpdates()
void fe::StateCatalog::Snapshot::dumpUpdates |
( |
void |
| ) |
const |
|
inline |
Print new state changes since the snapshot.
◆ getState() [1/2]
template<class T >
Result fe::StateCatalog::Snapshot::getState |
( |
String |
a_name, |
|
|
T & |
a_rValue |
|
) |
| const |
|
inline |
Get historical state without any need for locking.
◆ getState() [2/2]
template<class T >
Result fe::StateCatalog::Snapshot::getState |
( |
String |
a_name, |
|
|
String |
a_property, |
|
|
T & |
a_rValue |
|
) |
| const |
|
inline |
Get historical state without any need for locking.
◆ serial()
I32 fe::StateCatalog::Snapshot::serial |
( |
void |
| ) |
const |
|
inline |
Get the change count from when the snapshot was made.
The StateCatalog keeps an serial count of how many state changes have occured. Each Snapshot taken stores this serial number, which can be used to compare to other snapshots of the same StateCatalog.
The documentation for this class was generated from the following file: