Apollo  6.0
Open source self driving car software
Public Member Functions | List of all members
apollo::planning::ThreadSafeIndexedList< I, T > Class Template Reference

#include <indexed_list.h>

Inheritance diagram for apollo::planning::ThreadSafeIndexedList< I, T >:
Inheritance graph
Collaboration diagram for apollo::planning::ThreadSafeIndexedList< I, T >:
Collaboration graph

Public Member Functions

T * Add (const I id, const T &object)
 
T * Find (const I id)
 
std::vector< const T * > Items () const
 
- Public Member Functions inherited from apollo::planning::IndexedList< I, T >
T * Add (const I id, const T &object)
 copy object into the container. If the id is already exist, overwrite the object in the container. More...
 
T * Find (const I id)
 Find object by id in the container. More...
 
const T * Find (const I id) const
 Find object by id in the container. More...
 
const std::vector< const T * > & Items () const
 List all the items in the container. More...
 
const std::unordered_map< I, T > & Dict () const
 List all the items in the container. More...
 
IndexedListoperator= (const IndexedList &other)
 Copy the container with objects. More...
 

Member Function Documentation

◆ Add()

template<typename I, typename T>
T* apollo::planning::ThreadSafeIndexedList< I, T >::Add ( const I  id,
const T &  object 
)
inline

◆ Find()

template<typename I, typename T>
T* apollo::planning::ThreadSafeIndexedList< I, T >::Find ( const I  id)
inline

◆ Items()

template<typename I, typename T>
std::vector<const T*> apollo::planning::ThreadSafeIndexedList< I, T >::Items ( ) const
inline

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