Vowpal Wabbit
Public Member Functions | List of all members
VW::object_pool< T, TInitializer, TCleanup > Struct Template Reference

#include <object_pool.h>

Public Member Functions

 object_pool ()=default
 
 object_pool (size_t initial_chunk_size, TInitializer initializer={}, size_t chunk_size=8)
 
void return_object (T *obj)
 
T * get_object ()
 
bool empty () const
 
size_t size () const
 
bool is_from_pool (T *obj) const
 

Constructor & Destructor Documentation

template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
VW::object_pool< T, TInitializer, TCleanup >::object_pool ( )
default
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
VW::object_pool< T, TInitializer, TCleanup >::object_pool ( size_t  initial_chunk_size,
TInitializer  initializer = {},
size_t  chunk_size = 8 
)
inline

Member Function Documentation

template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
bool VW::object_pool< T, TInitializer, TCleanup >::empty ( ) const
inline
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
T* VW::object_pool< T, TInitializer, TCleanup >::get_object ( )
inline
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
bool VW::object_pool< T, TInitializer, TCleanup >::is_from_pool ( T *  obj) const
inline
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
void VW::object_pool< T, TInitializer, TCleanup >::return_object ( T *  obj)
inline
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
size_t VW::object_pool< T, TInitializer, TCleanup >::size ( ) const
inline

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