LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::FDGuard Class Reference

#include "fdguard.h"

Public Member Functions

 FDGuard (const char *file, int mode)
 
 FDGuard (const FDGuard &)=delete
 
 FDGuard (FDGuard &&other)
 
 ~FDGuard ()
 
FDGuardoperator= (const FDGuard &)=delete
 
FDGuardoperator= (FDGuard &&other)
 
 operator bool () const
 
false operator int () const
 

Friends

void swap (FDGuard &g1, FDGuard &g2)
 

Detailed Description

Definition at line 16 of file fdguard.h.

Constructor & Destructor Documentation

◆ FDGuard() [1/3]

LC::Util::FDGuard::FDGuard ( const char * file,
int mode )

Definition at line 17 of file fdguard.cpp.

Referenced by FDGuard(), FDGuard(), operator=(), operator=(), and swap.

+ Here is the caller graph for this function:

◆ FDGuard() [2/3]

LC::Util::FDGuard::FDGuard ( const FDGuard & )
delete

References FDGuard().

+ Here is the call graph for this function:

◆ FDGuard() [3/3]

LC::Util::FDGuard::FDGuard ( FDGuard && other)

Definition at line 22 of file fdguard.cpp.

References FDGuard().

+ Here is the call graph for this function:

◆ ~FDGuard()

LC::Util::FDGuard::~FDGuard ( )

Definition at line 35 of file fdguard.cpp.

Member Function Documentation

◆ operator bool()

LC::Util::FDGuard::operator bool ( ) const
explicit

Definition at line 41 of file fdguard.cpp.

◆ operator int()

LC::Util::FDGuard::operator int ( ) const
explicit

Definition at line 46 of file fdguard.cpp.

◆ operator=() [1/2]

FDGuard & LC::Util::FDGuard::operator= ( const FDGuard & )
delete

References FDGuard(), and swap.

+ Here is the call graph for this function:

◆ operator=() [2/2]

FDGuard & LC::Util::FDGuard::operator= ( FDGuard && other)

Definition at line 28 of file fdguard.cpp.

References FDGuard(), and swap.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ swap

void swap ( FDGuard & g1,
FDGuard & g2 )
friend

Definition at line 51 of file fdguard.cpp.

References FDGuard().

Referenced by operator=(), and operator=().


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