Heaven v0.1.0-1
C++ global-menu library for Wayland sessions
Loading...
Searching...
No Matches
Public Member Functions
HNWithChildren Class Reference

Mixin interface for client objects that can host child objects. More...

#include "HNWithChildren.h"

Inheritance diagram for HNWithChildren:
Inheritance graph
[legend]

Public Member Functions

virtual ~HNWithChildren () noexcept
 Destructor. Detaches every child from this object.
 
const std::list< HNWithParent * > & children () const noexcept
 Returns the ordered list of child objects.
 

Detailed Description

Mixin interface for client objects that can host child objects.

Constructor & Destructor Documentation

◆ ~HNWithChildren()

virtual ~HNWithChildren ( )
virtualnoexcept

Destructor. Detaches every child from this object.

Declared virtual so the mixin is polymorphic, enabling safe cross-casts (via dynamic_cast) between the base subobjects of a concrete object.

Member Function Documentation

◆ children()

const std::list< HNWithParent * > & children ( ) const
inlinenoexcept

Returns the ordered list of child objects.

Returns
Const reference to the children list, in insertion order.

The documentation for this class was generated from the following file: