|
pianod2
multisource multiuser scriptable networked music player
|
Smart containers to help manage reference counting the MusicThingies. More...
#include <retainer.h>
Public Member Functions | |
| Retainer () | |
| Default constructor. More... | |
| Retainer (value_type *item) | |
| Direct construction of new item via pointer. More... | |
| Retainer (const this_type &item) | |
| Copy constructor. More... | |
| template<typename OtherType > | |
| Retainer (const Retainer< OtherType > &item) | |
| Copy construct from a different retained type. More... | |
| Retainer (this_type &&item) | |
| Move construction. More... | |
| template<typename OtherType > | |
| Retainer (Retainer< OtherType > &&item) | |
| Move construction from a different retained type. More... | |
| this_type & | operator= (value_type *item) |
| Direct assignment of new pointer. More... | |
| value_type & | operator= (const this_type &item) |
| Copy assignment from another retainer of same type. More... | |
| template<typename OtherType > | |
| this_type & | operator= (const Retainer< OtherType > &item) |
| Copy assignment from a retainer of a different type. More... | |
| this_type & | operator= (this_type &&item) |
| Move assignment from another retainer of same type. More... | |
| template<typename OtherType > | |
| this_type & | operator= (Retainer< OtherType > &&item) |
| Move assignment from another retainer of a different type. More... | |
| ~Retainer () | |
| On destruction, release any contained pointer. More... | |
| value_type * | operator-> () const |
| Allow arrow use of contained pointer. More... | |
| value_type & | operator* () const |
| Dereference contained pointer via operator *. More... | |
| value_type * | get () const |
| Get the pointer itself. More... | |
| operator bool () const | |
| Check for null. More... | |
Private Types | |
| using | value_type = typename std::remove_pointer< ptr_type >::type |
| using | this_type = Retainer< ptr_type > |
Private Attributes | |
| value_type * | value {nullptr} |
Smart containers to help manage reference counting the MusicThingies.
|
private |
|
inline |
Direct construction of new item via pointer.
Copy constructor.
|
inline |
Copy construct from a different retained type.
Move construction.
|
inline |
Move construction from a different retained type.
On destruction, release any contained pointer.
|
inline |
Get the pointer itself.

|
inline |
Check for null.
|
inline |
Dereference contained pointer via operator *.
|
inline |
Allow arrow use of contained pointer.
|
inline |
Copy assignment from a retainer of a different type.
|
inline |
Copy assignment from another retainer of same type.
|
inline |
Move assignment from another retainer of a different type.
Move assignment from another retainer of same type.
|
inline |
Direct assignment of new pointer.
|
private |