diff options
author | rtk0c <[email protected]> | 2022-11-27 12:04:31 -0800 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-11-27 12:04:31 -0800 |
commit | 182c8f8357739f905bbd721006480502435b6b43 (patch) | |
tree | 082613a474d863182e2ad8f2167f1643f26e67a3 /app/source/Cplt/Model/Workflow/Workflow.hpp | |
parent | b01ed99a1cd0c863c8709930658513c04dd70f61 (diff) |
Update brace style to match rest of my projectscplt-imgui
Diffstat (limited to 'app/source/Cplt/Model/Workflow/Workflow.hpp')
-rw-r--r-- | app/source/Cplt/Model/Workflow/Workflow.hpp | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/app/source/Cplt/Model/Workflow/Workflow.hpp b/app/source/Cplt/Model/Workflow/Workflow.hpp index e075e3c..bc75121 100644 --- a/app/source/Cplt/Model/Workflow/Workflow.hpp +++ b/app/source/Cplt/Model/Workflow/Workflow.hpp @@ -20,8 +20,7 @@ namespace ImNodes = ax::NodeEditor; -class WorkflowConnection -{ +class WorkflowConnection { public: static constexpr auto kInvalidId = std::numeric_limits<uint32_t>::max(); @@ -44,21 +43,18 @@ public: void WriteTo(std::ostream& stream) const; }; -class WorkflowNode -{ +class WorkflowNode { public: static constexpr auto kInvalidId = std::numeric_limits<uint32_t>::max(); static constexpr auto kInvalidPinId = std::numeric_limits<uint32_t>::max(); - enum Type - { + enum Type { InputType, TransformType, OutputType, }; - enum Kind - { + enum Kind { KD_NumericAddition, KD_NumericSubtraction, KD_NumericMultiplication, @@ -73,8 +69,7 @@ public: KindCount = InvalidKind, }; - enum Category - { + enum Category { CG_Numeric, CG_Text, CG_Document, @@ -86,8 +81,7 @@ public: CategoryCount = InvalidCategory, }; - struct InputPin - { + struct InputPin { uint32_t Connection = WorkflowConnection::kInvalidId; BaseValue::Kind MatchingType = BaseValue::InvalidKind; bool ConnectionToConst = false; @@ -98,8 +92,7 @@ public: BaseValue::Kind GetMatchingType() const; }; - struct OutputPin - { + struct OutputPin { uint32_t Connection = WorkflowConnection::kInvalidId; BaseValue::Kind MatchingType = BaseValue::InvalidKind; @@ -191,8 +184,7 @@ protected: void OnDetach(); }; -class Workflow : public Asset -{ +class Workflow : public Asset { friend class WorkflowNode; friend class WorkflowEvaluationContext; class Private; @@ -227,8 +219,7 @@ public: WorkflowNode* GetNodeByNodeId(ImNodes::NodeId nodeId); BaseValue* GetConstantById(uint32_t id); - struct GlobalPinId - { + struct GlobalPinId { WorkflowNode* Node; uint32_t PinId; /// true => input pin @@ -256,8 +247,7 @@ public: /* Graph rebuild */ - enum GraphUpdateResult - { + enum GraphUpdateResult { /// Successfully rebuilt graph dependent data. /// Details: nothing is written. GUR_Success, @@ -288,8 +278,7 @@ private: std::pair<std::unique_ptr<WorkflowNode>&, uint32_t> AllocWorkflowStep(); }; -class WorkflowAssetList final : public AssetListTyped<Workflow> -{ +class WorkflowAssetList final : public AssetListTyped<Workflow> { private: // AC = Asset Creator std::string mACNewName; |