Cerata
A library to generate structural hardware designs
|
A pool of Components. More...
#include <pool.h>
Additional Inherited Members | |
![]() | |
void | Add (const std::shared_ptr< Component > &object) |
Add an object to the pool, taking shared ownership. Object may not already exist in the pool. | |
std::optional< Component * > | Get (const std::string &name) |
Retrieve a component from the pool by name, if it exists. Returns empty option otherwise. | |
void | Clear () |
Release ownership of all components. | |
![]() | |
std::vector< std::shared_ptr< Component > > | objects_ |
A list of objects that this pool owns. | |