| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Private Member Functions | Private Attributes | List of all members
ProcStats::unique_fd Class Reference

## Public Member Functions
| unique_fd (int fd=-1)
| unique_fd (unique_fd &&other)
| ~unique_fd ()
| operator bool () const
template<typename... Args>
unique_fd & | open (Args &&...args)
| unique_fd_forward (lseek) unique_fd_forward(read) unique_fd_forward(write) unique_fd_forward(fcntl) unique_fd_forward(fsync) unique_fd_forward(fchown) unique_fd_forward(stat) int close()

## Private Member Functions
| unique_fd (const unique_fd &)=delete
unique_fd & | operator= (const unique_fd &)=delete

## Private Attributes
int | m_fd

## Detailed Description

Definition at line 60 of file ProcStats.h.

## Constructor & Destructor Documentation

ProcStats::unique_fd::unique_fd | ( | const unique_fd & |  | ) |
| private delete

ProcStats::unique_fd::unique_fd | ( | int | fd = `-1` | ) |
| inline

Definition at line 65 of file ProcStats.h.

65 : m_fd(fd) {}
ProcStats::fd
unique_fd fd
Definition: ProcStats.h:87
ProcStats::unique_fd::m_fd
int m_fd
Definition: ProcStats.h:61

ProcStats::unique_fd::unique_fd | ( | unique_fd && | other | ) |
| inline

Definition at line 66 of file ProcStats.h.

66 { m_fd = other.m_fd; other.m_fd = -1; }
ProcStats::unique_fd::m_fd
int m_fd
Definition: ProcStats.h:61

ProcStats::unique_fd::~unique_fd | ( |  | ) |
| inline

Definition at line 67 of file ProcStats.h.

67 { if (m_fd != -1) ::close(m_fd); }
ProcStats::unique_fd::m_fd
int m_fd
Definition: ProcStats.h:61

## Member Function Documentation

template<typename... Args>

unique_fd& ProcStats::unique_fd::open | ( | Args &&... | args | ) |
| inline

Definition at line 71 of file ProcStats.h.

71 { m_fd = ::open(std::forward<Args>(args)...); return *this; }
ProcStats::unique_fd::open
unique_fd & open(Args &&...args)
Definition: ProcStats.h:71
ProcStats::unique_fd::m_fd
int m_fd
Definition: ProcStats.h:61
gaudirun.args
list args
Definition: gaudirun.py:290

ProcStats::unique_fd::operator bool | ( |  | ) | const
| inline explicit

Definition at line 69 of file ProcStats.h.

69 { return m_fd != -1; }
ProcStats::unique_fd::m_fd
int m_fd
Definition: ProcStats.h:61

unique_fd& ProcStats::unique_fd::operator= | ( | const unique_fd & |  | ) |
| private delete

ProcStats::unique_fd::unique_fd_forward | ( | lseek |  | ) |
| inline

Definition at line 75 of file ProcStats.h.

83 { auto r = ::close(m_fd); m_fd = -1; return r; }
ProcStats::unique_fd::m_fd
int m_fd
Definition: ProcStats.h:61

## Member Data Documentation

int ProcStats::unique_fd::m_fd
| private

Definition at line 61 of file ProcStats.h.

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

- GaudiAud/src/ProcStats.h