Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
android::base::borrowed_fd Struct Reference

#include <unique_fd.h>

Public Member Functions

 borrowed_fd (int fd)
 
template<typename T >
 borrowed_fd (const unique_fd_impl< T > &ufd)
 
int get () const
 
bool operator>= (int rhs) const
 
bool operator< (int rhs) const
 
bool operator== (int rhs) const
 
bool operator!= (int rhs) const
 

Private Attributes

int fd_ = -1
 

Constructor & Destructor Documentation

◆ borrowed_fd() [1/2]

android::base::borrowed_fd::borrowed_fd ( int  fd)
inline

◆ borrowed_fd() [2/2]

template<typename T >
android::base::borrowed_fd::borrowed_fd ( const unique_fd_impl< T > &  ufd)
inline

Member Function Documentation

◆ get()

int android::base::borrowed_fd::get ( ) const
inline

◆ operator!=()

bool android::base::borrowed_fd::operator!= ( int  rhs) const
inline

◆ operator<()

bool android::base::borrowed_fd::operator< ( int  rhs) const
inline

◆ operator==()

bool android::base::borrowed_fd::operator== ( int  rhs) const
inline

◆ operator>=()

bool android::base::borrowed_fd::operator>= ( int  rhs) const
inline

Member Data Documentation

◆ fd_

int android::base::borrowed_fd::fd_ = -1
private

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