libpressio 0.93.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
pressio_io Struct Reference

#include <io.h>

Public Member Functions

 pressio_io (std::unique_ptr< libpressio_io_plugin > &&impl)
 
 pressio_io (std::shared_ptr< libpressio_io_plugin > &&impl)
 
 pressio_io ()=default
 
 pressio_io (pressio_io const &io)
 
pressio_iooperator= (pressio_io const &io)
 
 pressio_io (pressio_io &&io)=default
 
pressio_iooperator= (pressio_io &&io)=default
 
 operator bool () const
 
libpressio_io_pluginoperator* () const noexcept
 
libpressio_io_pluginoperator-> () const noexcept
 

Public Attributes

std::shared_ptr< libpressio_io_pluginplugin
 

Detailed Description

wrapper for the io module to use in C

Constructor & Destructor Documentation

◆ pressio_io() [1/5]

pressio_io::pressio_io ( std::unique_ptr< libpressio_io_plugin > &&  impl)
inline
Parameters
[in]impla newly constructed io plugin

◆ pressio_io() [2/5]

pressio_io::pressio_io ( std::shared_ptr< libpressio_io_plugin > &&  impl)
inline
Parameters
[in]impla newly constructed io plugin

◆ pressio_io() [3/5]

pressio_io::pressio_io ( )
default

defaults constructs a io with a nullptr

◆ pressio_io() [4/5]

pressio_io::pressio_io ( pressio_io const &  io)
inline

copy constructs a io from another pointer

◆ pressio_io() [5/5]

pressio_io::pressio_io ( pressio_io &&  io)
default

move constructs a io from another pointer

Member Function Documentation

◆ operator bool()

pressio_io::operator bool ( ) const
inline
Returns
true if the plugin is set

◆ operator*()

libpressio_io_plugin & pressio_io::operator* ( ) const
inlinenoexcept

make libpressio_io_plugin behave like a shared_ptr

◆ operator->()

libpressio_io_plugin * pressio_io::operator-> ( ) const
inlinenoexcept

make libpressio_io_plugin behave like a shared_ptr

◆ operator=() [1/2]

pressio_io & pressio_io::operator= ( pressio_io &&  io)
default

move assigns a io from another pointer

◆ operator=() [2/2]

pressio_io & pressio_io::operator= ( pressio_io const &  io)
inline

copy assigns a io from another pointer

Member Data Documentation

◆ plugin

std::shared_ptr<libpressio_io_plugin> pressio_io::plugin

pointer to the implementation


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