LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
LeechCraft::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
 
 operator int () const
 

Friends

void swap (FDGuard &g1, FDGuard &g2)
 

Detailed Description

Definition at line 39 of file fdguard.h.

Constructor & Destructor Documentation

◆ FDGuard() [1/3]

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

Definition at line 40 of file fdguard.cpp.

◆ FDGuard() [2/3]

LeechCraft::Util::FDGuard::FDGuard ( const FDGuard )
delete

◆ FDGuard() [3/3]

LeechCraft::Util::FDGuard::FDGuard ( FDGuard &&  other)

Definition at line 45 of file fdguard.cpp.

◆ ~FDGuard()

LeechCraft::Util::FDGuard::~FDGuard ( )

Definition at line 58 of file fdguard.cpp.

Member Function Documentation

◆ operator bool()

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

Definition at line 64 of file fdguard.cpp.

◆ operator int()

LeechCraft::Util::FDGuard::operator int ( ) const

Definition at line 69 of file fdguard.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Definition at line 51 of file fdguard.cpp.

References swap.

Friends And Related Function Documentation

◆ swap

void swap ( FDGuard g1,
FDGuard g2 
)
friend

Definition at line 74 of file fdguard.cpp.

Referenced by operator=().


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