LeechCraft 0.6.70-16373-g319c272718
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.

◆ FDGuard() [2/3]

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

◆ FDGuard() [3/3]

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

Definition at line 22 of file fdguard.cpp.

◆ ~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 LC::Util::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 swap.

Friends And Related Symbol Documentation

◆ swap

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

Definition at line 51 of file fdguard.cpp.

Referenced by operator=().


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