ONE - On-device Neural Engine
Loading...
Searching...
No Matches
coco::InputManager Class Referencefinal

#include <InputManager.h>

Collaboration diagram for coco::InputManager:

Public Member Functions

 InputManager (Module *m=nullptr)
 
Inputcreate (const nncc::core::ADT::tensor::Shape &)
 
- Public Member Functions inherited from coco::PtrManager< Input >
uint32_t size (void) const
 Return the number of managed objects.
 
Inputat (uint32_t n) const
 
- Public Member Functions inherited from coco::EntityBuilder
virtual ~EntityBuilder ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from coco::PtrManager< Input >
U * take (std::unique_ptr< U > &&o)
 
std::unique_ptr< Inputrelease (Input *ptr)
 
- Protected Member Functions inherited from coco::EntityBuilder
Modulemodule (void) const
 
void module (Module *m)
 
void modulize (Entity *entity) const
 

Detailed Description

Definition at line 28 of file InputManager.h.

Constructor & Destructor Documentation

◆ InputManager()

coco::InputManager::InputManager ( Module m = nullptr)
inline

Definition at line 31 of file InputManager.h.

31{ module(m); }
Module * module(void) const

References m, and coco::EntityBuilder::module().

Member Function Documentation

◆ create()

Input * coco::InputManager::create ( const nncc::core::ADT::tensor::Shape shape)

Definition at line 24 of file InputManager.cpp.

25{
26 auto input = std::make_unique<Input>(shape);
27 modulize(input.get());
28 return take(std::move(input));
29}
void modulize(Entity *entity) const
U * take(std::unique_ptr< U > &&o)
Definition PtrManager.h:38

References coco::EntityBuilder::modulize(), and coco::PtrManager< Input >::take().


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