Class mediapipe::ReusablePool
template <class Item>
ClassList > mediapipe > ReusablePool
Inherits the following classes: std::enable_shared_from_this< ReusablePool< Item > >
Inherited by the following classes: mediapipe::GlTextureBufferPool
Public Types
Type | Name |
---|---|
typedef absl::AnyInvocable< absl::StatusOr< std::unique_ptr< Item > >() const > | ItemFactory |
Public Functions
Type | Name |
---|---|
absl::StatusOr< std::shared_ptr< Item > > | GetBuffer () |
std::pair< int, int > | GetInUseAndAvailableCounts () |
Public Static Functions
Type | Name |
---|---|
std::shared_ptr< ReusablePool< Item > > | Create (ItemFactory item_factory, const MultiPoolOptions & options) |
Protected Functions
Type | Name |
---|---|
ReusablePool (ItemFactory item_factory, const MultiPoolOptions & options) |
Public Types Documentation
typedef ItemFactory
using mediapipe::ReusablePool< Item >::ItemFactory = absl::AnyInvocable<absl::StatusOr<std::unique_ptr<Item> >() const>;
Public Functions Documentation
function GetBuffer
inline absl::StatusOr< std::shared_ptr< Item > > mediapipe::ReusablePool::GetBuffer ()
function GetInUseAndAvailableCounts
inline std::pair< int, int > mediapipe::ReusablePool::GetInUseAndAvailableCounts ()
Public Static Functions Documentation
function Create
static inline std::shared_ptr< ReusablePool< Item > > mediapipe::ReusablePool::Create (
ItemFactory item_factory,
const MultiPoolOptions & options
)
Protected Functions Documentation
function ReusablePool
inline mediapipe::ReusablePool::ReusablePool (
ItemFactory item_factory,
const MultiPoolOptions & options
)
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/gpu/reusable_pool.h