Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/NOD_node_tree_ref.hh
| Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Lines | private: | ||||
| friend NodeTreeRef; | friend NodeTreeRef; | ||||
| public: | public: | ||||
| const NodeTreeRef &tree() const; | const NodeTreeRef &tree() const; | ||||
| Span<const InputSocketRef *> inputs() const; | Span<const InputSocketRef *> inputs() const; | ||||
| Span<const OutputSocketRef *> outputs() const; | Span<const OutputSocketRef *> outputs() const; | ||||
| Span<const SocketRef *> inputs_or_outputs(bool get_inputs) const; | |||||
| Span<const InternalLinkRef *> internal_links() const; | Span<const InternalLinkRef *> internal_links() const; | ||||
| const InputSocketRef &input(int index) const; | const InputSocketRef &input(int index) const; | ||||
| const OutputSocketRef &output(int index) const; | const OutputSocketRef &output(int index) const; | ||||
| const InputSocketRef &input_by_identifier(StringRef identifier) const; | const InputSocketRef &input_by_identifier(StringRef identifier) const; | ||||
| const OutputSocketRef &output_by_identifier(StringRef identifier) const; | const OutputSocketRef &output_by_identifier(StringRef identifier) const; | ||||
| ▲ Show 20 Lines • Show All 299 Lines • ▼ Show 20 Lines | inline Span<const InputSocketRef *> NodeRef::inputs() const | ||||
| return inputs_; | return inputs_; | ||||
| } | } | ||||
| inline Span<const OutputSocketRef *> NodeRef::outputs() const | inline Span<const OutputSocketRef *> NodeRef::outputs() const | ||||
| { | { | ||||
| return outputs_; | return outputs_; | ||||
| } | } | ||||
| inline Span<const SocketRef *> NodeRef::inputs_or_outputs(bool get_inputs) const | |||||
| { | |||||
| return get_inputs ? inputs_.as_span().cast<const SocketRef *>() : | |||||
| outputs_.as_span().cast<const SocketRef *>(); | |||||
| } | |||||
| inline Span<const InternalLinkRef *> NodeRef::internal_links() const | inline Span<const InternalLinkRef *> NodeRef::internal_links() const | ||||
| { | { | ||||
| return internal_links_; | return internal_links_; | ||||
| } | } | ||||
| inline const InputSocketRef &NodeRef::input(int index) const | inline const InputSocketRef &NodeRef::input(int index) const | ||||
| { | { | ||||
| return *inputs_[index]; | return *inputs_[index]; | ||||
| ▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines | |||||