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 (const char *str, TypeRelease *ar=&auto_release) | |
typeref (size_t size, TypeRelease *ar=&auto_release) | |
typeref (const typeref_guard &global) | |
typeref (Counted *object) | |
typeref (value *value) | |
const char * | operator* () const |
operator const char * () const | |
size_t | len () const |
bool | operator== (const typeref &ptr) const |
bool | operator== (const char *obj) const |
bool | operator== (value *chars) const |
bool | operator!= (const typeref &ptr) const |
bool | operator!= (value *chars) const |
bool | operator!= (const char *obj) const |
bool | operator< (const typeref &ptr) const |
bool | operator> (const typeref &ptr) const |
bool | operator<= (const typeref &ptr) const |
bool | operator>= (const typeref &ptr) const |
typeref & | operator= (const typeref &objref) |
typeref & | operator= (const char *str) |
typeref & | operator= (value *chars) |
const typeref | operator+ (const char *str) const |
const typeref | operator+ (const typeref &ptr) const |
const char * | operator() (ssize_t offset) const |
void | set (const char *str, TypeRelease *ar=&auto_release) |
void | hex (const uint8_t *mem, size_t size, TypeRelease *ar=&auto_release) |
void | b64 (const uint8_t *mem, size_t size, TypeRelease *ar=&auto_release) |
void | assign (value *chars) |
![]() | |
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 void | expand (value **handle, size_t size) |
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 char * >::typeref | ( | ) |
ucommon::typeref< const char * >::typeref | ( | const typeref< const char * > & | copy | ) |
ucommon::typeref< const char * >::typeref | ( | const char * | str, |
TypeRelease * | ar = &auto_release |
||
) |
ucommon::typeref< const char * >::typeref | ( | size_t | size, |
TypeRelease * | ar = &auto_release |
||
) |
|
inline |
Definition at line 480 of file typeref.h.
References ucommon::TypeRef::assign().
|
inlineexplicit |
|
inlineexplicit |
void ucommon::typeref< const char * >::assign | ( | value * | chars | ) |
void ucommon::typeref< const char * >::b64 | ( | const uint8_t * | mem, |
size_t | size, | ||
TypeRelease * | ar = &auto_release |
||
) |
Referenced by ucommon::Cipher::Key::b64().
|
static |
|
static |
|
static |
Referenced by ucommon::fsys::prefix().
void ucommon::typeref< const char * >::hex | ( | const uint8_t * | mem, |
size_t | size, | ||
TypeRelease * | ar = &auto_release |
||
) |
size_t ucommon::typeref< const char * >::len | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
const char * ucommon::typeref< const char * >::operator() | ( | ssize_t | offset | ) | const |
const char * ucommon::typeref< const char * >::operator* | ( | ) | const |
const typeref ucommon::typeref< const char * >::operator+ | ( | const char * | str | ) | const |
const typeref ucommon::typeref< const char * >::operator+ | ( | const typeref< const char * > & | ptr | ) | const |
bool ucommon::typeref< const char * >::operator< | ( | const typeref< const char * > & | ptr | ) | const |
Definition at line 359 of file typeref.cpp.
References ucommon::TypeRef::ref.
|
inline |
typeref & ucommon::typeref< const char * >::operator= | ( | const char * | str | ) |
typeref & ucommon::typeref< const char * >::operator= | ( | const typeref< const char * > & | objref | ) |
typeref & ucommon::typeref< const char * >::operator= | ( | value * | chars | ) |
bool ucommon::typeref< const char * >::operator== | ( | const char * | obj | ) | const |
bool ucommon::typeref< const char * >::operator== | ( | const typeref< const char * > & | ptr | ) | const |
bool ucommon::typeref< const char * >::operator== | ( | value * | chars | ) | const |
|
inline |
|
inline |
void ucommon::typeref< const char * >::set | ( | const char * | str, |
TypeRelease * | ar = &auto_release |
||
) |