AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
Pipe Class Reference

Unix pipe RAII wrapper. More...

#include <AUI/Platform/Pipe.h>

Public Types

using pipe_t = HANDLE
 

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.
 
pipe_t stealIn () noexcept
 Steals ownership of the in pipe outside of the Pipe class.
 
- Public Member Functions inherited from aui::noncopyable
 noncopyable (const noncopyable &)=delete
 
noncopyableoperator= (const noncopyable &)=delete
 

Detailed Description

Unix pipe RAII wrapper.

Member Function Documentation

◆ stealIn()

pipe_t Pipe::stealIn ( )
inlinenodiscardnoexcept

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 ( )
inlinenodiscardnoexcept

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

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


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