playrho::d2::DynamicTree::VariantData Union Reference

Variant data. More...

#include <DynamicTree.hpp>

Public Member Functions

 VariantData () noexcept=default
 Default constructor. More...
 
PLAYRHO_CONSTEXPR VariantData (UnusedData value) noexcept
 Initializing constructor. More...
 
PLAYRHO_CONSTEXPR VariantData (LeafData value) noexcept
 Initializing constructor. More...
 
PLAYRHO_CONSTEXPR VariantData (BranchData value) noexcept
 Initializing constructor. More...
 

Public Attributes

UnusedData unused
 Unused/free-list specific data. More...
 
LeafData leaf
 Leaf specific data. More...
 
BranchData branch
 Branch specific data. More...
 

Detailed Description

Variant data.

Note
A union is used intentionally to save space.

Definition at line 347 of file DynamicTree.hpp.

Constructor & Destructor Documentation

◆ VariantData() [1/4]

playrho::d2::DynamicTree::VariantData::VariantData ( )
defaultnoexcept

Default constructor.

◆ VariantData() [2/4]

PLAYRHO_CONSTEXPR playrho::d2::DynamicTree::VariantData::VariantData ( UnusedData  value)
inlinenoexcept

Initializing constructor.

Definition at line 362 of file DynamicTree.hpp.

◆ VariantData() [3/4]

PLAYRHO_CONSTEXPR playrho::d2::DynamicTree::VariantData::VariantData ( LeafData  value)
inlinenoexcept

Initializing constructor.

Definition at line 365 of file DynamicTree.hpp.

◆ VariantData() [4/4]

PLAYRHO_CONSTEXPR playrho::d2::DynamicTree::VariantData::VariantData ( BranchData  value)
inlinenoexcept

Initializing constructor.

Definition at line 368 of file DynamicTree.hpp.

Member Data Documentation

◆ unused

UnusedData playrho::d2::DynamicTree::VariantData::unused

Unused/free-list specific data.

Definition at line 350 of file DynamicTree.hpp.

◆ leaf

LeafData playrho::d2::DynamicTree::VariantData::leaf

Leaf specific data.

Definition at line 353 of file DynamicTree.hpp.

◆ branch

BranchData playrho::d2::DynamicTree::VariantData::branch

Branch specific data.

Definition at line 356 of file DynamicTree.hpp.


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