#include <lockingptr.h>
Public Member Functions | |
LockingPtr (const LockableObj *o, const T *p) | |
LockingPtr (const LockingPtr &lp) | |
LockingPtr & | operator= (const LockingPtr &lp) |
~LockingPtr () | |
bool | isNull () const |
bool | operator! () const |
bool | operator== (T *p) const |
bool | operator== (const LockingPtr &lp) const |
bool | operator!= (T *p) const |
bool | operator!= (const LockingPtr &lp) const |
const T & | operator * () const |
T * | pointer () const |
T * | operator-> () const |
With the pointer an owner object derived from LockableObj is associated. As long as the smart object exists it will keep a lock on the obj by calling LockableObj::lock(). Smart pointers can be copied and passed by value. As soon as there or no more smart pointer references to the object, LockableObj::unlock() will be called automatically.
Definition at line 62 of file lockingptr.h.
LockingPtr< T >::LockingPtr | ( | const LockableObj * | o, | |
const T * | p | |||
) | [inline] |
Creates a smart pointer for pointer p owned by object o.
Definition at line 70 of file lockingptr.h.
References LockableObj::lock(), and LockableObj::m_lockCount.
LockingPtr< T >::LockingPtr | ( | const LockingPtr< T > & | lp | ) | [inline] |
Copies the smart pointer lp
Definition at line 80 of file lockingptr.h.
References LockableObj::m_lockCount, LockingPtr< T >::m_owner, and LockingPtr< T >::m_ptr.
LockingPtr< T >::~LockingPtr | ( | ) | [inline] |
Destroys the smart pointer, will unlock the owner.
Definition at line 104 of file lockingptr.h.
References LockableObj::m_lockCount, and LockableObj::unlock().
LockingPtr& LockingPtr< T >::operator= | ( | const LockingPtr< T > & | lp | ) | [inline] |
Assigns the smart pointer lp
Definition at line 89 of file lockingptr.h.
References LockableObj::m_lockCount, LockingPtr< T >::m_owner, LockingPtr< T >::m_ptr, and LockableObj::unlock().
bool LockingPtr< T >::isNull | ( | ) | const [inline] |
Definition at line 113 of file lockingptr.h.
Referenced by DotCallGraph::buildGraph(), and generateDEFForMember().
bool LockingPtr< T >::operator! | ( | ) | const [inline] |
Definition at line 118 of file lockingptr.h.
bool LockingPtr< T >::operator== | ( | T * | p | ) | const [inline] |
Definition at line 123 of file lockingptr.h.
bool LockingPtr< T >::operator== | ( | const LockingPtr< T > & | lp | ) | const [inline] |
bool LockingPtr< T >::operator!= | ( | T * | p | ) | const [inline] |
Definition at line 133 of file lockingptr.h.
bool LockingPtr< T >::operator!= | ( | const LockingPtr< T > & | lp | ) | const [inline] |
const T& LockingPtr< T >::operator * | ( | ) | const [inline] |
Dereference operator
Definition at line 144 of file lockingptr.h.
T* LockingPtr< T >::pointer | ( | ) | const [inline] |
Definition at line 149 of file lockingptr.h.
Referenced by MemberDef::addListReference(), NamespaceDef::addListReferences(), GroupDef::addListReferences(), FileDef::addListReferences(), ClassDef::addListReferences(), VhdlDocGen::findFunction(), getDefs(), GroupDef::insertMember(), ClassDef::mergeMembers(), and VhdlDocGen::writeVHDLDeclaration().
T* LockingPtr< T >::operator-> | ( | ) | const [inline] |
Pointer operator
Definition at line 155 of file lockingptr.h.