|
Zero
0.1.0
|
Ensures that a file gets closed. More...
#include <guard.h>
Public Member Functions | |
| file_guard_t (FILE *ptr=nullptr) | |
Public Member Functions inherited from pointer_guard_base_t< FILE, file_guard_t > | |
| pointer_guard_base_t (FILE *ptr) | |
| FILE & | operator* () const |
| operator FILE * () const | |
| FILE * | operator-> () const |
Public Member Functions inherited from guard_base_t< FILE *, file_guard_t > | |
| guard_base_t (FILE * obj) | |
| guard_base_t (const guard_base_t &other) | |
| guard_base_t & | operator= (const guard_base_t &other) |
| operator FILE * () const | |
| FILE * | get () const |
| FILE * | release () const |
| Notifies this guard that its services are no longer needed because some other entity has assumed ownership of the pointer. More... | |
| void | done () const |
| Notifies this guard that its action should be performed now rather than at destruct time. More... | |
| ~guard_base_t () | |
Static Public Member Functions | |
| static void | guard_action (FILE *ptr) |
Static Public Member Functions inherited from guard_base_t< FILE *, file_guard_t > | |
| static FILE * | null_value () |
| static bool | different (const FILE * &a, const FILE * &b) |
Additional Inherited Members | |
Public Types inherited from pointer_guard_base_t< FILE, file_guard_t > | |
| typedef guard_base_t< FILE *, file_guard_t > | Base |
Public Types inherited from guard_base_t< FILE *, file_guard_t > | |
| typedef guard_base_t< FILE *, file_guard_t > | Base |
Protected Member Functions inherited from guard_base_t< FILE *, file_guard_t > | |
| void | assign (FILE * obj) const |
Protected Attributes inherited from guard_base_t< FILE *, file_guard_t > | |
| FILE * | _obj |
Ensures that a file gets closed.
|
inline |
|
inlinestatic |
1.8.12