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

A class member variables. More...

#include <ArtifactModel.h>

Collaboration diagram for nnc::ArtifactClassVariable:

Public Member Functions

 ArtifactClassVariable (const ArtifactClass *owner, const std::string &type_name, const std::string &var_name, const std::list< std::shared_ptr< ArtifactExpr > > &dimensions={}, const std::list< std::shared_ptr< ArtifactExpr > > &initializers={})
 
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::ArtifactVariable
 ArtifactVariable (std::string type_name, std::string var_name, std::list< std::shared_ptr< ArtifactExpr > > dimensions={}, std::list< std::shared_ptr< ArtifactExpr > > initializers={})
 
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::string & typeName () const
 
const std::list< std::shared_ptr< ArtifactExpr > > & getDimensions () const
 
const std::list< std::shared_ptr< ArtifactExpr > > & getInitializers () const
 
std::shared_ptr< ArtifactIduse ()
 
- 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 member variables.

Definition at line 564 of file ArtifactModel.h.

Constructor & Destructor Documentation

◆ ArtifactClassVariable()

nnc::ArtifactClassVariable::ArtifactClassVariable ( const ArtifactClass owner,
const std::string &  type_name,
const std::string &  var_name,
const std::list< std::shared_ptr< ArtifactExpr > > &  dimensions = {},
const std::list< std::shared_ptr< ArtifactExpr > > &  initializers = {} 
)
inline

Definition at line 567 of file ArtifactModel.h.

569 {},
570 const std::list<std::shared_ptr<ArtifactExpr>> &initializers = {})
571 : ArtifactClassMember(owner), ArtifactVariable(type_name, var_name, dimensions, initializers)
572 {
573 }
const ArtifactClass * owner() const
ArtifactClassMember(const ArtifactClass *owner)
ArtifactVariable(std::string type_name, std::string var_name, std::list< std::shared_ptr< ArtifactExpr > > dimensions={}, std::list< std::shared_ptr< ArtifactExpr > > initializers={})

Member Function Documentation

◆ accept()

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

575{ g->visit(this); }

Referenced by TEST().


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