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..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Loading...
Searching...
No Matches
ucommon::typeref< const char * > Class Reference

#include <typeref.h>

Inheritance diagram for ucommon::typeref< const char * >:
[legend]
Collaboration diagram for ucommon::typeref< const char * >:
[legend]

Classes

class  value
 

Public Member Functions

 typeref ()
 
 typeref (const typeref &copy)
 
 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
 
typerefoperator= (const typeref &objref)
 
typerefoperator= (const char *str)
 
typerefoperator= (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)
 
- Public Member Functions inherited from ucommon::TypeRef
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 Public Member Functions inherited from ucommon::TypeRef
static void put (TypeRef &target, Counted *object)
 Special weak-public means to copy a container reference. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ucommon::TypeRef
 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 Protected Member Functions inherited from ucommon::TypeRef
static caddr_t mem (caddr_t address)
 Adjust memory pointer to atomic boundry. More...
 
- Protected Attributes inherited from ucommon::TypeRef
Countedref
 

Detailed Description

Definition at line 437 of file typeref.h.

Constructor & Destructor Documentation

◆ typeref() [1/7]

ucommon::typeref< const char * >::typeref ( )

◆ typeref() [2/7]

ucommon::typeref< const char * >::typeref ( const typeref< const char * > &  copy)

◆ typeref() [3/7]

ucommon::typeref< const char * >::typeref ( const char *  str,
TypeRelease ar = &auto_release 
)

◆ typeref() [4/7]

ucommon::typeref< const char * >::typeref ( size_t  size,
TypeRelease ar = &auto_release 
)

◆ typeref() [5/7]

ucommon::typeref< const char * >::typeref ( const typeref_guard global)
inline

Definition at line 480 of file typeref.h.

References ucommon::TypeRef::assign().

Here is the call graph for this function:

◆ typeref() [6/7]

ucommon::typeref< const char * >::typeref ( Counted object)
inlineexplicit

Definition at line 484 of file typeref.h.

◆ typeref() [7/7]

ucommon::typeref< const char * >::typeref ( value *  value)
inlineexplicit

Definition at line 486 of file typeref.h.

Member Function Documentation

◆ assign()

void ucommon::typeref< const char * >::assign ( value *  chars)

◆ b64()

void ucommon::typeref< const char * >::b64 ( const uint8_t *  mem,
size_t  size,
TypeRelease ar = &auto_release 
)

◆ create()

static value * ucommon::typeref< const char * >::create ( size_t  size,
TypeRelease ar = &auto_release 
)
static

◆ destroy()

static void ucommon::typeref< const char * >::destroy ( value *  bytes)
static

◆ expand()

static void ucommon::typeref< const char * >::expand ( value **  handle,
size_t  size 
)
static

Referenced by ucommon::fsys::prefix().

◆ hex()

void ucommon::typeref< const char * >::hex ( const uint8_t *  mem,
size_t  size,
TypeRelease ar = &auto_release 
)

◆ len()

size_t ucommon::typeref< const char * >::len ( ) const

◆ operator const char *()

ucommon::typeref< const char * >::operator const char * ( ) const
inline

Definition at line 490 of file typeref.h.

◆ operator!=() [1/3]

bool ucommon::typeref< const char * >::operator!= ( const char *  obj) const
inline

Definition at line 510 of file typeref.h.

◆ operator!=() [2/3]

bool ucommon::typeref< const char * >::operator!= ( const typeref< const char * > &  ptr) const
inline

Definition at line 502 of file typeref.h.

◆ operator!=() [3/3]

bool ucommon::typeref< const char * >::operator!= ( value *  chars) const
inline

Definition at line 506 of file typeref.h.

◆ operator()()

const char * ucommon::typeref< const char * >::operator() ( ssize_t  offset) const

◆ operator*()

const char * ucommon::typeref< const char * >::operator* ( ) const

◆ operator+() [1/2]

const typeref ucommon::typeref< const char * >::operator+ ( const char *  str) const

◆ operator+() [2/2]

const typeref ucommon::typeref< const char * >::operator+ ( const typeref< const char * > &  ptr) const

◆ operator<()

bool ucommon::typeref< const char * >::operator< ( const typeref< const char * > &  ptr) const

Definition at line 359 of file typeref.cpp.

References ucommon::TypeRef::ref.

◆ operator<=()

bool ucommon::typeref< const char * >::operator<= ( const typeref< const char * > &  ptr) const
inline

Definition at line 520 of file typeref.h.

◆ operator=() [1/3]

typeref & ucommon::typeref< const char * >::operator= ( const char *  str)

◆ operator=() [2/3]

typeref & ucommon::typeref< const char * >::operator= ( const typeref< const char * > &  objref)

◆ operator=() [3/3]

typeref & ucommon::typeref< const char * >::operator= ( value *  chars)

◆ operator==() [1/3]

bool ucommon::typeref< const char * >::operator== ( const char *  obj) const

◆ operator==() [2/3]

bool ucommon::typeref< const char * >::operator== ( const typeref< const char * > &  ptr) const

◆ operator==() [3/3]

bool ucommon::typeref< const char * >::operator== ( value *  chars) const

◆ operator>()

bool ucommon::typeref< const char * >::operator> ( const typeref< const char * > &  ptr) const
inline

Definition at line 516 of file typeref.h.

◆ operator>=()

bool ucommon::typeref< const char * >::operator>= ( const typeref< const char * > &  ptr) const
inline

Definition at line 524 of file typeref.h.

◆ set()

void ucommon::typeref< const char * >::set ( const char *  str,
TypeRelease ar = &auto_release 
)

The documentation for this class was generated from the following files: