libgpiod  2.0.1
Public Member Functions
gpiod::line::offset Class Reference

Wrapper around unsigned int for representing line offsets. More...

#include <line.hpp>

Public Member Functions

 offset (unsigned int off=0)
 Constructor with implicit conversion from unsigned int. More...
 
 offset (const offset &other)=default
 Copy constructor. More...
 
 offset (offset &&other)=default
 Move constructor. More...
 
offsetoperator= (const offset &other)=default
 Assignment operator. More...
 
offsetoperator= (offset &&other) noexcept=default
 Move assignment operator. More...
 
 operator unsigned int () const noexcept
 Conversion operator to unsigned int.
 

Detailed Description

Wrapper around unsigned int for representing line offsets.

Definition at line 34 of file line.hpp.

Constructor & Destructor Documentation

◆ offset() [1/3]

gpiod::line::offset::offset ( unsigned int  off = 0)
inline

Constructor with implicit conversion from unsigned int.

Parameters
offLine offset.

Definition at line 41 of file line.hpp.

◆ offset() [2/3]

gpiod::line::offset::offset ( const offset other)
default

Copy constructor.

Parameters
otherObject to copy.

◆ offset() [3/3]

gpiod::line::offset::offset ( offset &&  other)
default

Move constructor.

Parameters
otherObject to move.

Member Function Documentation

◆ operator=() [1/2]

offset& gpiod::line::offset::operator= ( const offset other)
default

Assignment operator.

Parameters
otherObject to copy.
Returns
Reference to self.

◆ operator=() [2/2]

offset& gpiod::line::offset::operator= ( offset &&  other)
defaultnoexcept

Move assignment operator.

Parameters
otherObject to move.
Returns
Reference to self.

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