ucommon
7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
![]() ![]() |
#include <typeref.h>
Public Member Functions | |
typeref_guard () | |
typeref_guard (const typeref_guard ©) | |
typeref_guard (const TypeRef &pointer) | |
void | set (const TypeRef &pointer) |
typeref_guard & | operator= (const TypeRef &pointer) |
Private Attributes | |
Mutex | sync |
Friends | |
class | TypeRef |
Additional Inherited Members | |
![]() | |
TypeRef (Counted *object) | |
Create a smart pointer referencing an existing heap object. More... | |
TypeRef (const TypeRef &pointer) | |
Create a smart pointer based on another pointer. More... | |
TypeRef () | |
Create a smart pointer referencing nothing. More... | |
void | set (Counted *object) |
Set our smart pointer to a specific heap container. More... | |
void | assign (const typeref_guard &ref) |
Assign from a guarded typeref. More... | |
virtual | ~TypeRef () |
Destroy pointer when falling out of scope. More... | |
void | set (const TypeRef &pointer) |
Set our smart pointer based on another pointer instance. More... | |
void | clear (void) |
Manually release the current container. More... | |
size_t | size (void) const |
Get size of referenced heap object. More... | |
unsigned | copies () const |
Get number of references to container. More... | |
operator bool () const | |
Check if pointer currently has a heap container. More... | |
bool | operator! () const |
Check if we are currently not pointing to anything. More... | |
bool | is_released (void) |
![]() | |
static caddr_t | mem (caddr_t address) |
Adjust memory pointer to atomic boundry. More... | |
static void | put (TypeRef &target, Counted *object) |
Special weak-public means to copy a container reference. More... | |
![]() | |
Counted * | ref |
|
inline |
Definition at line 313 of file typeref.h.
References ucommon::copy().
|
inline |
|
inline |
void ucommon::typeref_guard::set | ( | const TypeRef & | pointer | ) |
Definition at line 141 of file typeref.cpp.
References ucommon::TypeRef::set().
|
mutableprivate |
Definition at line 308 of file typeref.h.
Referenced by ucommon::TypeRef::assign().