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_guard Class Reference

#include <typeref.h>

Inheritance diagram for ucommon::typeref_guard:
[legend]
Collaboration diagram for ucommon::typeref_guard:
[legend]

Public Member Functions

 typeref_guard ()
 
 typeref_guard (const typeref_guard &copy)
 
 typeref_guard (const TypeRef &pointer)
 
void set (const TypeRef &pointer)
 
typeref_guardoperator= (const TypeRef &pointer)
 

Private Attributes

Mutex sync
 

Friends

class TypeRef
 

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...
 
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 Protected Member Functions inherited from ucommon::TypeRef
static caddr_t mem (caddr_t address)
 Adjust memory pointer to atomic boundry. More...
 
static void put (TypeRef &target, Counted *object)
 Special weak-public means to copy a container reference. More...
 
- Protected Attributes inherited from ucommon::TypeRef
Countedref
 

Detailed Description

Definition at line 303 of file typeref.h.

Constructor & Destructor Documentation

◆ typeref_guard() [1/3]

ucommon::typeref_guard::typeref_guard ( )
inline

Definition at line 311 of file typeref.h.

◆ typeref_guard() [2/3]

ucommon::typeref_guard::typeref_guard ( const typeref_guard copy)
inline

Definition at line 313 of file typeref.h.

References ucommon::copy().

Here is the call graph for this function:

◆ typeref_guard() [3/3]

ucommon::typeref_guard::typeref_guard ( const TypeRef pointer)
inline

Definition at line 315 of file typeref.h.

Member Function Documentation

◆ operator=()

typeref_guard & ucommon::typeref_guard::operator= ( const TypeRef pointer)
inline

Definition at line 319 of file typeref.h.

◆ set()

void ucommon::typeref_guard::set ( const TypeRef pointer)

Definition at line 141 of file typeref.cpp.

References ucommon::TypeRef::set().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ TypeRef

friend class TypeRef
friend

Definition at line 306 of file typeref.h.

Member Data Documentation

◆ sync

Mutex ucommon::typeref_guard::sync
mutableprivate

Definition at line 308 of file typeref.h.

Referenced by ucommon::TypeRef::assign().


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