fw4spl
fwDataCamp::visitor::RecursiveLock Class Reference

This class is an helper to lock an object and all its children recursively. More...

#include <RecursiveLock.hpp>

+ Inheritance diagram for fwDataCamp::visitor::RecursiveLock:
+ Collaboration diagram for fwDataCamp::visitor::RecursiveLock:

Public Types

typedef std::vector< std::shared_ptr< ::fwCore::mt::ReadLock > > LockVectType
 Container definition dedicated to object locks storage.
 

Public Member Functions

FWDATACAMP_API RecursiveLock (std::shared_ptr< const ::fwData::Object >object, std::shared_ptr< LockVectType >locks=std::shared_ptr< LockVectType >(new LockVectType()))
 Constructor. Creates a recursive lock onto the given object and recursively locks it. This recursive lock can be built using a given container of previously acquired locks. More...
 
Introspection methods implementation
FWDATACAMP_API void visit (const camp::SimpleProperty &property)
 
FWDATACAMP_API void visit (const camp::EnumProperty &property)
 
FWDATACAMP_API void visit (const camp::UserProperty &property)
 
FWDATACAMP_API void visit (const camp::ArrayProperty &property)
 
FWDATACAMP_API void visit (const camp::Function &function)
 
virtual FWDATACAMP_API void visit (const camp::MapProperty &property)
 
- Public Member Functions inherited from camp::ExtendedClassVisitor
virtual void visit (const Property &property)
 
virtual void visit (const SimpleProperty &property)
 
virtual void visit (const ArrayProperty &property)
 
virtual void visit (const EnumProperty &property)
 
virtual void visit (const UserProperty &property)
 
virtual void visit (const Function &function)
 

Detailed Description

This class is an helper to lock an object and all its children recursively.

Definition at line 37 of file RecursiveLock.hpp.

Constructor & Destructor Documentation

fwDataCamp::visitor::RecursiveLock::RecursiveLock ( std::shared_ptr< const ::fwData::Object object,
std::shared_ptr< LockVectType locks = std::shared_ptr < LockVectType >(new LockVectType()) 
)

Constructor. Creates a recursive lock onto the given object and recursively locks it. This recursive lock can be built using a given container of previously acquired locks.

Parameters
objectdata object (containing child data objects) to lock recursively
lockscontainer of previously acquired locks

Definition at line 101 of file RecursiveLock.cpp.

References SLM_ASSERT, SLM_TRACE_FUNC, and SPTR.


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