Cerata
A library to generate structural hardware designs
cerata::ComponentPool Class Reference

A pool of Components. More...

#include <pool.h>

+ Inheritance diagram for cerata::ComponentPool:
+ Collaboration diagram for cerata::ComponentPool:

Additional Inherited Members

- Public Member Functions inherited from cerata::Pool< Component >
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.
 
- Protected Attributes inherited from cerata::Pool< Component >
std::vector< std::shared_ptr< Component > > objects_
 A list of objects that this pool owns.
 

Detailed Description

A pool of Components.

Definition at line 86 of file pool.h.


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