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

Represents an entity with semantics of C/C++ dereference (*) operator. More...

#include <ArtifactModel.h>

Collaboration diagram for nnc::ArtifactDeref:

Public Member Functions

 ArtifactDeref (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 of C/C++ dereference (*) operator.

Definition at line 153 of file ArtifactModel.h.

Constructor & Destructor Documentation

◆ ArtifactDeref()

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

Definition at line 156 of file ArtifactModel.h.

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

Member Function Documentation

◆ accept()

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

158{ g->visit(this); }

◆ obj()

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

Definition at line 160 of file ArtifactModel.h.

160{ return _ref; }

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


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