ONE - On-device Neural Engine
Loading...
Searching...
No Matches
PaddingBase< Derived > Class Template Reference

A PaddingBase encapsulates common implementation for derived Padding classes. More...

#include <Padding.h>

Public Member Functions

virtual ~PaddingBase ()=default
 
uint32_t count (void) const
 
uint32_t & value (uint32_t n)
 
const uint32_t & value (uint32_t n) const
 
void resize (uint32_t len)
 

Detailed Description

template<typename Derived>
class PaddingBase< Derived >

A PaddingBase encapsulates common implementation for derived Padding classes.

Definition at line 30 of file Padding.h.

Constructor & Destructor Documentation

◆ ~PaddingBase()

template<typename Derived >
virtual PaddingBase< Derived >::~PaddingBase ( )
virtualdefault

Member Function Documentation

◆ count()

template<typename Derived >
uint32_t PaddingBase< Derived >::count ( void  ) const
inline

Definition at line 36 of file Padding.h.

36{ return _values.size(); }

Referenced by SpatialPaddingBuilder::with().

◆ resize()

template<typename Derived >
void PaddingBase< Derived >::resize ( uint32_t  len)
inline

Definition at line 43 of file Padding.h.

43{ return _values.resize(len); }

Referenced by build_spatial_padding(), and SpatialPaddingBuilder::with().

◆ value() [1/2]

template<typename Derived >
uint32_t & PaddingBase< Derived >::value ( uint32_t  n)
inline

◆ value() [2/2]

template<typename Derived >
const uint32_t & PaddingBase< Derived >::value ( uint32_t  n) const
inline

Definition at line 40 of file Padding.h.

40{ return _values.at(n); }

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