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 | |
size_t | max () |
uint8_t * | get () |
operator uint8_t * () | |
![]() | |
bool | is () const |
Is this object not empty? More... | |
unsigned | copies () const |
Number of retains (smart pointers) referencing us. More... | |
TypeRelease * | getRelease () const |
void | operator delete (void *address) |
Override delete to de-allocate actual heap. More... | |
void | retain () |
Retain a copy of this object. More... | |
void | release () |
Release a copy of this object. More... | |
Protected Member Functions | |
value (caddr_t addr, size_t size, const uint8_t *data=nullptr, TypeRelease *ar=&auto_release) | |
void | destroy (void) |
![]() | |
Counted (void *address, size_t size, TypeRelease *ar=NULL) | |
Construction of aligned container. More... | |
virtual void | dealloc (void) |
Release memory and delete object when no longer referenced. More... | |
Protected Attributes | |
uint8_t | mem [1] |
![]() | |
union { | |
TypeRelease * autorelease | |
Counted * linkrelease | |
}; | |
Atomic::counter | count |
unsigned | offset |
size_t | size |
Private Member Functions | |
__DELETE_COPY (value) | |
Friends | |
class | typeref |
|
protected |
|
private |
|
protected |
|
inline |
|
inline |
|
inline |
|
protected |