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 uint8_t * > Class Reference

#include <typeref.h>

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

Classes

class  value
 

Public Member Functions

 typeref ()
 
 typeref (const typeref &copy)
 
 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
 
typerefoperator= (const typeref &objref)
 
typerefoperator= (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 ()
 
- 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 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 556 of file typeref.h.

Constructor & Destructor Documentation

◆ typeref() [1/7]

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

◆ typeref() [2/7]

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

◆ typeref() [3/7]

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

◆ typeref() [4/7]

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

◆ typeref() [5/7]

ucommon::typeref< const uint8_t * >::typeref ( bool  mode,
size_t  bits,
TypeRelease ar = &auto_release 
)

◆ typeref() [6/7]

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

Definition at line 597 of file typeref.h.

References ucommon::TypeRef::assign().

Here is the call graph for this function:

◆ typeref() [7/7]

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

Definition at line 601 of file typeref.h.

Member Function Documentation

◆ assign()

void ucommon::typeref< const uint8_t * >::assign ( value *  bytes)

◆ b64() [1/2]

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

◆ b64() [2/2]

size_t ucommon::typeref< const uint8_t * >::b64 ( const char *  str,
bool  ws = false,
TypeRelease ar = &auto_release 
)

◆ count()

size_t ucommon::typeref< const uint8_t * >::count ( size_t  offset,
size_t  bits = 1 
)

◆ create()

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

◆ data()

uint8_t * ucommon::typeref< const uint8_t * >::data ( void  )

◆ destroy()

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

◆ get()

bool ucommon::typeref< const uint8_t * >::get ( size_t  offset)

◆ hex() [1/2]

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

◆ hex() [2/2]

size_t ucommon::typeref< const uint8_t * >::hex ( const char *  str,
bool  ws = false,
TypeRelease ar = &auto_release 
)

◆ operator const uint8_t *()

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

Definition at line 605 of file typeref.h.

◆ operator!=() [1/2]

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

Definition at line 617 of file typeref.h.

◆ operator!=() [2/2]

bool ucommon::typeref< const uint8_t * >::operator!= ( value *  bytes) const
inline

Definition at line 621 of file typeref.h.

◆ operator*()

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

◆ operator+()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

typeref & ucommon::typeref< const uint8_t * >::operator= ( value *  bytes)

◆ operator==() [1/2]

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

◆ operator==() [2/2]

bool ucommon::typeref< const uint8_t * >::operator== ( value *  bytes) const

◆ set() [1/2]

size_t ucommon::typeref< const uint8_t * >::set ( bool  bit,
size_t  offset,
size_t  bits = 1 
)

◆ set() [2/2]

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

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