ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nest::DomainContext Class Reference

#include <DomainContext.h>

Public Member Functions

uint32_t count (void) const
 
Domain make (std::initializer_list< uint32_t > dims)
 
const DomainInfoinfo (const Domain &) const
 

Detailed Description

Definition at line 28 of file DomainContext.h.

Member Function Documentation

◆ count()

uint32_t nest::DomainContext::count ( void  ) const

Definition at line 22 of file DomainContext.cpp.

22{ return _info.size(); }

Referenced by make().

◆ info()

const DomainInfo & nest::DomainContext::info ( const Domain dom) const

Definition at line 33 of file DomainContext.cpp.

34{
35 return _info.at(dom.id().value());
36}

References nest::Domain::id(), and nest::DomainID::value().

◆ make()

Domain nest::DomainContext::make ( std::initializer_list< uint32_t >  dims)

Definition at line 24 of file DomainContext.cpp.

25{
26 const DomainID domain_id{count()};
27
28 _info.emplace_back(dims);
29
30 return Domain{domain_id};
31}
uint32_t count(void) const
Domain
Describe the kind of (N-dimensional) loco values.
Definition Domain.h:40

References count().

Referenced by main().


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