Sunshine master
Self-hosted game stream host for Moonlight.
upnp::urls_t Class Reference

Move-only RAII wrapper generated by KITTY_USING_MOVE_T.
Alias for element type. More...

#include <src/upnp.h>

Collaboration diagram for upnp::urls_t:
[legend]

Public Types

using element_type = typename argument_type<void(UPNPUrls)>::type
 Wrapped element type.

 

Public Member Functions

element_typeoperator-> ()
 Access the wrapped element. * *.
 
const element_typeoperator-> () const
 Access the wrapped element. * *.
 
urls_toperator= (const urls_t &)=delete
 Copy assignment is disabled.

 
urls_toperator= (urls_t &&other)
 Move-assign the wrapped element by swapping with another wrapper. * *.
 
element_type release ()
 Release the wrapped element and reset the wrapper. * *.
 
 urls_t ()
 Initialize the generated wrapper with the configured initial value.

 
template<class... Args>
 urls_t (Args &&...args)
 Initialize the generated wrapper from forwarded element arguments. * *.
 
 urls_t (const urls_t &)=delete
 Copy construction is disabled.

 
 urls_t (urls_t &&other) noexcept
 Move-construct the wrapper and reset the source wrapper. * *.
 
 ~urls_t ()
 Destroy the wrapper and run the configured cleanup body.

 

Public Attributes

element_type el
 Wrapped element value.

 

Detailed Description

Move-only RAII wrapper generated by KITTY_USING_MOVE_T.
Alias for element type.

Member Typedef Documentation

◆ element_type

using upnp::urls_t::element_type = typename argument_type<void(UPNPUrls)>::type

Wrapped element type.

Constructor & Destructor Documentation

◆ urls_t() [1/4]

upnp::urls_t::urls_t ( )
inline

Initialize the generated wrapper with the configured initial value.

◆ urls_t() [2/4]

template<class... Args>
upnp::urls_t::urls_t ( Args &&... args)
inline

Initialize the generated wrapper from forwarded element arguments. * *.

*

Parameters
argsArguments forwarded to the wrapped element.

◆ urls_t() [3/4]

upnp::urls_t::urls_t ( const urls_t & )
delete

Copy construction is disabled.

◆ urls_t() [4/4]

upnp::urls_t::urls_t ( urls_t && other)
inlinenoexcept

Move-construct the wrapper and reset the source wrapper. * *.

*

Parameters
otherWrapper to move from.

◆ ~urls_t()

upnp::urls_t::~urls_t ( )
inline

Destroy the wrapper and run the configured cleanup body.

Member Function Documentation

◆ operator->() [1/2]

element_type * upnp::urls_t::operator-> ( )
inline

Access the wrapped element. * *.

  • Returns
    Pointer to the wrapped element.

◆ operator->() [2/2]

const element_type * upnp::urls_t::operator-> ( ) const
inline

Access the wrapped element. * *.

  • Returns
    Pointer to the wrapped element.

◆ operator=() [1/2]

urls_t & upnp::urls_t::operator= ( const urls_t & )
delete

Copy assignment is disabled.

◆ operator=() [2/2]

urls_t & upnp::urls_t::operator= ( urls_t && other)
inline

Move-assign the wrapped element by swapping with another wrapper. * *.

*

Parameters
otherWrapper to move from. *
Returns
This wrapper.

◆ release()

element_type upnp::urls_t::release ( )
inline

Release the wrapped element and reset the wrapper. * *.

  • Returns
    Previously wrapped element after ownership is released.

Member Data Documentation

◆ el

element_type upnp::urls_t::el

Wrapped element value.


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