Apollo  6.0
Open source self driving car software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
apollo::perception::base::BaseObjectPool< ObjectType > Class Template Referenceabstract

#include <object_pool.h>

Inheritance diagram for apollo::perception::base::BaseObjectPool< ObjectType >:
Inheritance graph
Collaboration diagram for apollo::perception::base::BaseObjectPool< ObjectType >:
Collaboration graph

Public Member Functions

 BaseObjectPool ()=default
 
virtual ~BaseObjectPool ()=default
 
virtual std::shared_ptr< ObjectTypeGet ()=0
 
virtual void BatchGet (size_t num, std::vector< std::shared_ptr< ObjectType >> *data)=0
 
virtual void BatchGet (size_t num, bool is_front, std::list< std::shared_ptr< ObjectType >> *data)=0
 
virtual void BatchGet (size_t num, bool is_front, std::deque< std::shared_ptr< ObjectType >> *data)=0
 
virtual void set_capacity (size_t capacity)
 
size_t get_capacity ()
 
virtual size_t RemainedNum ()
 

Protected Member Functions

 BaseObjectPool (const BaseObjectPool &rhs)=delete
 
BaseObjectPooloperator= (const BaseObjectPool &rhs)=delete
 

Protected Attributes

size_t capacity_ = 0
 

Constructor & Destructor Documentation

◆ BaseObjectPool() [1/2]

template<class ObjectType >
apollo::perception::base::BaseObjectPool< ObjectType >::BaseObjectPool ( )
default

◆ ~BaseObjectPool()

template<class ObjectType >
virtual apollo::perception::base::BaseObjectPool< ObjectType >::~BaseObjectPool ( )
virtualdefault

◆ BaseObjectPool() [2/2]

template<class ObjectType >
apollo::perception::base::BaseObjectPool< ObjectType >::BaseObjectPool ( const BaseObjectPool< ObjectType > &  rhs)
protecteddelete

Member Function Documentation

◆ BatchGet() [1/3]

template<class ObjectType >
virtual void apollo::perception::base::BaseObjectPool< ObjectType >::BatchGet ( size_t  num,
std::vector< std::shared_ptr< ObjectType >> *  data 
)
pure virtual

◆ BatchGet() [2/3]

template<class ObjectType >
virtual void apollo::perception::base::BaseObjectPool< ObjectType >::BatchGet ( size_t  num,
bool  is_front,
std::list< std::shared_ptr< ObjectType >> *  data 
)
pure virtual

◆ BatchGet() [3/3]

template<class ObjectType >
virtual void apollo::perception::base::BaseObjectPool< ObjectType >::BatchGet ( size_t  num,
bool  is_front,
std::deque< std::shared_ptr< ObjectType >> *  data 
)
pure virtual

◆ Get()

template<class ObjectType >
virtual std::shared_ptr<ObjectType> apollo::perception::base::BaseObjectPool< ObjectType >::Get ( )
pure virtual

◆ get_capacity()

template<class ObjectType >
size_t apollo::perception::base::BaseObjectPool< ObjectType >::get_capacity ( )
inline

◆ operator=()

template<class ObjectType >
BaseObjectPool& apollo::perception::base::BaseObjectPool< ObjectType >::operator= ( const BaseObjectPool< ObjectType > &  rhs)
protecteddelete

◆ RemainedNum()

template<class ObjectType >
virtual size_t apollo::perception::base::BaseObjectPool< ObjectType >::RemainedNum ( )
inlinevirtual

◆ set_capacity()

template<class ObjectType >
virtual void apollo::perception::base::BaseObjectPool< ObjectType >::set_capacity ( size_t  capacity)
inlinevirtual

Member Data Documentation

◆ capacity_

template<class ObjectType >
size_t apollo::perception::base::BaseObjectPool< ObjectType >::capacity_ = 0
protected

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