Lines Matching refs:UniqueFdAddDeletor
21 * The manager class `UniqueFdAddDeletor`,
38 * a `UniqueFdAddDeletor` object to release the management of an FD,
39 * the FD can no longer be taken over by other `UniqueFdAddDeletor` objects.
59 class UniqueFdAddDeletor;
61 bool operator==(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
63 bool operator!=(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
65 bool operator>=(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
67 bool operator>(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
69 bool operator<=(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
71 bool operator<(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
78 * The management of an FD can be delivered between `UniqueFdAddDeletor`
79 * objects. An FD will be closed if no `UniqueFdAddDeletor` object is available
86 class UniqueFdAddDeletor final {
87 friend bool operator==<Deleter>(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
89 friend bool operator!=<Deleter>(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
91 friend bool operator>=<Deleter>(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
93 friend bool operator><Deleter>(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
95 friend bool operator<=<Deleter>(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
97 friend bool operator< <Deleter>(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs);
101 * @brief Creates a `UniqueFdAddDeletor` object to manage an FD.
105 explicit UniqueFdAddDeletor(const int& value)
111 * @brief Constructor used to create a `UniqueFdAddDeletor` object
114 UniqueFdAddDeletor()
120 * @brief Destructor used to destroy this `UniqueFdAddDeletor` object.
124 ~UniqueFdAddDeletor() { Reset(-1); }
131 * `UniqueFdAddDeletor` object; otherwise, it must be closed manually.
145 * This function will be called when passing a `UniqueFdAddDeletor` object
167 * `UniqueFdAddDeletor` object to this object.
169 * @param rhs Indicates the source `UniqueFdAddDeletor` object.
171 UniqueFdAddDeletor(UniqueFdAddDeletor&& rhs)
179 * management of an FD from a `UniqueFdAddDeletor` object to this object.
181 * @param rhs Indicates the source `UniqueFdAddDeletor` object.
182 * @return Returns this `UniqueFdAddDeletor` object.
183 * @note The current FD manged by this `UniqueFdAddDeletor` object will be
187 UniqueFdAddDeletor& operator=(UniqueFdAddDeletor&& rhs)
198 * @param rhs Indicates the source `UniqueFdAddDeletor` object.
212 * @param rhs Indicates the source `UniqueFdAddDeletor` object.
226 * @param rhs Indicates the source `UniqueFdAddDeletor` object.
240 * @param rhs Indicates the source `UniqueFdAddDeletor` object.
254 * @param rhs Indicates the source `UniqueFdAddDeletor` object.
268 * @param rhs Indicates the source `UniqueFdAddDeletor` object.
290 UniqueFdAddDeletor(const UniqueFdAddDeletor& rhs) = delete;
291 UniqueFdAddDeletor& operator=(const UniqueFdAddDeletor& rhs) = delete;
299 * @param lhs Indicates the first `UniqueFdAddDeletor` object.
300 * @param rhs Indicates the second `UniqueFdAddDeletor` object.
306 bool operator==(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs)
316 * @param lhs Indicates the first `UniqueFdAddDeletor` object.
317 * @param rhs Indicates the second `UniqueFdAddDeletor` object.
324 bool operator!=(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs)
334 * @param lhs Indicates the first `UniqueFdAddDeletor` object.
335 * @param rhs Indicates the second `UniqueFdAddDeletor` object.
342 bool operator>=(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs)
352 * @param lhs Indicates the first `UniqueFdAddDeletor` object.
353 * @param rhs Indicates the second `UniqueFdAddDeletor` object.
360 bool operator>(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs)
370 * @param lhs Indicates the first `UniqueFdAddDeletor` object.
371 * @param rhs Indicates the second `UniqueFdAddDeletor` object.
378 bool operator<=(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs)
388 * @param lhs Indicates the first `UniqueFdAddDeletor` object.
389 * @param rhs Indicates the second `UniqueFdAddDeletor` object.
396 bool operator<(const int& lhs, const UniqueFdAddDeletor<Deleter>& rhs)
401 using UniqueFd = UniqueFdAddDeletor<DefaultDeleter>;