CernVM-FS  2.12.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* that 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 162 of file magic_xattr.h.

Constructor & Destructor Documentation

MagicXattrRAIIWrapper::MagicXattrRAIIWrapper ( )
inline

Definition at line 164 of file magic_xattr.h.

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

Definition at line 166 of file magic_xattr.h.

Here is the call graph for this function:

MagicXattrRAIIWrapper::MagicXattrRAIIWrapper ( BaseMagicXattr ptr)
inlineexplicit

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

Definition at line 175 of file magic_xattr.h.

MagicXattrRAIIWrapper::~MagicXattrRAIIWrapper ( )
inline

Definition at line 177 of file magic_xattr.h.

Here is the call graph for this function:

Member Function Documentation

bool MagicXattrRAIIWrapper::IsNull ( ) const
inline

Definition at line 180 of file magic_xattr.h.

BaseMagicXattr* MagicXattrRAIIWrapper::Move ( )
inline

Definition at line 181 of file magic_xattr.h.

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

Definition at line 179 of file magic_xattr.h.

Member Data Documentation

BaseMagicXattr* MagicXattrRAIIWrapper::ptr_
protected

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