Descriptor table mapping integer handles to open-file state.
More...
#include <file_descriptor.h>
|
| std::unique_ptr< Impl > | impl_ |
Descriptor table mapping integer handles to open-file state.
Definition at line 84 of file file_descriptor.h.
◆ FileDescriptorTable() [1/3]
| contur::FileDescriptorTable::FileDescriptorTable |
( |
| ) |
|
◆ ~FileDescriptorTable()
| contur::FileDescriptorTable::~FileDescriptorTable |
( |
| ) |
|
◆ FileDescriptorTable() [2/3]
| contur::FileDescriptorTable::FileDescriptorTable |
( |
const FileDescriptorTable & | | ) |
|
|
delete |
◆ FileDescriptorTable() [3/3]
| contur::FileDescriptorTable::FileDescriptorTable |
( |
FileDescriptorTable && | | ) |
|
|
noexcept |
◆ close()
Removes a descriptor entry.
- Parameters
-
- Returns
- Ok on success; NotFound if descriptor does not exist.
◆ contains()
Returns whether descriptor exists.
- Parameters
-
- Returns
- True when descriptor is open.
◆ get()
Returns state for descriptor.
- Parameters
-
- Returns
- Open-file state or NotFound.
◆ open()
Creates a new descriptor entry.
- Parameters
-
| state | Initial open-file state to store. |
- Returns
- Newly allocated descriptor handle.
◆ openCount()
| std::size_t contur::FileDescriptorTable::openCount |
( |
| ) |
const |
|
nodiscardnoexcept |
Count of currently open descriptors.
- Returns
- Number of open entries in table.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set()
Replaces state for descriptor.
- Parameters
-
| fd | Descriptor to update. |
| state | New state value. |
- Returns
- Ok on success; NotFound if descriptor does not exist.
◆ impl_
| std::unique_ptr<Impl> contur::FileDescriptorTable::impl_ |
|
private |
The documentation for this class was generated from the following file: