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

Type of the data on the Pin. More...

Public Types

enum  Value : uint8_t {
  None ,
  Flow ,
  Bool ,
  Int ,
  Float ,
  String ,
  Object ,
  Matrix ,
  Delegate
}
 Type of the data on the Pin. More...
 

Public Member Functions

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

Detailed Description

Type of the data on the Pin.

Member Enumeration Documentation

◆ Value

Type of the data on the Pin.

Enumerator
None 

Not initialized.

Flow 

NodeData Trigger.

Bool 

Boolean.

Int 

Integer Number.

Float 

Floating Point Number.

String 

std::string

Object 

Generic Object.

Matrix 

Matrix Object.

Delegate 

Reference to the Node object.

Constructor & Destructor Documentation

◆ Type() [1/2]

constexpr NAV::Pin::Type::Type ( Value type)
inlineconstexpr

Implicit Constructor from Value type.

Parameters
[in]typeValue type to construct from

◆ Type() [2/2]

NAV::Pin::Type::Type ( const std::string & typeString)
inlineexplicit

Constructor from std::string.

Parameters
[in]typeStringString representation of the type

Member Function Documentation

◆ operator std::string()

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

std::string conversion operator

Returns
A std::string representation of the pin type

◆ operator=()

Assignment operator from Value type.

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

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