mf
Media Framework
|
Nullable wrapper for elem type which adds mask. More...
#include <masked_elem.h>
Public Member Functions | |
bool | is_null () const |
operator bool () const | |
masked_elem () | |
masked_elem (const Elem &el) | |
masked_elem (const masked_elem &)=default | |
masked_elem & | operator= (const masked_elem &)=default |
masked_elem & | operator= (const Elem &el) |
operator const Elem & () const | |
operator Elem & () | |
Static Public Member Functions | |
static masked_elem | null () |
Public Attributes | |
Elem | elem |
Non-nullable element. More... | |
bool | mask |
Mask, false if masked_elem is null. More... | |
Friends | |
bool | operator== (const masked_elem &a, const masked_elem &b) |
bool | operator!= (const masked_elem &a, const masked_elem &b) |
Nullable wrapper for elem type which adds mask.
POD type, where the elem is always at same memory address as the masked_elem
object. A one byte mask is added behind the element. Depending in alignmment requirement of Elem
, sizeof(masked_elem<Elem>)
can become larger than sizeof(Elem) + 1
.
|
inline |
|
inline |
|
default |
|
inline |
|
inlinestatic |
|
inlineexplicit |
|
inline |
|
inline |
|
default |
|
inline |
|
friend |
|
friend |
Elem mf::masked_elem< Elem, typename >::elem |
Non-nullable element.
bool mf::masked_elem< Elem, typename >::mask |
Mask, false if masked_elem is null.