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 
16 #include "pxr/exec/vdf/rootNode.h"
17 
18 PXR_NAMESPACE_OPEN_SCOPE
19 
26 class EF_API_TYPE EfTimeInputNode final : public VdfRootNode
27 {
28 public:
29 
32  EF_API
33  EfTimeInputNode(VdfNetwork *network);
34 
38  static bool IsATimeInputNode(const VdfNode &node) {
39  return node.GetNumInputs() == 0 && node.IsA<EfTimeInputNode>();
40  }
41 
42 private:
43 
44  // Only a network is allowed to delete nodes.
45  virtual ~EfTimeInputNode();
46 };
47 
48 PXR_NAMESPACE_CLOSE_SCOPE
49 
50 #endif
A VdfNetwork is a collection of VdfNodes and their connections.
Definition: network.h:59
bool IsA() const
Returns true, if this node is of type TYPE.
Definition: node.h:147
This is the base class for all nodes in a VdfNetwork.
Definition: node.h:52
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:29
static bool IsATimeInputNode(const VdfNode &node)
Returns true if the given node is an EfTimeInputNode.
Definition: timeInputNode.h:38
A root node which supplies a value for time.
Definition: timeInputNode.h:26