35 #ifndef IECORE_OBJECTPOOL_H
36 #define IECORE_OBJECTPOOL_H
38 #include "boost/shared_ptr.hpp"
40 #include "IECore/Export.h"
41 #include "IECore/Object.h"
42 #include "IECore/MurmurHash.h"
47 IE_CORE_FORWARDDECLARE( ObjectPool );
76 void setMaxMemoryUsage(
size_t maxMemory );
79 size_t getMaxMemoryUsage()
const;
82 size_t memoryUsage()
const;
89 ConstObjectPtr retrieve(
const MurmurHash &hash )
const;
102 ConstObjectPtr store(
const Object *obj, StoreMode mode );
116 boost::shared_ptr<MemberData> m_data;
121 #endif // IECORE_OBJECTPOOL_H
Definition: ObjectPool.h:60
Definition: MurmurHash.h:64
StoreMode
Enum used to specify how to store the pointer passed to the store() function.
Definition: ObjectPool.h:92
Definition: RefCounted.h:124
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43