UCommon
typeref.h File Reference

A thread-safe atomic heap management system. More...

#include <ucommon/cpr.h>
#include <ucommon/atomic.h>
#include <ucommon/protocols.h>
#include <ucommon/generics.h>
#include <ucommon/object.h>
#include <ucommon/thread.h>
Include dependency graph for typeref.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  ucommon::TypeRef
 Smart pointer base class for auto-retained objects. More...
 
class  ucommon::TypeRef::Counted
 Heap base-class container for typeref objects. More...
 

Namespaces

namespace  ucommon
 Common namespace for all ucommon objects.
 

Typedefs

typedef typeref< Type::Bools > ucommon::boolref_t
 
typedef const uint8_t * ucommon::Type::Bools
 
typedef typeref< Type::Bytes > ucommon::byteref_t
 
typedef const uint8_t * ucommon::Type::Bytes
 
typedef typeref< Type::Bytes >::value * ucommon::bytevalues_t
 
typedef const char * ucommon::Type::Chars
 
typedef typeref< Type::Chars >::value * ucommon::charvalues_t
 
typedef int32_t ucommon::Type::Integer
 
typedef double ucommon::Type::Real
 
typedef typeref< Type::Chars > ucommon::stringref_t
 

Functions

template<typename T >
typeref< T > ucommon::typeref_cast (T x)
 

Variables

TypeRelease ucommon::auto_release
 
TypeRelease ucommon::release_later
 
TypeRelease ucommon::secure_release
 

Detailed Description

A thread-safe atomic heap management system.

This is used to manage immutable heap instances of object types that are reference counted and automatically deleted when no longer used. All references to the object are through smart typeref pointers. Both specific classes for strings and byte arrays, and generic templates to support generic types in the heap are offered.

Definition in file typeref.h.

Typedef Documentation

◆ Bools

typedef const uint8_t* ucommon::Type::Bools

Definition at line 738 of file typeref.h.

◆ Bytes

typedef const uint8_t* ucommon::Type::Bytes

Definition at line 737 of file typeref.h.

◆ Chars

typedef const char* ucommon::Type::Chars

Definition at line 736 of file typeref.h.

◆ Integer

typedef int32_t ucommon::Type::Integer

Definition at line 734 of file typeref.h.

◆ Real

typedef double ucommon::Type::Real

Definition at line 735 of file typeref.h.