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

Represents an entity with semantics like C/C++ address of (&) operator. More...

#include <ArtifactModel.h>

Collaboration diagram for nnc::ArtifactRef:

Public Member Functions

 ArtifactRef (std::shared_ptr< ArtifactExpr > ref)
 
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< ArtifactExprobj () 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

Represents an entity with semantics like C/C++ address of (&) operator.

Definition at line 137 of file ArtifactModel.h.

Constructor & Destructor Documentation

◆ ArtifactRef()

nnc::ArtifactRef::ArtifactRef ( std::shared_ptr< ArtifactExpr ref)
inlineexplicit

Definition at line 140 of file ArtifactModel.h.

140: _ref(std::move(ref)) {}

Member Function Documentation

◆ accept()

void nnc::ArtifactRef::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 142 of file ArtifactModel.h.

142{ g->visit(this); }

◆ obj()

std::shared_ptr< ArtifactExpr > nnc::ArtifactRef::obj ( ) const
inline

Definition at line 144 of file ArtifactModel.h.

144{ return _ref; }

Referenced by nnc::ArtifactGeneratorCppCode::visit(), and nnc::ArtifactGeneratorCppDecl::visit().


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