Lines Matching defs:ObjectPool
85 // ObjectPool template class. This class keeps track of C++ instances that are
91 class ObjectPool {
93 // Create a new ObjectPool for a specific object type. Pass the path to the
98 instance_ = new ObjectPool<T>(jclass_name, id_fld_name);
102 static ObjectPool* Instance() {
185 explicit ObjectPool(const std::string& jclass_name,
193 static ObjectPool* instance_;
200 DISALLOW_COPY_AND_ASSIGN(ObjectPool);
203 template<typename T> ObjectPool<T>* ObjectPool<T>::instance_ = NULL;
213 ObjectPool<T>* pool = ObjectPool<T>::Instance();
222 ObjectPool<T>* pool = ObjectPool<T>::Instance();
236 ObjectPool<T>* pool = ObjectPool<T>::Instance();
246 ObjectPool<T>* pool = ObjectPool<T>::Instance();