|
|
| InterfacePtr (Intercube &IC) |
| | Construct from Intercube.
|
| |
|
| InterfacePtr (Intercube *IC) |
| | Construct from Intercube pointer.
|
| |
|
StrongPtr & | assignStrong (const DynPtr_t &other) |
| | assign a strong pointer from a weak pointer
|
| |
|
StrongPtr & | assignStrong (const ReferenceBase< ObjectBase_t > *Obj) |
| | assign a strong pointer from a native pointer
|
| |
|
StrongPtr & | assignStrong (const std::nullptr_t &) |
| | Assign nullptr to a strong pointer, which will remove the referenced object if its counter reaches zero, but the pointer will remain a valid weak pointer with sustained hash value (the referer will still be around).
|
| |
|
template<typename... Arguments> |
| auto | operator() (Arguments...parameters) const -> decltype((*this->getPtrValue())(parameters...)) |
| | Function call operator forwarding.
|
| |
|
refvalue_t & | operator* () const |
| | The dereferencing *-operator.
|
| |
|
pointer_t | operator-> () const |
| | The pointer operator.
|
| |
|
StrongPtr & | operator= (const DynPtr_t &other) |
| | Assignment operator, same as assignStrong()
|
| |
| StrongPtr & | operator= (const ReferenceBase< ObjectBase_t > *Obj) |
| | Assignment from object base class pointer.
|
| |
| StrongPtr & | operator= (const std::initializer_list< StrongPtr > &other) |
| | Syntactic sugar: Allows assignment with {} to create a nullptr.
|
| |
|
StrongPtr & | operator= (const std::nullptr_t &) |
| | Assignment operator with nullptr, invalidate.
|
| |
|
StrongPtr & | operator= (const StrongPtr &other) |
| | Assignment operator, same as assignStrong()
|
| |
|
template<class IndexType > |
| auto | operator[] (const IndexType &I) const -> decltype((*this->getPtrValue())[I]) |
| | Index operator forwarding.
|
| |
|
| StrongPtr () |
| | Default constructor (makes a NULL pointer)
|
| |
|
| StrongPtr (const ReferenceBase< ObjectBase_t > *Obj) |
| | Strong pointer from reference base of object, eg. via new operator.
|
| |
|
| StrongPtr (const ReferenceBase< ObjectBase_t > *Obj, const NotNullPtr &) |
| | Strong pointer from reference base of object, eg. via new operator.
|
| |
|
| StrongPtr (const std::nullptr_t &) |
| | Explicitely construct a nullptr pointer.
|
| |
|
template<class ChildObject > |
| | StrongPtr (const StrongPtr< ChildObject, ObjectBase > &Other) |
| | Reference pointer with dynamic type identification.
|
| |
|
| StrongPtr (const StrongPtr< Object, ObjectBase > &Other) |
| | Copy constructor.
|
| |
|
template<class ChildObject > |
| | StrongPtr (const WeakPtr< ChildObject, ObjectBase_t > &Other) |
| | Reference pointer with dynamic type identification.
|
| |
|
| ~StrongPtr () |
| | Destructor, the last one cleans up and destructs the object itself.
|
| |
|
pointer_t | getPtrValue () const |
| | The pointer value, checked for null.
|
| |
|
pointer_t | operator-> () const |
| | The pointer operator.
|
| |
|
refvalue_t & | operator* () const |
| | The dereferencing *-operator.
|
| |
|
size_t | operator~ () const |
| | Convenience operator to easily retrieve the object count ID of the referenced object, a unique number for each instance.
|
| |
|
| WeakPtr () |
| | Default constructor, makes a NULL pointer.
|
| |
|
| WeakPtr (const std::nullptr_t &) |
| | Explicitely construct NULL pointer.
|
| |
|
| WeakPtr (const ReferenceBase< ObjectBase > *Obj) |
| | Weak pointer from reference base of object.
|
| |
|
| WeakPtr (const ReferenceBase< ObjectBase > *Obj, const NotNullPtr &) |
| | Weak pointer from reference base of object which must not be null.
|
| |
| template<class AnyObject > |
| | WeakPtr (const WeakPtr< AnyObject, ObjectBase > &Other) |
| | Weak pointer from pointer to another class.
|
| |
|
| WeakPtr (const WeakPtr &Other) |
| | Copy constructor.
|
| |
| | ~WeakPtr () |
| | Default destructor, removes weak references to the object, the last one cleans up the referrer proxy object.
|
| |
|
WeakPtr & | assignWeak (const WeakPtr &other) |
| | Assign a weak pointer (explicit function call, same as assignment operator for weak pointers)
|
| |
|
WeakPtr & | operator= (const WeakPtr &other) |
| | Assignment operator (same as assignWeak() )
|
| |
|
const DynPtr & | getDynPtr () const noexcept |
| | Convenience type cast to dynamic pointer class.
|
| |
|
const type_info & | getType () const noexcept |
| | Return type info of associated object, typeid(NullPtr) or typeid(void) if none.
|
| |
| bool | isAssignable (const DynPtr< ObjectBase, ObjectBase > &Other) const noexcept |
| | Check whether a given pointer to a base class may be assigned to a pointer of the derived class.
|
| |
| | operator void * () const noexcept |
| | Check if the pointer is valid.
|
| |
| bool | operator! () const noexcept |
| | Check if the pointer is invalid.
|
| |
|
void | speak (const char *s, const char *prefix="") const noexcept |
| | Print some debug messages to the console.
|
| |