uvw  1.6.0
Public Member Functions | Static Public Member Functions | List of all members
uvw::UnderlyingType< T, U > Class Template Reference

Wrapper class for underlying types. More...

#include <underlying_type.hpp>

Inheritance diagram for uvw::UnderlyingType< T, U >:
Inheritance graph
[legend]

Public Member Functions

Looploop () const noexcept
 Gets the loop from which the resource was originated. More...
 

Static Public Member Functions

template<typename... Args>
static std::shared_ptr< T > create (Args &&... args)
 Creates a new resource of the given type. More...
 

Detailed Description

template<typename T, typename U>
class uvw::UnderlyingType< T, U >

Wrapper class for underlying types.

It acts mainly as a wrapper around data structures of the underlying library.

Definition at line 19 of file underlying_type.hpp.

Member Function Documentation

◆ create()

template<typename T, typename U>
template<typename... Args>
static std::shared_ptr<T> uvw::UnderlyingType< T, U >::create ( Args &&...  args)
inlinestatic

Creates a new resource of the given type.

Parameters
argsArguments to be forwarded to the actual constructor (if any).
Returns
A pointer to the newly created resource.

Definition at line 77 of file underlying_type.hpp.

◆ loop()

template<typename T, typename U>
Loop& uvw::UnderlyingType< T, U >::loop ( ) const
inlinenoexcept

Gets the loop from which the resource was originated.

Returns
A reference to a loop instance.

Definition at line 85 of file underlying_type.hpp.


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