#include <VirtualFile.h>
Inheritance diagram for NSFileSystem::TVirtualFileAutoPtr< T >:
Public Member Functions | |
TVirtualFileAutoPtr (void) | |
Empty constructor. | |
TVirtualFileAutoPtr (T *vfile) | |
Constructor from pointer to TVirtualFile. | |
~TVirtualFileAutoPtr (void) | |
Destroy this object and close opened virtual file if it is stored inside. | |
TVirtualFileAutoPtr (const TVirtualFileAutoPtr< T > &orig) | |
void | operator= (const TVirtualFileAutoPtr< T > &orig) |
void | operator= (T *vfile) |
Assignment operator. | |
BOOL | operator== (const TVirtualFileAutoPtr< T > &vfileptr) |
Compare two virtual files. | |
BOOL | operator== (const T *vfile) |
Compare this virtual file with another virtual file. | |
BOOL | operator!= (const TVirtualFileAutoPtr< T > &vfileptr) |
Compare two virtual files. | |
BOOL | operator!= (const T *vfile) |
Compare this virtual file with another virtual file. | |
BOOL | operator! (void) const |
Returns negation of pointer converted to BOOL. | |
BOOL | IsNULL (void) const |
Check whether pointer inside object is NULL. | |
T * | GetPtr (void) |
Returns pointer stored inside this object. | |
const T * | GetPtr (void) const |
Returns pointer stored inside this object. | |
T * | operator-> (void) |
Pointer access operator. | |
const T * | operator-> (void) const |
Pointer access operator. |
You may simply use this class. Class initializes their pointer to NULL at begin and automatically destroy non-NULL pointer when object is destroyed.
It is not allowed assignment of this class (copy constructor, assignment operator etc.) because no reference counting is used. Thus you should use class only in scope where was object declared.
Definition at line 171 of file VirtualFile.h.
|
Empty constructor. Initialize object to NULL. Definition at line 210 of file VirtualFile.h. |
|
Constructor from pointer to TVirtualFile.
Definition at line 220 of file VirtualFile.h. |
|
Destroy this object and close opened virtual file if it is stored inside.
Definition at line 228 of file VirtualFile.h. |
|
|
|
Returns pointer stored inside this object.
Definition at line 332 of file VirtualFile.h. |
|
Returns pointer stored inside this object.
Definition at line 324 of file VirtualFile.h. |
|
Check whether pointer inside object is NULL.
Definition at line 316 of file VirtualFile.h. Referenced by NSConfigFile::TConfigFile::LoadConfigFileFromVFS(). |
|
Returns negation of pointer converted to BOOL.
Definition at line 308 of file VirtualFile.h. |
|
Compare this virtual file with another virtual file.
Definition at line 298 of file VirtualFile.h. |
|
Compare two virtual files.
Definition at line 286 of file VirtualFile.h. References NSFileSystem::TVirtualFileAutoPtr< T >::m_ptr. |
|
Pointer access operator.
Definition at line 348 of file VirtualFile.h. |
|
Pointer access operator.
Definition at line 340 of file VirtualFile.h. |
|
Assignment operator.
Definition at line 244 of file VirtualFile.h. |
|
|
|
Compare this virtual file with another virtual file.
Definition at line 274 of file VirtualFile.h. |
|
Compare two virtual files.
Definition at line 262 of file VirtualFile.h. References NSFileSystem::TVirtualFileAutoPtr< T >::m_ptr. |