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 | |
stringref () | |
stringref (const stringref ©) | |
stringref (const char *str) | |
stringref (size_t size) | |
stringref (Counted *object) | |
void | set (const char *str) |
![]() | |
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 value * | create (size_t size) |
static stringref | promote (typeref< const char * > &str) |
![]() | |
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inlinestatic |
Definition at line 673 of file typeref.h.
References ucommon::TypeRef::size().
Referenced by ucommon::fsys::prefix(), and ucommon::Socket::readline().
|
inlinestatic |
Definition at line 677 of file typeref.h.
References result(), and ucommon::str().
|
inline |
Definition at line 669 of file typeref.h.
References ucommon::typeref< T, R >::set(), and ucommon::str().