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 | |
byteref () | |
byteref (uint8_t *str, size_t size) | |
byteref (size_t size) | |
byteref (bool mode, size_t bits) | |
byteref (Counted *object) | |
void | set (const uint8_t *str, size_t size) |
size_t | hex (const char *str, bool ws=false) |
size_t | b64 (const char *str, bool ws=false) |
stringref< R > | hex () |
stringref< R > | b64 () |
![]() | |
typeref () | |
typeref (const typeref ©) | |
typeref (uint8_t *str, size_t size, TypeRelease *ar=&auto_release) | |
typeref (size_t size, TypeRelease *ar=&auto_release) | |
typeref (bool mode, size_t bits, TypeRelease *ar=&auto_release) | |
typeref (const typeref_guard &global) | |
typeref (Counted *object) | |
const uint8_t * | operator* () const |
operator const uint8_t * () const | |
typeref & | operator= (const typeref &objref) |
typeref & | operator= (value *bytes) |
bool | operator== (const typeref &ptr) const |
bool | operator== (value *bytes) const |
bool | operator!= (const typeref &ptr) const |
bool | operator!= (value *bytes) const |
const typeref | operator+ (const typeref &ptr) const |
void | set (const uint8_t *str, size_t size, TypeRelease *ar=&auto_release) |
size_t | set (bool bit, size_t offset, size_t bits=1) |
size_t | hex (const char *str, bool ws=false, TypeRelease *ar=&auto_release) |
size_t | b64 (const char *str, bool ws=false, TypeRelease *ar=&auto_release) |
uint8_t * | data (void) |
bool | get (size_t offset) |
size_t | count (size_t offset, size_t bits=1) |
void | assign (value *bytes) |
typeref< const char * > | hex () |
typeref< const char * > | b64 () |
![]() | |
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 Public Member Functions | |
static value * | create (size_t size) |
static byteref | promote (typeref< const uint8_t * > &str) |
![]() | |
static value * | create (size_t size, TypeRelease *ar=&auto_release) |
static void | destroy (value *bytes) |
![]() | |
static void | put (TypeRef &target, Counted *object) |
Special weak-public means to copy a container reference. More... | |
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... | |
![]() | |
static caddr_t | mem (caddr_t address) |
Adjust memory pointer to atomic boundry. More... | |
![]() | |
Counted * | ref |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
Definition at line 715 of file typeref.h.
References result(), and ucommon::str().
|
inline |
Definition at line 705 of file typeref.h.
References ucommon::str().
|
inlinestatic |
Definition at line 721 of file typeref.h.
References ucommon::TypeRef::size().
|
inline |
Definition at line 709 of file typeref.h.
References result(), and ucommon::str().
|
inline |
Definition at line 701 of file typeref.h.
References ucommon::str().
|
inlinestatic |
Definition at line 725 of file typeref.h.
References result(), and ucommon::str().
|
inline |
Definition at line 697 of file typeref.h.
References ucommon::typeref< T, R >::set(), ucommon::TypeRef::size(), and ucommon::str().