Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
FrameFactory Class Reference

#include <FrameFactory.h>

Collaboration diagram for FrameFactory:
Collaboration graph

Public Member Functions

 FrameFactory (framemetadata_sp metadata, size_t _maxConcurrentFrames=0)
 
virtual ~FrameFactory ()
 
frame_sp create (size_t size, boost::shared_ptr< FrameFactory > &mother)
 
frame_sp create (size_t size, boost::shared_ptr< FrameFactory > &mother, framemetadata_sp &metadata)
 
frame_sp create (boost::shared_ptr< FrameFactory > &mother)
 
frame_sp create (frame_sp &frame, size_t size, boost::shared_ptr< FrameFactory > &mother)
 
void destroy (Frame *pointer)
 
frame_sp getEOSFrame ()
 
size_t getNumberOfChunks (size_t size)
 
framemetadata_sp getFrameMetadata ()
 
void setMetadata (framemetadata_sp metadata)
 
frame_sp getEmptyFrame ()
 
std::string getPoolHealthRecord ()
 

Private Attributes

boost::object_pool< Frameframe_allocator
 
std::shared_ptr< HostAllocatormemory_allocator
 
frame_sp eosFrame
 
frame_sp emptyFrame
 
boost::mutex m_mutex
 
std::atomic_uint counter
 
std::atomic_size_t numberOfChunks
 
size_t maxConcurrentFrames
 
framemetadata_sp mMetadata
 

Constructor & Destructor Documentation

◆ FrameFactory()

FrameFactory::FrameFactory ( framemetadata_sp metadata,
size_t _maxConcurrentFrames = 0 )

◆ ~FrameFactory()

FrameFactory::~FrameFactory ( )
virtual

Member Function Documentation

◆ create() [1/4]

frame_sp FrameFactory::create ( boost::shared_ptr< FrameFactory > & mother)

◆ create() [2/4]

frame_sp FrameFactory::create ( frame_sp & frame,
size_t size,
boost::shared_ptr< FrameFactory > & mother )
Here is the call graph for this function:

◆ create() [3/4]

frame_sp FrameFactory::create ( size_t size,
boost::shared_ptr< FrameFactory > & mother )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ create() [4/4]

frame_sp FrameFactory::create ( size_t size,
boost::shared_ptr< FrameFactory > & mother,
framemetadata_sp & metadata )
Here is the call graph for this function:

◆ destroy()

void FrameFactory::destroy ( Frame * pointer)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEmptyFrame()

frame_sp FrameFactory::getEmptyFrame ( )
inline

◆ getEOSFrame()

frame_sp FrameFactory::getEOSFrame ( )
inline

◆ getFrameMetadata()

framemetadata_sp FrameFactory::getFrameMetadata ( )
inline

◆ getNumberOfChunks()

size_t FrameFactory::getNumberOfChunks ( size_t size)
Here is the caller graph for this function:

◆ getPoolHealthRecord()

std::string FrameFactory::getPoolHealthRecord ( )

◆ setMetadata()

void FrameFactory::setMetadata ( framemetadata_sp metadata)
inline

Member Data Documentation

◆ counter

std::atomic_uint FrameFactory::counter
private

◆ emptyFrame

frame_sp FrameFactory::emptyFrame
private

◆ eosFrame

frame_sp FrameFactory::eosFrame
private

◆ frame_allocator

boost::object_pool<Frame> FrameFactory::frame_allocator
private

◆ m_mutex

boost::mutex FrameFactory::m_mutex
private

◆ maxConcurrentFrames

size_t FrameFactory::maxConcurrentFrames
private

◆ memory_allocator

std::shared_ptr<HostAllocator> FrameFactory::memory_allocator
private

◆ mMetadata

framemetadata_sp FrameFactory::mMetadata
private

◆ numberOfChunks

std::atomic_size_t FrameFactory::numberOfChunks
private

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