AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
Pipe Class Reference

Unix pipe RAII wrapper. More...

Detailed Description

Unix pipe RAII wrapper.

Public Types

using pipe_t = int
 

Public Member Functions

 Pipe (Pipe &&rhs) noexcept
 
Pipeoperator= (Pipe &&rhs) noexcept
 
pipe_t out () const noexcept
 Out pipe. Also known as pipe[0].
 
pipe_t in () const noexcept
 In pipe. Also known as pipe[1].
 
void closeOut () noexcept
 
void closeIn () noexcept
 
pipe_t stealOut () noexcept
 Steals ownership of the out pipe outside of the Pipe class. More...
 
pipe_t stealIn () noexcept
 Steals ownership of the in pipe outside of the Pipe class. More...
 
- Public Member Functions inherited from aui::noncopyable
 noncopyable (const noncopyable &)=delete
 
noncopyableoperator= (const noncopyable &)=delete
 

Member Function Documentation

◆ stealIn()

pipe_t Pipe::stealIn ( )
inlinenoexcept

Steals ownership of the in pipe outside of the Pipe class.

Resets the pipe value to zero. Caller is responsible for closing the pipe.

◆ stealOut()

pipe_t Pipe::stealOut ( )
inlinenoexcept

Steals ownership of the out pipe outside of the Pipe class.

Resets the pipe value to zero. Caller is responsible for closing the pipe.

#include <AUI/Platform/Pipe.h>


The documentation for this class was generated from the following files:
Inheritance diagram for Pipe:
Collaboration diagram for Pipe: