Public Member Functions | |
RefCounter (void *object, bool loggingAllowed, ReturnCode::Type &returnCode) | |
virtual ARRAY_LIMIT | increment (ReturnCode::Type &returnCode) |
virtual ARRAY_LIMIT | decrement (ReturnCode::Type &returnCode) |
ARRAY_LIMIT | getCount () const |
void * | getObject () const |
bool | isLoggingAllowed () const |
Protected Attributes | |
ARRAY_LIMIT | count |
void * | object |
bool | loggingAllowed |
android.speech.recognition.utilities.RefCounter.RefCounter | ( | void * | object, | |
bool | loggingAllowed, | |||
ReturnCode::Type & | returnCode | |||
) |
Creates a new RefCounter with an initial value of one.
object | the underlying object to wrap | |
loggingAllowed | true if the object and its dependencies are allowed to log | |
returnCode | SUCCESS unless a fatal error has occured |
virtual ARRAY_LIMIT android.speech.recognition.utilities.RefCounter.increment | ( | ReturnCode::Type & | returnCode | ) | [virtual] |
This function increases the reference count by one.
returnCode | SUCCESS unless a fatal error has occured |
virtual ARRAY_LIMIT android.speech.recognition.utilities.RefCounter.decrement | ( | ReturnCode::Type & | returnCode | ) | [virtual] |
This function decreases the reference count by 1.
returnCode | SUCCESS unless a fatal error has occured |
ARRAY_LIMIT android.speech.recognition.utilities.RefCounter.getCount | ( | ) | const |
Returns the number of references to the object.
void* android.speech.recognition.utilities.RefCounter.getObject | ( | ) | const |
Returns the object whose references are being monitored.
bool android.speech.recognition.utilities.RefCounter.isLoggingAllowed | ( | ) | const |
Returns true if the object and its dependencies are allowed to log.
ARRAY_LIMIT android.speech.recognition.utilities.RefCounter.count [protected] |
The number of references to the underlying object.
void* android.speech.recognition.utilities.RefCounter.object [protected] |
The underlying object.