Kind information class.
More...
|
| Kind ()=default |
| Default Constructor.
|
|
| Kind (const std::string &string) |
| Constructor from std::string.
|
|
constexpr | Kind (Value kind) |
| Implicit Constructor from Value type.
|
|
| operator bool ()=delete |
| Prevent usage: if(node)
|
|
| operator std::string () const |
| std::string conversion operator
|
|
| operator Value () const |
| Allow switch(Node::Value(kind)) and comparisons.
|
|
Kind & | operator= (Value v) |
| Assignment operator from Value type.
|
|
◆ Value
Possible kinds of Nodes.
Enumerator |
---|
Blueprint | Node with header.
|
Simple | Node without header, which displays its name in the center of the content.
|
GroupBox | Group box which can group other nodes and drag them together.
|
◆ Kind() [1/2]
constexpr NAV::Node::Kind::Kind |
( |
Value | kind | ) |
|
|
inlineconstexpr |
Implicit Constructor from Value type.
- Parameters
-
[in] | kind | Value type to construct from |
◆ Kind() [2/2]
NAV::Node::Kind::Kind |
( |
const std::string & | string | ) |
|
|
inlineexplicit |
Constructor from std::string.
- Parameters
-
[in] | string | String representation of the type |
◆ operator std::string()
NAV::Node::Kind::operator std::string |
( |
| ) |
const |
|
inlineexplicit |
std::string conversion operator
- Returns
- A std::string representation of the node kind
◆ operator=()
Assignment operator from Value type.
- Parameters
-
[in] | v | Value type to construct from |
- Returns
- The Kind type from the value type
The documentation for this struct was generated from the following file:
- /home/runner/work/INSTINCT/INSTINCT/src/internal/Node/Node.hpp