Public Member Functions

mozilla::AutoFDClose Class Reference

AutoFDClose is a RAII wrapper for PRFileDesc. More...

#include <FileUtils.h>

Collaboration diagram for mozilla::AutoFDClose:

List of all members.

Public Member Functions

 AutoFDClose (PRFileDesc *fd=nsnull)
 ~AutoFDClose ()
PRFileDescoperator= (PRFileDesc *fd)
 operator PRFileDesc * ()
PRFileDesc ** operator& ()

Detailed Description

AutoFDClose is a RAII wrapper for PRFileDesc.


Constructor & Destructor Documentation

mozilla::AutoFDClose::AutoFDClose ( PRFileDesc fd = nsnull  )  [inline]
mozilla::AutoFDClose::~AutoFDClose (  )  [inline]

Member Function Documentation

mozilla::AutoFDClose::operator PRFileDesc * (  )  [inline]
PRFileDesc** mozilla::AutoFDClose::operator& (  )  [inline]
PRFileDesc* mozilla::AutoFDClose::operator= ( PRFileDesc fd  )  [inline]

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