Definition at line 52 of file ProcStats.h.
◆ unique_fd() [1/3]
ProcStats::unique_fd::unique_fd |
( |
const unique_fd & | | ) |
|
|
privatedelete |
◆ unique_fd() [2/3]
ProcStats::unique_fd::unique_fd |
( |
const int | fd = -1 | ) |
|
|
inline |
◆ unique_fd() [3/3]
ProcStats::unique_fd::unique_fd |
( |
unique_fd && | other | ) |
|
|
inline |
Definition at line 63 of file ProcStats.h.
63 {
65 other.m_fd = -1;
66 }
◆ ~unique_fd()
ProcStats::unique_fd::~unique_fd |
( |
| ) |
|
|
inline |
◆ close()
int ProcStats::unique_fd::close |
( |
| ) |
|
|
inline |
Definition at line 76 of file ProcStats.h.
76 {
77 int r = 0;
81 }
82 return r;
83 }
◆ open()
template<typename... Args>
unique_fd & ProcStats::unique_fd::open |
( |
Args &&... | args | ) |
|
|
inline |
Definition at line 72 of file ProcStats.h.
72 {
73 m_fd =
::open( std::forward<Args>( args )... );
74 return *this;
75 }
unique_fd & open(Args &&... args)
◆ operator bool()
ProcStats::unique_fd::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ operator=()
◆ m_fd
int ProcStats::unique_fd::m_fd { -1 } |
|
private |
The documentation for this class was generated from the following file: