ONE - On-device Neural Engine
Loading...
Searching...
No Matches
loco::FixedArity< N >::Mixin< Base > Class Template Reference

#include <NodeMixins.h>

Collaboration diagram for loco::FixedArity< N >::Mixin< Base >:

Public Member Functions

 Mixin ()
 
virtual ~Mixin ()=default
 
uint32_t arity (void) const final
 
Nodearg (uint32_t n) const final
 
void drop (void) final
 

Protected Member Functions

Useat (uint32_t n) const
 

Detailed Description

template<uint32_t N>
template<typename Base>
class loco::FixedArity< N >::Mixin< Base >

Definition at line 88 of file NodeMixins.h.

Constructor & Destructor Documentation

◆ Mixin()

template<uint32_t N>
template<typename Base >
loco::FixedArity< N >::Mixin< Base >::Mixin ( )
inline

Definition at line 91 of file NodeMixins.h.

92 {
93 for (uint32_t n = 0; n < N; ++n)
94 {
95 _args[n] = std::unique_ptr<Use>{new Use{this}};
96 }
97 }

◆ ~Mixin()

template<uint32_t N>
template<typename Base >
virtual loco::FixedArity< N >::Mixin< Base >::~Mixin ( )
virtualdefault

Member Function Documentation

◆ arg()

template<uint32_t N>
template<typename Base >
Node * loco::FixedArity< N >::Mixin< Base >::arg ( uint32_t  n) const
inlinefinal

Definition at line 104 of file NodeMixins.h.

104{ return _args.at(n)->node(); }

◆ arity()

template<uint32_t N>
template<typename Base >
uint32_t loco::FixedArity< N >::Mixin< Base >::arity ( void  ) const
inlinefinal

Definition at line 102 of file NodeMixins.h.

102{ return N; }

◆ at()

template<uint32_t N>
template<typename Base >
Use * loco::FixedArity< N >::Mixin< Base >::at ( uint32_t  n) const
inlineprotected

Definition at line 116 of file NodeMixins.h.

116{ return _args.at(n).get(); }

◆ drop()

template<uint32_t N>
template<typename Base >
void loco::FixedArity< N >::Mixin< Base >::drop ( void  )
inlinefinal

Definition at line 106 of file NodeMixins.h.

107 {
108 for (uint32_t n = 0; n < N; ++n)
109 {
110 _args.at(n)->node(nullptr);
111 }
112 }

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