ONE - On-device Neural Engine
|
Represents a function. More...
#include <ArtifactModel.h>
Public Member Functions | |
ArtifactFunction (std::string ret_type_name, const std::string &func_name, std::list< std::shared_ptr< ArtifactVariable > > params={}) | |
Constructs a function object. | |
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. | |
const std::list< std::shared_ptr< ArtifactVariable > > & | getParameters () const |
const std::string & | getRetTypeName () const |
const ArtifactBlock * | getBlock () const |
ArtifactBlock * | getBlock () |
Public Member Functions inherited from nnc::ArtifactNamed | |
ArtifactNamed (std::string name) | |
const std::string & | name () 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 | |
Represents a function.
Definition at line 519 of file ArtifactModel.h.
|
inline |
Constructs a function object.
ret_type_name | - the name of the returned type |
func_name | - the function name. |
params | - the parameter list. |
Definition at line 528 of file ArtifactModel.h.
|
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 534 of file ArtifactModel.h.
Referenced by TEST().
|
inline |
Definition at line 539 of file ArtifactModel.h.
|
inline |
Definition at line 538 of file ArtifactModel.h.
Referenced by nnc::ArtifactGeneratorCppCode::visit().
|
inline |
Definition at line 536 of file ArtifactModel.h.
Referenced by nnc::ArtifactGeneratorCppCode::visit(), nnc::ArtifactGeneratorCppDecl::visit(), and nnc::ArtifactGeneratorCppDecl::visit().
|
inline |
Definition at line 537 of file ArtifactModel.h.
Referenced by nnc::ArtifactGeneratorCppCode::visit(), nnc::ArtifactGeneratorCppDecl::visit(), and nnc::ArtifactGeneratorCppDecl::visit().