24 #ifndef PXR_USD_USD_STAGE_POPULATION_MASK_H
25 #define PXR_USD_USD_STAGE_POPULATION_MASK_H
83 _ValidateAndNormalize();
150 return _paths.empty();
160 std::vector<TfToken> *childNames)
const;
164 std::vector<SdfPath>
GetPaths()
const;
182 return _paths == other._paths;
187 return !(*
this == other);
192 _paths.swap(other._paths);
198 USD_API void _ValidateAndNormalize();
200 std::vector<SdfPath> _paths;
218 #endif // PXR_USD_USD_STAGE_POPULATION_MASK_H
void swap(ArAssetInfo &lhs, ArAssetInfo &rhs)
UsdStagePopulationMask(Iter f, Iter l)
static SDF_API const SdfPath & AbsoluteRootPath()
USD_API bool GetIncludedChildNames(SdfPath const &path, std::vector< TfToken > *childNames) const
UsdStagePopulationMask & Add(SdfPath const &path)
GLsizei const GLchar *const * path
UsdStagePopulationMask()=default
Construct an empty mask that includes no paths.
USD_API std::ostream & operator<<(std::ostream &, UsdStagePopulationMask const &)
Stream a text representation of a mask.
USD_API std::vector< SdfPath > GetPaths() const
Return the set of paths that define this mask.
static USD_API UsdStagePopulationMask Union(UsdStagePopulationMask const &l, UsdStagePopulationMask const &r)
Return a mask that is the union of l and r.
USD_API UsdStagePopulationMask GetUnion(UsdStagePopulationMask const &other) const
Return a mask that is the union of this and other.
bool operator!=(UsdStagePopulationMask const &other) const
Return true if this mask is not equivalent to other.
UsdStagePopulationMask & operator=(UsdStagePopulationMask const &)=default
friend USD_API size_t hash_value(UsdStagePopulationMask const &)
UsdStagePopulationMask & Add(UsdStagePopulationMask const &other)
void swap(UsdStagePopulationMask &other)
Swap the content of this mask with other.
UsdStagePopulationMask(std::vector< SdfPath > const &paths)
USD_API UsdStagePopulationMask GetIntersection(UsdStagePopulationMask const &other) const
Return a mask that is the intersection of this and other.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
USD_API size_t hash_value(UsdStagePopulationMask const &)
bool operator==(UsdStagePopulationMask const &other) const
Return true if this mask is equivalent to other.
#define PXR_NAMESPACE_CLOSE_SCOPE
static UsdStagePopulationMask All()
USD_API bool IncludesSubtree(SdfPath const &path) const
static USD_API UsdStagePopulationMask Intersection(UsdStagePopulationMask const &l, UsdStagePopulationMask const &r)
Return a mask that is the intersection of l and r.
USD_API bool Includes(UsdStagePopulationMask const &other) const