fw4spl
fwMemory::policy::BarrierDump Class Reference

Barrier dump policy. More...

#include <BarrierDump.hpp>

+ Inheritance diagram for fwMemory::policy::BarrierDump:
+ Collaboration diagram for fwMemory::policy::BarrierDump:

Public Member Functions

virtual bool isA (const std::string &type) const override
 
virtual FWMEMORY_API void allocationRequest (BufferInfo &info,::fwMemory::BufferManager::ConstBufferPtrType buffer, BufferInfo::SizeType size) override
 
virtual FWMEMORY_API void setRequest (BufferInfo &info,::fwMemory::BufferManager::ConstBufferPtrType buffer, BufferInfo::SizeType size) override
 
virtual FWMEMORY_API void reallocateRequest (BufferInfo &info,::fwMemory::BufferManager::ConstBufferPtrType buffer, BufferInfo::SizeType newSize) override
 
virtual FWMEMORY_API void destroyRequest (BufferInfo &info,::fwMemory::BufferManager::ConstBufferPtrType buffer) override
 
virtual FWMEMORY_API void lockRequest (BufferInfo &info,::fwMemory::BufferManager::ConstBufferPtrType buffer) override
 
virtual FWMEMORY_API void unlockRequest (BufferInfo &info,::fwMemory::BufferManager::ConstBufferPtrType buffer) override
 
virtual FWMEMORY_API void dumpSuccess (BufferInfo &info,::fwMemory::BufferManager::ConstBufferPtrType buffer) override
 
virtual FWMEMORY_API void restoreSuccess (BufferInfo &info,::fwMemory::BufferManager::ConstBufferPtrType buffer) override
 
virtual FWMEMORY_API void refresh () override
 
void setBarrier (size_t barrier)
 
size_t getBarrier () const
 
virtual FWMEMORY_API std::string getParam (const std::string &name, bool *ok=NULL) const override
 
FWMEMORY_API bool setParam (const std::string &name, const std::string &value) override
 
FWMEMORY_API const fwMemory::IPolicy::ParamNamesType & getParamNames () const override
 
- Public Member Functions inherited from fwCore::BaseObject

Static Public Member Functions

static bool isTypeOf (const std::string &type)
 
- Static Public Member Functions inherited from fwCore::BaseObject
static bool isTypeOf (const std::string &type)
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Protected Member Functions

FWMEMORY_API size_t getTotalAlive () const
 
FWMEMORY_API bool isBarrierCrossed () const
 
FWMEMORY_API size_t dump (size_t nbOfBytes)
 
FWMEMORY_API void apply ()
 

Protected Attributes

size_t m_totalAllocated
 
size_t m_totalDumped
 
size_t m_barrier
 

Friends

template<class , class , class >
class ::fwTools::ClassFactory
 
class ::fwTools::Factory
 

Demangling methods

virtual const std::string & getLeafClassname () const override
 return object's classname without its namespace, i.e. BaseObject
 
virtual const std::string & getClassname () const override
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Additional Inherited Members

- Public Types inherited from fwMemory::IPolicy
typedef std::shared_ptr< IPolicysptr
 
typedef std::vector< std::string > ParamNamesType
 

Detailed Description

Barrier dump policy.

This policy defines a memory usage barrier and will try to keep the managed buffers memory usage under this barrier.

Definition at line 30 of file BarrierDump.hpp.


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