libgpiod
Public Member Functions | List of all members
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...
 
 ~offset ()=default
 
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. More...
 

Detailed Description

Wrapper around unsigned int for representing line offsets.

Constructor & Destructor Documentation

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

Constructor with implicit conversion from unsigned int.

Parameters
offLine offset.
gpiod::line::offset::offset ( const offset other)
default

Copy constructor.

Parameters
otherObject to copy.
gpiod::line::offset::offset ( offset &&  other)
default

Move constructor.

Parameters
otherObject to move.
gpiod::line::offset::~offset ( )
default

Member Function Documentation

gpiod::line::offset::operator unsigned int ( ) const
inlinenoexcept

Conversion operator to unsigned int.

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

Assignment operator.

Parameters
otherObject to copy.
Returns
Reference to self.
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: