25 #ifndef PXR_USD_USD_STAGE_LOAD_RULES_H
26 #define PXR_USD_USD_STAGE_LOAD_RULES_H
141 void SetRules(std::vector<std::pair<SdfPath, Rule>>
const &rules);
144 inline void SetRules(std::vector<std::pair<SdfPath, Rule>> &&rules) {
145 _rules = std::move(rules);
179 inline std::vector<std::pair<SdfPath, Rule>>
const &
GetRules()
const {
193 return !(*
this == other);
198 _rules.swap(other._rules);
203 operator<<(std::ostream &, std::pair<SdfPath, Rule>
const &);
212 std::vector<std::pair<SdfPath, Rule> >::const_iterator
216 std::vector<std::pair<SdfPath, Rule> >::iterator
219 std::vector<std::pair<SdfPath, Rule>> _rules;
237 std::pair<SdfPath, UsdStageLoadRules::Rule>
const &);
246 #endif // PXR_USD_USD_STAGE_LOAD_RULES_H
void swap(ArAssetInfo &lhs, ArAssetInfo &rhs)
hboost::math::policies::policy< hboost::math::policies::domain_error< hboost::math::policies::ignore_error >, hboost::math::policies::pole_error< hboost::math::policies::ignore_error >, hboost::math::policies::overflow_error< hboost::math::policies::ignore_error >, hboost::math::policies::underflow_error< hboost::math::policies::ignore_error >, hboost::math::policies::denorm_error< hboost::math::policies::ignore_error >, hboost::math::policies::rounding_error< hboost::math::policies::ignore_error >, hboost::math::policies::evaluation_error< hboost::math::policies::ignore_error >, hboost::math::policies::indeterminate_result_error< hboost::math::policies::ignore_error > > policy
USD_API void LoadAndUnload(const SdfPathSet &loadSet, const SdfPathSet &unloadSet, UsdLoadPolicy policy)
GLsizei const GLchar *const * path
USD_API void Unload(SdfPath const &path)
USD_API std::ostream & operator<<(std::ostream &, UsdStageLoadRules const &)
Stream a text representation of a UsdStageLoadRules object.
USD_API void LoadWithDescendants(SdfPath const &path)
UsdStageLoadRules & operator=(UsdStageLoadRules const &)=default
friend USD_API std::ostream & operator<<(std::ostream &, std::pair< SdfPath, Rule > const &)
USD_API void LoadWithoutDescendants(SdfPath const &path)
friend USD_API size_t hash_value(UsdStageLoadRules const &)
Return the hash code for a UsdStageLoadRules object.
USD_API bool IsLoaded(SdfPath const &path) const
USD_API bool operator==(UsdStageLoadRules const &other) const
USD_API void SetRules(std::vector< std::pair< SdfPath, Rule >> const &rules)
Set literal rules, must be sorted by SdfPath::operator<.
std::vector< std::pair< SdfPath, Rule > > const & GetRules() const
Return all the rules as a vector.
static USD_API UsdStageLoadRules LoadNone()
Return rules that load no payloads.
UsdStageLoadRules()=default
Construct rules that load all payloads.
USD_API void AddRule(SdfPath const &path, Rule rule)
Add a literal rule. If there's already a rule for path, replace it.
Include payloads on the specified prim and all descendants.
std::set< class SdfPath > SdfPathSet
A set of SdfPaths.
void SetRules(std::vector< std::pair< SdfPath, Rule >> &&rules)
Set literal rules, must be sorted by SdfPath::operator<.
USD_API bool IsLoadedWithAllDescendants(SdfPath const &path) const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
void swap(UsdStageLoadRules &other)
Swap the contents of these rules with other.
Exclude payloads on the specified prim and all descendants.
Include payloads on the specified prim but no descendants.
USD_API bool IsLoadedWithNoDescendants(SdfPath const &path) const
static UsdStageLoadRules LoadAll()
bool operator!=(UsdStageLoadRules const &other) const
USD_API Rule GetEffectiveRuleForPath(SdfPath const &path) const
USD_API size_t hash_value(UsdStageLoadRules const &)
Return the hash code for a UsdStageLoadRules object.