Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | List of all members
VW::details::object_pool_impl< T, TMutex, TFactory > Class Template Reference

#include <object_pool.h>

Public Member Functions

 object_pool_impl ()=default
 
 object_pool_impl (size_t initial_size, TFactory factory={})
 
 ~object_pool_impl ()
 
void return_object (T *obj)
 
void return_object (std::unique_ptr< T > obj)
 
std::unique_ptr< T > get_object ()
 
bool empty () const
 
size_t size () const
 
bool is_from_pool (const T *obj) const
 

Constructor & Destructor Documentation

◆ object_pool_impl() [1/2]

template<typename T , typename TMutex = null_mutex, typename TFactory = default_factory<T>>
VW::details::object_pool_impl< T, TMutex, TFactory >::object_pool_impl ( )
default

◆ object_pool_impl() [2/2]

template<typename T , typename TMutex = null_mutex, typename TFactory = default_factory<T>>
VW::details::object_pool_impl< T, TMutex, TFactory >::object_pool_impl ( size_t  initial_size,
TFactory  factory = {} 
)
inline

◆ ~object_pool_impl()

template<typename T , typename TMutex = null_mutex, typename TFactory = default_factory<T>>
VW::details::object_pool_impl< T, TMutex, TFactory >::~object_pool_impl ( )
inline

Member Function Documentation

◆ empty()

template<typename T , typename TMutex = null_mutex, typename TFactory = default_factory<T>>
bool VW::details::object_pool_impl< T, TMutex, TFactory >::empty ( ) const
inline

◆ get_object()

template<typename T , typename TMutex = null_mutex, typename TFactory = default_factory<T>>
std::unique_ptr< T > VW::details::object_pool_impl< T, TMutex, TFactory >::get_object ( )
inline

◆ is_from_pool()

template<typename T , typename TMutex = null_mutex, typename TFactory = default_factory<T>>
bool VW::details::object_pool_impl< T, TMutex, TFactory >::is_from_pool ( const T *  obj) const
inline
Deprecated:
"Pools will no longer be able to check if an object is from the pool in VW 10."

◆ return_object() [1/2]

template<typename T , typename TMutex = null_mutex, typename TFactory = default_factory<T>>
void VW::details::object_pool_impl< T, TMutex, TFactory >::return_object ( std::unique_ptr< T >  obj)
inline

◆ return_object() [2/2]

template<typename T , typename TMutex = null_mutex, typename TFactory = default_factory<T>>
void VW::details::object_pool_impl< T, TMutex, TFactory >::return_object ( T *  obj)
inline

◆ size()

template<typename T , typename TMutex = null_mutex, typename TFactory = default_factory<T>>
size_t VW::details::object_pool_impl< T, TMutex, TFactory >::size ( ) const
inline

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