LibreOffice Module editeng (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
std::optional< OutlinerParaObject > Class Reference

Specialise std::optional template for the case where we are wrapping a o3tl::cow_wrapper type, and we can make the pointer inside the cow_wrapper act as an empty value, and save ourselves some storage. More...

#include <outlobj.hxx>

Collaboration diagram for std::optional< OutlinerParaObject >:
[legend]

Public Member Functions

 optional () noexcept
 
 optional (std::nullopt_t) noexcept
 
 optional (const optional &other)
 
 optional (optional &&other) noexcept
 
 optional (OutlinerParaObject &&para) noexcept
 
 optional (const OutlinerParaObject &para) noexcept
 
template<class... Args>
 optional (std::in_place_t, Args &&... args)
 
optionaloperator= (optional const &other)
 
optionaloperator= (optional &&other) noexcept
 
template<class... Args>
void emplace (Args &&... args)
 
bool has_value () const noexcept
 
 operator bool () const noexcept
 
void reset ()
 
OutlinerParaObjectvalue ()
 
OutlinerParaObjectoperator* ()
 
const OutlinerParaObjectoperator* () const
 
OutlinerParaObjectoperator-> ()
 
const OutlinerParaObjectoperator-> () const
 

Private Member Functions

void throwIfEmpty () const
 

Private Attributes

OutlinerParaObject maParaObject
 

Detailed Description

Specialise std::optional template for the case where we are wrapping a o3tl::cow_wrapper type, and we can make the pointer inside the cow_wrapper act as an empty value, and save ourselves some storage.

Definition at line 132 of file outlobj.hxx.

Constructor & Destructor Documentation

◆ optional() [1/7]

std::optional< OutlinerParaObject >::optional ( )
inlinenoexcept

Definition at line 135 of file outlobj.hxx.

◆ optional() [2/7]

std::optional< OutlinerParaObject >::optional ( std::nullopt_t  )
inlinenoexcept

Definition at line 136 of file outlobj.hxx.

◆ optional() [3/7]

std::optional< OutlinerParaObject >::optional ( const optional< OutlinerParaObject > &  other)
inline

Definition at line 137 of file outlobj.hxx.

◆ optional() [4/7]

std::optional< OutlinerParaObject >::optional ( optional< OutlinerParaObject > &&  other)
inlinenoexcept

Definition at line 139 of file outlobj.hxx.

◆ optional() [5/7]

std::optional< OutlinerParaObject >::optional ( OutlinerParaObject &&  para)
inlinenoexcept

Definition at line 141 of file outlobj.hxx.

◆ optional() [6/7]

std::optional< OutlinerParaObject >::optional ( const OutlinerParaObject para)
inlinenoexcept

Definition at line 143 of file outlobj.hxx.

◆ optional() [7/7]

template<class... Args>
std::optional< OutlinerParaObject >::optional ( std::in_place_t  ,
Args &&...  args 
)
inlineexplicit

Definition at line 146 of file outlobj.hxx.

References args, and forward().

Member Function Documentation

◆ emplace()

template<class... Args>
void std::optional< OutlinerParaObject >::emplace ( Args &&...  args)
inline

Definition at line 160 of file outlobj.hxx.

References args.

◆ has_value()

bool std::optional< OutlinerParaObject >::has_value ( ) const
inlinenoexcept

Definition at line 165 of file outlobj.hxx.

◆ operator bool()

std::optional< OutlinerParaObject >::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 166 of file outlobj.hxx.

◆ operator*() [1/2]

OutlinerParaObject & std::optional< OutlinerParaObject >::operator* ( )
inline

Definition at line 174 of file outlobj.hxx.

◆ operator*() [2/2]

const OutlinerParaObject & std::optional< OutlinerParaObject >::operator* ( ) const
inline

Definition at line 179 of file outlobj.hxx.

◆ operator->() [1/2]

OutlinerParaObject * std::optional< OutlinerParaObject >::operator-> ( )
inline

Definition at line 184 of file outlobj.hxx.

◆ operator->() [2/2]

const OutlinerParaObject * std::optional< OutlinerParaObject >::operator-> ( ) const
inline

Definition at line 189 of file outlobj.hxx.

◆ operator=() [1/2]

optional & std::optional< OutlinerParaObject >::operator= ( optional< OutlinerParaObject > &&  other)
inlinenoexcept

Definition at line 154 of file outlobj.hxx.

◆ operator=() [2/2]

optional & std::optional< OutlinerParaObject >::operator= ( optional< OutlinerParaObject > const &  other)
inline

Definition at line 149 of file outlobj.hxx.

◆ reset()

void std::optional< OutlinerParaObject >::reset ( )
inline

Definition at line 167 of file outlobj.hxx.

◆ throwIfEmpty()

void std::optional< OutlinerParaObject >::throwIfEmpty ( ) const
inlineprivate

Definition at line 195 of file outlobj.hxx.

◆ value()

OutlinerParaObject & std::optional< OutlinerParaObject >::value ( )
inline

Definition at line 169 of file outlobj.hxx.

Member Data Documentation

◆ maParaObject

OutlinerParaObject std::optional< OutlinerParaObject >::maParaObject
private

Definition at line 200 of file outlobj.hxx.


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