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

A pool of Types. More...

#include <pool.h>

+ Inheritance diagram for cerata::TypePool:
+ Collaboration diagram for cerata::TypePool:

Additional Inherited Members

- Public Member Functions inherited from cerata::Pool< Type >
void Add (const std::shared_ptr< Type > &object)
 Add an object to the pool, taking shared ownership. Object may not already exist in the pool.
 
std::optional< Type * > 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< Type >
std::vector< std::shared_ptr< Type > > objects_
 A list of objects that this pool owns.
 

Detailed Description

A pool of Types.

Definition at line 83 of file pool.h.


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