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>
Classes | |
class | value |
Public Member Functions | |
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, 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 |
ucommon::typeref< const uint8_t * >::typeref | ( | ) |
ucommon::typeref< const uint8_t * >::typeref | ( | const typeref< const uint8_t * > & | copy | ) |
ucommon::typeref< const uint8_t * >::typeref | ( | uint8_t * | str, |
size_t | size, | ||
TypeRelease * | ar = &auto_release |
||
) |
ucommon::typeref< const uint8_t * >::typeref | ( | size_t | size, |
TypeRelease * | ar = &auto_release |
||
) |
ucommon::typeref< const uint8_t * >::typeref | ( | bool | mode, |
size_t | bits, | ||
TypeRelease * | ar = &auto_release |
||
) |
|
inline |
Definition at line 597 of file typeref.h.
References ucommon::TypeRef::assign().
|
inlineexplicit |
void ucommon::typeref< const uint8_t * >::assign | ( | value * | bytes | ) |
typeref< const char * > ucommon::typeref< const uint8_t * >::b64 | ( | ) |
size_t ucommon::typeref< const uint8_t * >::b64 | ( | const char * | str, |
bool | ws = false , |
||
TypeRelease * | ar = &auto_release |
||
) |
size_t ucommon::typeref< const uint8_t * >::count | ( | size_t | offset, |
size_t | bits = 1 |
||
) |
|
static |
uint8_t * ucommon::typeref< const uint8_t * >::data | ( | void | ) |
|
static |
bool ucommon::typeref< const uint8_t * >::get | ( | size_t | offset | ) |
typeref< const char * > ucommon::typeref< const uint8_t * >::hex | ( | ) |
size_t ucommon::typeref< const uint8_t * >::hex | ( | const char * | str, |
bool | ws = false , |
||
TypeRelease * | ar = &auto_release |
||
) |
|
inline |
|
inline |
|
inline |
const uint8_t * ucommon::typeref< const uint8_t * >::operator* | ( | ) | const |
const typeref ucommon::typeref< const uint8_t * >::operator+ | ( | const typeref< const uint8_t * > & | ptr | ) | const |
typeref & ucommon::typeref< const uint8_t * >::operator= | ( | const typeref< const uint8_t * > & | objref | ) |
typeref & ucommon::typeref< const uint8_t * >::operator= | ( | value * | bytes | ) |
bool ucommon::typeref< const uint8_t * >::operator== | ( | const typeref< const uint8_t * > & | ptr | ) | const |
bool ucommon::typeref< const uint8_t * >::operator== | ( | value * | bytes | ) | const |
size_t ucommon::typeref< const uint8_t * >::set | ( | bool | bit, |
size_t | offset, | ||
size_t | bits = 1 |
||
) |
void ucommon::typeref< const uint8_t * >::set | ( | const uint8_t * | str, |
size_t | size, | ||
TypeRelease * | ar = &auto_release |
||
) |