CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MagicXattrRAIIWrapper Class Reference

#include <magic_xattr.h>

Inheritance diagram for MagicXattrRAIIWrapper:
Collaboration diagram for MagicXattrRAIIWrapper:

Public Member Functions

 MagicXattrRAIIWrapper ()
 
 MagicXattrRAIIWrapper (BaseMagicXattr *ptr, PathString path, catalog::DirectoryEntry *d)
 
 MagicXattrRAIIWrapper (BaseMagicXattr *ptr)
 Wraps around a BaseMagicXattr* tha is already locked (or NULL) More...
 
 ~MagicXattrRAIIWrapper ()
 
BaseMagicXattroperator-> () const
 
bool IsNull () const
 
BaseMagicXattrMove ()
 

Protected Attributes

BaseMagicXattrptr_
 

Additional Inherited Members

- Protected Member Functions inherited from SingleCopy
 SingleCopy ()
 

Detailed Description

This wrapper ensures that the attribute instance "ptr_" is released after the user finishes using it (on wrapper destruction).

Definition at line 87 of file magic_xattr.h.

Constructor & Destructor Documentation

MagicXattrRAIIWrapper::MagicXattrRAIIWrapper ( )
inline

Definition at line 89 of file magic_xattr.h.

MagicXattrRAIIWrapper::MagicXattrRAIIWrapper ( BaseMagicXattr ptr,
PathString  path,
catalog::DirectoryEntry d 
)
inlineexplicit

Definition at line 91 of file magic_xattr.h.

Here is the call graph for this function:

MagicXattrRAIIWrapper::MagicXattrRAIIWrapper ( BaseMagicXattr ptr)
inlineexplicit

Wraps around a BaseMagicXattr* tha is already locked (or NULL)

Definition at line 100 of file magic_xattr.h.

MagicXattrRAIIWrapper::~MagicXattrRAIIWrapper ( )
inline

Definition at line 102 of file magic_xattr.h.

Here is the call graph for this function:

Member Function Documentation

bool MagicXattrRAIIWrapper::IsNull ( ) const
inline

Definition at line 105 of file magic_xattr.h.

BaseMagicXattr* MagicXattrRAIIWrapper::Move ( )
inline

Definition at line 106 of file magic_xattr.h.

BaseMagicXattr* MagicXattrRAIIWrapper::operator-> ( ) const
inline

Definition at line 104 of file magic_xattr.h.

Member Data Documentation

BaseMagicXattr* MagicXattrRAIIWrapper::ptr_
protected

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