0.2.0
Loading...
Searching...
No Matches
NAV::Pin::Kind Struct Reference

Kind of the Pin (Input/Output) More...

Public Types

enum  Value : uint8_t {
  None ,
  Output ,
  Input
}
 Kind of the Pin (Input/Output) More...
 

Public Member Functions

 Kind ()=default
 Default Constructor.
 
 Kind (const std::string &kindString)
 Constructor from std::string.
 
constexpr Kind (Value kind)
 Implicit Constructor from Value type.
 
 operator bool ()=delete
 Prevent usage: if(pin)
 
 operator std::string () const
 std::string conversion operator
 
 operator Value () const
 Allow switch(Node::Value(kind)) and comparisons.
 
Kindoperator= (Value v)
 Assignment operator from Value type.
 

Detailed Description

Kind of the Pin (Input/Output)

Member Enumeration Documentation

◆ Value

enum NAV::Pin::Kind::Value : uint8_t

Kind of the Pin (Input/Output)

Enumerator
None 

None.

Output 

Output Pin.

Input 

Input Pin.

Constructor & Destructor Documentation

◆ Kind() [1/2]

constexpr NAV::Pin::Kind::Kind ( Value kind)
inlineconstexpr

Implicit Constructor from Value type.

Parameters
[in]kindValue type to construct from

◆ Kind() [2/2]

NAV::Pin::Kind::Kind ( const std::string & kindString)
inlineexplicit

Constructor from std::string.

Parameters
[in]kindStringString representation of the type

Member Function Documentation

◆ operator std::string()

NAV::Pin::Kind::operator std::string ( ) const
inlineexplicit

std::string conversion operator

Returns
A std::string representation of the pin kind

◆ operator=()

Kind & NAV::Pin::Kind::operator= ( Value v)
inline

Assignment operator from Value type.

Parameters
[in]vValue type to construct from
Returns
The Kind type from the value type

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