Loading...
Searching...
No Matches
timeInputNode.h
Go to the documentation of this file.
1//
2// Copyright 2025 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_EXEC_EF_TIME_INPUT_NODE_H
8#define PXR_EXEC_EF_TIME_INPUT_NODE_H
9
11
12#include "pxr/pxr.h"
13
14#include "pxr/exec/ef/api.h"
15
17
18PXR_NAMESPACE_OPEN_SCOPE
19
26class EF_API_TYPE EfTimeInputNode final : public VdfRootNode
27{
28public:
29
32 EF_API
34
38 static bool IsATimeInputNode(const VdfNode &node) {
39 return node.GetNumInputs() == 0 && node.IsA<EfTimeInputNode>();
40 }
41
42private:
43
44 // Only a network is allowed to delete nodes.
45 virtual ~EfTimeInputNode();
46};
47
48PXR_NAMESPACE_CLOSE_SCOPE
49
50#endif
A root node which supplies a value for time.
Definition: timeInputNode.h:27
EF_API EfTimeInputNode(VdfNetwork *network)
Constructor.
static bool IsATimeInputNode(const VdfNode &node)
Returns true if the given node is an EfTimeInputNode.
Definition: timeInputNode.h:38
A VdfNetwork is a collection of VdfNodes and their connections.
Definition: network.h:60
This is the base class for all nodes in a VdfNetwork.
Definition: node.h:53
bool IsA() const
Returns true, if this node is of type TYPE.
Definition: node.h:147
size_t GetNumInputs() const
Returns the number of inputs that this node currently has.
Definition: node.h:289
Base class for root nodes.
Definition: rootNode.h:30