libgpiod
Public Member Functions | List of all members
gpiod::chip_info Class Referencefinal

Represents an immutable snapshot of GPIO chip information. More...

#include <chip-info.hpp>

Public Member Functions

 chip_info (const chip_info &other)
 Copy constructor. More...
 
 chip_info (chip_info &&other) noexcept
 Move constructor. More...
 
 ~chip_info ()
 
chip_infooperator= (const chip_info &other)
 Assignment operator. More...
 
chip_infooperator= (chip_info &&other) noexcept
 Move assignment operator. More...
 
::std::string name () const noexcept
 Get the name of this GPIO chip. More...
 
::std::string label () const noexcept
 Get the label of this GPIO chip. More...
 
::std::size_t num_lines () const noexcept
 Return the number of lines exposed by this chip. More...
 

Detailed Description

Represents an immutable snapshot of GPIO chip information.

Constructor & Destructor Documentation

gpiod::chip_info::chip_info ( const chip_info other)

Copy constructor.

Parameters
otherObject to copy.
gpiod::chip_info::chip_info ( chip_info &&  other)
noexcept

Move constructor.

Parameters
otherObject to move.
gpiod::chip_info::~chip_info ( )

Member Function Documentation

::std::string gpiod::chip_info::label ( ) const
noexcept

Get the label of this GPIO chip.

Returns
String containing the chip name.
::std::string gpiod::chip_info::name ( ) const
noexcept

Get the name of this GPIO chip.

Returns
String containing the chip name.
::std::size_t gpiod::chip_info::num_lines ( ) const
noexcept

Return the number of lines exposed by this chip.

Returns
Number of lines.
chip_info& gpiod::chip_info::operator= ( const chip_info other)

Assignment operator.

Parameters
otherObject to copy.
Returns
Reference to self.
chip_info& gpiod::chip_info::operator= ( chip_info &&  other)
noexcept

Move assignment operator.

Parameters
otherObject to move.
Returns
Reference to self.

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