ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnc::ArtifactIndex Class Reference

Array index access. More...

#include <ArtifactModel.h>

Collaboration diagram for nnc::ArtifactIndex:

Public Member Functions

 ArtifactIndex (std::shared_ptr< ArtifactExpr > expr, std::shared_ptr< ArtifactExpr > ind)
 
void accept (IArtifactGenerator *g) const override
 This is the core function of each artifact entity and is implemented by all concrete classes in the hierarchy.
 
std::shared_ptr< ArtifactExprgetExpr () const
 
std::shared_ptr< ArtifactExprgetInd () const
 
- Public Member Functions inherited from nnc::ArtifactEntity
virtual ~ArtifactEntity ()=default
 
virtual bool isBlock () const
 If this entity represents something containing a block of instructions.
 

Additional Inherited Members

- Protected Member Functions inherited from nnc::ArtifactEntity
 ArtifactEntity ()=default
 

Detailed Description

Array index access.

Definition at line 270 of file ArtifactModel.h.

Constructor & Destructor Documentation

◆ ArtifactIndex()

nnc::ArtifactIndex::ArtifactIndex ( std::shared_ptr< ArtifactExpr expr,
std::shared_ptr< ArtifactExpr ind 
)
inline

Definition at line 273 of file ArtifactModel.h.

274 : _expr(std::move(expr)), _ind(std::move(ind))
275 {
276 }

Member Function Documentation

◆ accept()

void nnc::ArtifactIndex::accept ( IArtifactGenerator g) const
inlineoverridevirtual

This is the core function of each artifact entity and is implemented by all concrete classes in the hierarchy.

Implements nnc::ArtifactEntity.

Definition at line 278 of file ArtifactModel.h.

278{ g->visit(this); }

◆ getExpr()

std::shared_ptr< ArtifactExpr > nnc::ArtifactIndex::getExpr ( ) const
inline

Definition at line 280 of file ArtifactModel.h.

280{ return _expr; }

Referenced by nnc::ArtifactGeneratorCppCode::visit().

◆ getInd()

std::shared_ptr< ArtifactExpr > nnc::ArtifactIndex::getInd ( ) const
inline

Definition at line 281 of file ArtifactModel.h.

281{ return _ind; }

Referenced by nnc::ArtifactGeneratorCppCode::visit().


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