A non-pinned counting pointer to a ByteBlock.
Definition at line 176 of file byte_block.hpp.
|
| ByteBlockPtr ()=default |
| default ctor: returns an empty ByteBlockPtr More...
|
|
| CountingPtr () noexcept |
| default constructor: contains a nullptr pointer. More...
|
|
| CountingPtr (std::nullptr_t) noexcept |
| implicit conversion from nullptr_t: contains a nullptr pointer. More...
|
|
| CountingPtr (Type *ptr) noexcept |
| constructor from pointer: initializes new reference to ptr. More...
|
|
| CountingPtr (const CountingPtr &other) noexcept |
| copy-constructor: also initializes new reference to ptr. More...
|
|
template<typename Subclass , typename = typename std::enable_if< std::is_convertible<Subclass*, Type*>::value, void>::type> |
| CountingPtr (const CountingPtr< Subclass, Deleter > &other) noexcept |
| copy-constructor: also initializes new reference to ptr. More...
|
|
| CountingPtr (CountingPtr &&other) noexcept |
| move-constructor: just moves pointer, does not change reference counts. More...
|
|
template<typename Subclass , typename = typename std::enable_if< std::is_convertible<Subclass*, Type*>::value, void>::type> |
| CountingPtr (CountingPtr< Subclass, Deleter > &&other) noexcept |
| move-constructor: just moves pointer, does not change reference counts. More...
|
|
CountingPtr & | operator= (const CountingPtr &other) noexcept |
|
template<typename Subclass , typename = typename std::enable_if< std::is_convertible<Subclass*, Type*>::value, void>::type> |
CountingPtr & | operator= (const CountingPtr< Subclass, Deleter > &other) noexcept |
|
CountingPtr & | operator= (CountingPtr &&other) noexcept |
| move-assignment operator: move reference of other to current object. More...
|
|
template<typename Subclass , typename = typename std::enable_if< std::is_convertible<Subclass*, Type*>::value, void>::type> |
CountingPtr & | operator= (CountingPtr< Subclass, Deleter > &&other) noexcept |
| move-assignment operator: move reference of other to current object. More...
|
|
| ~CountingPtr () |
| destructor: decrements reference count in ptr. More...
|
|
Type & | operator* () const noexcept |
| return the enclosed object as reference. More...
|
|
Type * | operator-> () const noexcept |
| return the enclosed pointer. More...
|
|
Type * | get () const noexcept |
| return the enclosed pointer. More...
|
|
bool | valid () const noexcept |
| test for a non-nullptr pointer More...
|
|
| operator bool () const noexcept |
| cast to bool checks for a nullptr pointer More...
|
|
bool | empty () const noexcept |
| test for a nullptr pointer More...
|
|
bool | unique () const noexcept |
| if the object is referred by this CountingPtr only More...
|
|
size_t | use_count () const noexcept |
|
void | reset () |
| release contained pointer, frees object if this is the last reference. More...
|
|
void | swap (CountingPtr &b) noexcept |
|
void | unify () |
| make and refer a copy if the original object was shared. More...
|
|
bool | operator== (const CountingPtr &other) const noexcept |
| test equality of only the pointer values. More...
|
|
bool | operator!= (const CountingPtr &other) const noexcept |
| test inequality of only the pointer values. More...
|
|
bool | operator== (Type *other) const noexcept |
| test equality of only the address pointed to More...
|
|
bool | operator!= (Type *other) const noexcept |
| test inequality of only the address pointed to More...
|
|
bool | operator< (const CountingPtr &other) const noexcept |
| compare the pointer values. More...
|
|
bool | operator<= (const CountingPtr &other) const noexcept |
| compare the pointer values. More...
|
|
bool | operator> (const CountingPtr &other) const noexcept |
| compare the pointer values. More...
|
|
bool | operator>= (const CountingPtr &other) const noexcept |
| compare the pointer values. More...
|
|
bool | operator< (Type *other) const noexcept |
| compare the pointer values. More...
|
|
bool | operator<= (Type *other) const noexcept |
| compare the pointer values. More...
|
|
bool | operator> (Type *other) const noexcept |
| compare the pointer values. More...
|
|
bool | operator>= (Type *other) const noexcept |
| compare the pointer values. More...
|
|