LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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 23 of file fdguard.h.

Constructor & Destructor Documentation

◆ FDGuard() [1/3]

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

Definition at line 24 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 29 of file fdguard.cpp.

References swap.

◆ ~FDGuard()

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

Definition at line 42 of file fdguard.cpp.

Member Function Documentation

◆ operator bool()

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

Definition at line 48 of file fdguard.cpp.

◆ operator int()

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

Definition at line 53 of file fdguard.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Definition at line 35 of file fdguard.cpp.

Friends And Related Function Documentation

◆ swap

void swap ( FDGuard g1,
FDGuard g2 
)
friend

Definition at line 58 of file fdguard.cpp.

Referenced by FDGuard().


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