Mir
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Friends | List of all members
mir::Fd Class Reference

#include <fd.h>

Public Member Functions

 Fd (int fd)
 
 Fd (IntOwnedFd)
 
 Fd ()
 
 Fd (Fd &&)
 
 Fd (Fd const &)=default
 
Fdoperator= (Fd)
 
 operator int () const
 

Static Public Attributes

static int const invalid {-1}
 

Friends

auto close (Fd const &fd) -> int=delete
 Prevent accidental calling of close()
 

Constructor & Destructor Documentation

◆ Fd() [1/5]

mir::Fd::Fd ( int  fd)
explicit

◆ Fd() [2/5]

mir::Fd::Fd ( IntOwnedFd  )
explicit

◆ Fd() [3/5]

mir::Fd::Fd ( )

◆ Fd() [4/5]

mir::Fd::Fd ( Fd &&  )

◆ Fd() [5/5]

mir::Fd::Fd ( Fd const &  )
default

Member Function Documentation

◆ operator int()

mir::Fd::operator int ( ) const

◆ operator=()

Fd & mir::Fd::operator= ( Fd  )

Friends And Related Symbol Documentation

◆ close

auto close ( Fd const &  fd) -> int=delete
friend

Prevent accidental calling of close()

Member Data Documentation

◆ invalid

int const mir::Fd::invalid {-1}
static

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

Copyright © 2012-2024 Canonical Ltd.
Generated on Sun Mar 31 20:11:12 UTC 2024
This documentation is licensed under the GPL version 2 or 3.