A templated helper class managing a child slot within an EBML master element.
More...
|
| | childSlot_t (ebmlMasterElement *parent, const childTypeSpec_t &, ebml::ptr< T > &childslot, bool allownull=true) |
| |
| childSlot_t< T > & | operator= (const ebml::ptr< T > &item) |
| |
| childSlot_t< T > & | operator= (ebml::ptr< T > &&item) |
| |
| template<typename U > |
| std::enable_if_t< std::is_base_of< ebmlElement, T >::value &&std::is_base_of< T, U >::value &&!std::is_same< T, U >::value, childSlot_t< T > & > | operator= (const ebml::ptr< U > &item) |
| |
| template<typename U > |
| std::enable_if_t< std::is_base_of< ebmlElement, T >::value &&std::is_base_of< T, U >::value &&!std::is_same< T, U >::value, childSlot_t< T > & > | operator= (ebml::ptr< U > &&item) |
| |
| bool | operator== (const std::nullptr_t &) |
| |
| bool | operator== (const ebml::ptr< T > &item) |
| |
| bool | operator== (const ebml::ptr< const T > &item) |
| |
| template<typename U > |
| std::enable_if_t< std::is_base_of< ebmlElement, T >::value &&std::is_base_of< T, U >::value &&!std::is_same< T, U >::value, bool & > | operator== (const ebml::ptr< U > &item) |
| |
| bool | operator== (const childSlot_t< T > &item) |
| |
| | operator ebml::ptr< T > () const |
| |
| T * | operator-> () const |
| |
| const ebml::ptr< T > & | get () const |
| |
| | operator T & () const |
| |
| template<typename U > |
| U & | as () const |
| |
template<typename T = ebmlElement>
class ebml::childSlot_t< T >
A templated helper class managing a child slot within an EBML master element.
This class provides methods to assign, compare, and access a child element using smart pointers. It ensures that the child being attached is valid according to the parent's type specification and updates parent pointers.
- Template Parameters
-
| T | The type of the EBML element stored in the slot. Defaults to ebmlElement. |