The OpenD Programming Language

mir.rc.ptr

Thread-safe reference-counted shared pointers

.

This implementation supports class and struct (alias this) polymorphism.

Members

Aliases

RCPtr
alias RCPtr = mir_rcptr

Functions

castTo
mir_rcptr!(const R) castTo(mir_rcptr!T context)
mir_rcptr!(immutable R) castTo(mir_rcptr!T context)

Construct a shared pointer of a required type with a current context. Provides polymorphism abilities for classes and structures with alias this syntax.

castTo
mir_rcptr!R castTo(mir_rcptr!T context)

Construct a shared pointer of a required type with a current context. Provides polymorphism abilities for classes and structures with alias this syntax.

createRCWithContext
createRCWithContext(R value, mir_rcptr!F context)
shareMember
auto shareMember(mir_rcptr!T context, Args args)

Structs

mir_rcptr
struct mir_rcptr(T)

Thread safe reference counting array.

Templates

createRC
template createRC(T)

Meta