HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
strengthOrdering.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 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_USD_PCP_STRENGTH_ORDERING_H
8 #define PXR_USD_PCP_STRENGTH_ORDERING_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/usd/pcp/api.h"
12 
14 
15 class PcpNodeRef;
16 
17 /// Compares the strength of nodes \p a and \p b. These nodes must be siblings;
18 /// it is a coding error if \p a and \p b do not have the same parent node.
19 ///
20 /// Returns -1 if a is stronger than b,
21 /// 0 if a is equivalent to b,
22 /// 1 if a is weaker than b
23 PCP_API
24 int
26 
27 /// Compares the strength of nodes \p a and \p b. These nodes must be part
28 /// of the same graph; it is a coding error if \p a and \p b do not have the
29 /// same root node.
30 ///
31 /// Returns -1 if a is stronger than b,
32 /// 0 if a is equivalent to b,
33 /// 1 if a is weaker than b
34 PCP_API
35 int
37 
38 /// Compares the strength of a payload node with arcSiblingNum \p payloadArcNum
39 /// to a sibling node \p siblingNode. These nodes must be siblings:
40 /// it is a coding error if \p siblingNode 's parent node is not \p payloadParent.
41 ///
42 /// Returns -1 if the payload node is stronger than siblingNode,
43 /// 0 if the payload node is equivalent to siblingNode,
44 /// 1 if the payload node is weaker than siblingNode
45 PCP_API
46 int
48  int payloadArcNum, const PcpNodeRef& siblingNode);
49 
51 
52 #endif // PXR_USD_PCP_STRENGTH_ORDERING_H
PCP_API int PcpCompareNodeStrength(const PcpNodeRef &a, const PcpNodeRef &b)
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
PCP_API int PcpCompareSiblingNodeStrength(const PcpNodeRef &a, const PcpNodeRef &b)
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
PCP_API int PcpCompareSiblingPayloadNodeStrength(const PcpNodeRef &payloadParent, int payloadArcNum, const PcpNodeRef &siblingNode)
#define PCP_API
Definition: api.h:23