Agrarsense
Public Member Functions | Public Attributes | List of all members
DVSEvent Struct Reference

#include <DVSEvent.h>

Public Member Functions

 DVSEvent ()=default
 Default constructor. More...
 
 DVSEvent (const DVSEvent &arg)
 Copy Constructor. More...
 
 DVSEvent (const DVSEvent &&arg)
 Moving constructor. More...
 
 DVSEvent (std::uint16_t x, std::uint16_t y, std::int32_t t, bool pol)
 Constructor. More...
 
DVSEventoperator= (const DVSEvent &other)
 Assignement operator. More...
 
DVSEventoperator= (const DVSEvent &&other)
 Move Assignement operator. More...
 
bool operator== (const DVSEvent &rhs) const
 
bool operator!= (const DVSEvent &rhs) const
 

Public Attributes

std::uint16_t x
 
std::uint16_t y
 
std::int32_t t
 
bool pol
 

Detailed Description

Definition at line 10 of file DVSEvent.h.

Constructor & Destructor Documentation

◆ DVSEvent() [1/4]

DVSEvent::DVSEvent ( )
default

Default constructor.

◆ DVSEvent() [2/4]

DVSEvent::DVSEvent ( const DVSEvent arg)
inline

Copy Constructor.

Definition at line 16 of file DVSEvent.h.

17 : x(arg.x), y(arg.y), t(arg.t), pol(arg.pol) {}
std::int32_t t
Definition: DVSEvent.h:62
std::uint16_t y
Definition: DVSEvent.h:61
bool pol
Definition: DVSEvent.h:63
std::uint16_t x
Definition: DVSEvent.h:60

◆ DVSEvent() [3/4]

DVSEvent::DVSEvent ( const DVSEvent &&  arg)
inline

Moving constructor.

Definition at line 20 of file DVSEvent.h.

21 : x(std::move(arg.x)),
22 y(std::move(arg.y)),
23 t(std::move(arg.t)),
24 pol(std::move(arg.pol)) {}

◆ DVSEvent() [4/4]

DVSEvent::DVSEvent ( std::uint16_t  x,
std::uint16_t  y,
std::int32_t  t,
bool  pol 
)
inline

Constructor.

Definition at line 27 of file DVSEvent.h.

28 : x(x), y(y), t(t), pol(pol) {}

Member Function Documentation

◆ operator!=()

bool DVSEvent::operator!= ( const DVSEvent rhs) const
inline

Definition at line 55 of file DVSEvent.h.

56 {
57 return !(*this == rhs);
58 }

◆ operator=() [1/2]

DVSEvent & DVSEvent::operator= ( const DVSEvent &&  other)
inline

Move Assignement operator.

Definition at line 41 of file DVSEvent.h.

42 {
43 x = std::move(other.x);
44 y = std::move(other.y);
45 t = std::move(other.t);
46 pol = std::move(other.pol);
47 return *this;
48 }

References pol, t, x, and y.

◆ operator=() [2/2]

DVSEvent & DVSEvent::operator= ( const DVSEvent other)
inline

Assignement operator.

Definition at line 31 of file DVSEvent.h.

32 {
33 x = other.x;
34 y = other.y;
35 t = other.t;
36 pol = other.pol;
37 return *this;
38 }

References pol, t, x, and y.

◆ operator==()

bool DVSEvent::operator== ( const DVSEvent rhs) const
inline

Definition at line 50 of file DVSEvent.h.

51 {
52 return (x == rhs.x) && (y == rhs.y) && (t == rhs.t) && (pol == rhs.pol);
53 }

References pol, t, x, and y.

Member Data Documentation

◆ pol

bool DVSEvent::pol

Definition at line 63 of file DVSEvent.h.

Referenced by operator=(), and operator==().

◆ t

std::int32_t DVSEvent::t

Definition at line 62 of file DVSEvent.h.

Referenced by operator=(), and operator==().

◆ x

std::uint16_t DVSEvent::x

Definition at line 60 of file DVSEvent.h.

Referenced by operator=(), and operator==().

◆ y

std::uint16_t DVSEvent::y

Definition at line 61 of file DVSEvent.h.

Referenced by operator=(), and operator==().


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