HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
object.h File Reference
#include "pxr/pxr.h"
#include "pxr/usd/usd/api.h"
#include "pxr/usd/usd/common.h"
#include "pxr/usd/usd/primData.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/sdf/abstractData.h"
#include "pxr/usd/sdf/path.h"
#include "pxr/base/tf/hash.h"
#include <type_traits>
+ Include dependency graph for object.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _Detail::Const< Type >
 
struct  _Detail::GetObjType< T >
 
struct  _Detail::GetObjType< UsdObject >
 
struct  _Detail::GetObjType< UsdPrim >
 
struct  _Detail::GetObjType< UsdProperty >
 
struct  _Detail::GetObjType< UsdAttribute >
 
struct  _Detail::GetObjType< UsdRelationship >
 
class  UsdObject
 
struct  UsdObject::_Null< Derived >
 

Namespaces

 _Detail
 

Enumerations

enum  UsdObjType {
  UsdTypeObject, UsdTypePrim, UsdTypeProperty, UsdTypeAttribute,
  UsdTypeRelationship, Usd_NumObjTypes
}
 

Functions

PXR_NAMESPACE_OPEN_SCOPE TF_DECLARE_WEAK_PTRS (UsdStage)
 
bool UsdIsSubtype (UsdObjType baseType, UsdObjType subType)
 
bool UsdIsConvertible (UsdObjType from, UsdObjType to)
 
bool UsdIsConcrete (UsdObjType type)
 

Enumeration Type Documentation

enum UsdObjType

Enum values to represent the various Usd object types.

Enumerator
UsdTypeObject 
UsdTypePrim 
UsdTypeProperty 
UsdTypeAttribute 
UsdTypeRelationship 
Usd_NumObjTypes 

Definition at line 51 of file object.h.

Function Documentation

PXR_NAMESPACE_OPEN_SCOPE TF_DECLARE_WEAK_PTRS ( UsdStage  )
bool UsdIsConcrete ( UsdObjType  type)
inline

Return true if type is a concrete object type, namely one of Prim, Attribute, or Relationship.

Definition at line 101 of file object.h.

bool UsdIsConvertible ( UsdObjType  from,
UsdObjType  to 
)
inline

Return true if from is convertible to to, false otherwise. Equivalent to UsdIsSubtype(to, from).

Definition at line 94 of file object.h.

bool UsdIsSubtype ( UsdObjType  baseType,
UsdObjType  subType 
)
inline

Return true if subType is the same as or a subtype of baseType, false otherwise.

Definition at line 86 of file object.h.