Klang C++ 0.7.15
Language Reference (draft)
Loading...
Searching...
No Matches
klang::ControlEntry

Construction-time entry: temporary controls are owned; mutable lvalues are borrowed. More...

#include <klang.h>

Public Types

enum  Kind { Owned , Reference , Collection }
 

Public Member Functions

 ControlEntry (Control &&control)
 
 ControlEntry (const Control &control)
 
 ControlEntry (Control &control)
 
 ControlEntry (Controls &controls)
 
 ControlEntry (Controls &&)=delete
 

Public Attributes

enum klang::ControlEntry::Kind kind = Owned
 
Control owned {}
 
Control * reference = nullptr
 
Controls * collection = nullptr
 

Detailed Description

Definition at line 2022 of file klang.h.

Member Enumeration Documentation

◆ Kind

Values
Owned 
Reference 
Collection 

Definition at line 2023 of file klang.h.

@ Owned
Definition klang.h:2023
@ Reference
Definition klang.h:2023
@ Collection
Definition klang.h:2023
enum klang::ControlEntry::Kind kind

Constructor & Destructor Documentation

◆ ControlEntry() [1/5]

klang::ControlEntry::ControlEntry ( Control && control)
inline

Definition at line 2028 of file klang.h.

2028: owned(std::move(control)) {}
Control owned
Definition klang.h:2024

◆ ControlEntry() [2/5]

klang::ControlEntry::ControlEntry ( const Control & control)
inline

Definition at line 2029 of file klang.h.

2029: owned(control) {}

◆ ControlEntry() [3/5]

klang::ControlEntry::ControlEntry ( Control & control)
inline

Definition at line 2030 of file klang.h.

2030: kind(Reference), reference(&control) {}
Control * reference
Definition klang.h:2025

◆ ControlEntry() [4/5]

klang::ControlEntry::ControlEntry ( Controls & controls)
inline

Definition at line 2031 of file klang.h.

2031: kind(Collection), collection(&controls) {}
Controls * collection
Definition klang.h:2026

◆ ControlEntry() [5/5]

klang::ControlEntry::ControlEntry ( Controls && )
delete

Member Data Documentation

◆ collection

Controls* klang::ControlEntry::collection = nullptr

Definition at line 2026 of file klang.h.

◆ kind

enum klang::ControlEntry::Kind klang::ControlEntry::kind = Owned

◆ owned

Control klang::ControlEntry::owned {}

Definition at line 2024 of file klang.h.

2024{};

◆ reference

Control* klang::ControlEntry::reference = nullptr

Definition at line 2025 of file klang.h.