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

A class for member functions. More...

#include <ArtifactModel.h>

Collaboration diagram for nnc::ArtifactClassFunction:

Public Member Functions

 ArtifactClassFunction (const ArtifactClass *owner, const std::string &ret_type_name, const std::string &func_name, const std::list< std::shared_ptr< ArtifactVariable > > &params={})
 
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.
 
- Public Member Functions inherited from nnc::ArtifactClassMember
 ArtifactClassMember (const ArtifactClass *owner)
 
const ArtifactClassowner () const
 
- Public Member Functions inherited from nnc::ArtifactFunction
 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 ArtifactBlockgetBlock () const
 
ArtifactBlockgetBlock ()
 
- 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
 
- Protected Attributes inherited from nnc::ArtifactClassMember
const ArtifactClass_owner
 

Detailed Description

A class for member functions.

Definition at line 581 of file ArtifactModel.h.

Constructor & Destructor Documentation

◆ ArtifactClassFunction()

nnc::ArtifactClassFunction::ArtifactClassFunction ( const ArtifactClass owner,
const std::string &  ret_type_name,
const std::string &  func_name,
const std::list< std::shared_ptr< ArtifactVariable > > &  params = {} 
)
inline

Definition at line 584 of file ArtifactModel.h.

586 {})
587 : ArtifactClassMember(owner), ArtifactFunction(ret_type_name, func_name, params)
588 {
589 }
const ArtifactClass * owner() const
ArtifactClassMember(const ArtifactClass *owner)
ArtifactFunction(std::string ret_type_name, const std::string &func_name, std::list< std::shared_ptr< ArtifactVariable > > params={})
Constructs a function object.

Member Function Documentation

◆ accept()

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

591{ g->visit(this); }

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