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

#include <compressor.h>

Public Member Functions

 pressio_compressor (std::shared_ptr< libpressio_compressor_plugin > &&impl)
 
 pressio_compressor ()=default
 
 pressio_compressor (pressio_compressor const &compressor)
 
pressio_compressoroperator= (pressio_compressor const &compressor)
 
pressio_compressoroperator= (pressio_compressor &&compressor) noexcept=default
 
 pressio_compressor (pressio_compressor &&compressor)=default
 
 operator bool () const
 
libpressio_compressor_pluginoperator* () const noexcept
 
libpressio_compressor_pluginoperator-> () const noexcept
 

Public Attributes

std::shared_ptr< libpressio_compressor_pluginplugin
 

Detailed Description

wrapper for the compressor to use in C

Constructor & Destructor Documentation

◆ pressio_compressor() [1/4]

pressio_compressor::pressio_compressor ( std::shared_ptr< libpressio_compressor_plugin > &&  impl)
inline
Parameters
[in]impla newly constructed compressor plugin

◆ pressio_compressor() [2/4]

pressio_compressor::pressio_compressor ( )
default

defaults constructs a compressor with a nullptr

◆ pressio_compressor() [3/4]

pressio_compressor::pressio_compressor ( pressio_compressor const &  compressor)
inline

copy constructs a compressor from another pointer by cloning

◆ pressio_compressor() [4/4]

pressio_compressor::pressio_compressor ( pressio_compressor &&  compressor)
default

move constructs a compressor from another pointer

Member Function Documentation

◆ operator bool()

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

◆ operator*()

libpressio_compressor_plugin & pressio_compressor::operator* ( ) const
inlinenoexcept

make libpressio_compressor_plugin behave like a shared_ptr

◆ operator->()

libpressio_compressor_plugin * pressio_compressor::operator-> ( ) const
inlinenoexcept

make libpressio_compressor_plugin behave like a shared_ptr

◆ operator=() [1/2]

pressio_compressor & pressio_compressor::operator= ( pressio_compressor &&  compressor)
defaultnoexcept

move assigns a compressor from another pointer

◆ operator=() [2/2]

pressio_compressor & pressio_compressor::operator= ( pressio_compressor const &  compressor)
inline

copy assigns a compressor from another pointer by cloning

Member Data Documentation

◆ plugin

std::shared_ptr<libpressio_compressor_plugin> pressio_compressor::plugin

pointer to the implementation


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