ONE - On-device Neural Engine
Loading...
Searching...
No Matches
coco::Padding2D Class Reference

#include <Padding2D.h>

Public Member Functions

 Padding2D ()
 
 Padding2D (uint32_t top, uint32_t bottom, uint32_t left, uint32_t right)
 
uint32_t top (void) const
 
Padding2Dtop (uint32_t value)
 
uint32_t bottom (void) const
 
Padding2Dbottom (uint32_t value)
 
uint32_t left (void) const
 
Padding2Dleft (uint32_t value)
 
uint32_t right (void) const
 
Padding2Dright (uint32_t value)
 

Detailed Description

Definition at line 25 of file Padding2D.h.

Constructor & Destructor Documentation

◆ Padding2D() [1/2]

coco::Padding2D::Padding2D ( )
inline

Definition at line 28 of file Padding2D.h.

28 : _top{0}, _bottom{0}, _left{0}, _right{0}
29 {
30 // DO NOTHING
31 }

◆ Padding2D() [2/2]

coco::Padding2D::Padding2D ( uint32_t  top,
uint32_t  bottom,
uint32_t  left,
uint32_t  right 
)
inline

Definition at line 34 of file Padding2D.h.

35 : _top{top}, _bottom{bottom}, _left{left}, _right{right}
36 {
37 // DO NOTHING
38 }
uint32_t left(void) const
Definition Padding2D.h:49
uint32_t right(void) const
Definition Padding2D.h:53
uint32_t top(void) const
Definition Padding2D.h:41
uint32_t bottom(void) const
Definition Padding2D.h:45

Member Function Documentation

◆ bottom() [1/2]

Padding2D & coco::Padding2D::bottom ( uint32_t  value)

Definition at line 28 of file Padding2D.cpp.

29{
30 _bottom = value;
31 return (*this);
32}

◆ bottom() [2/2]

uint32_t coco::Padding2D::bottom ( void  ) const
inline

◆ left() [1/2]

Padding2D & coco::Padding2D::left ( uint32_t  value)

Definition at line 34 of file Padding2D.cpp.

35{
36 _left = value;
37 return (*this);
38}

◆ left() [2/2]

◆ right() [1/2]

Padding2D & coco::Padding2D::right ( uint32_t  value)

Definition at line 40 of file Padding2D.cpp.

41{
42 _right = value;
43 return (*this);
44}

◆ right() [2/2]

uint32_t coco::Padding2D::right ( void  ) const
inline

◆ top() [1/2]

Padding2D & coco::Padding2D::top ( uint32_t  value)

Definition at line 22 of file Padding2D.cpp.

23{
24 _top = value;
25 return (*this);
26}

◆ top() [2/2]


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