|
Notice sent when asset paths may resolve to a different path than before due to a change in the resolver. More...
#include <notice.h>
Public Member Functions | |
AR_API | ResolverChanged () |
Create a notice indicating that the results of asset resolution might have changed, regardless of what ArResolverContext object is bound. | |
AR_API | ResolverChanged (const std::function< bool(const ArResolverContext &)> &affectsFn) |
Create a notice using affectsFn to determine the ArResolverContext objects that are affected by this resolver change. | |
template<class ContextObj , typename std::enable_if< ArIsContextObject< ContextObj >::value >::type * = nullptr> | |
ResolverChanged (const ContextObj &contextObj) | |
Create a notice indicating that the results of asset resolution when any ArResolverContext containing contextObj is bound might have changed. | |
AR_API bool | AffectsContext (const ArResolverContext &ctx) const |
Returns true if the results of asset resolution when ctx is bound may be affected by this resolver change. | |
Public Member Functions inherited from TfNotice | |
TF_API size_t | Send () const |
Deliver the notice to interested listeners, returning the number of interested listeners. | |
template<typename SenderPtr > | |
size_t | Send (SenderPtr const &s) const |
Deliver the notice to interested listeners, returning the number of interested listeners. | |
TF_API size_t | SendWithWeakBase (const TfWeakBase *senderWeakBase, const void *senderUniqueId, const std::type_info &type) const |
Variant of Send() that takes a specific sender in the form of a TfWeakBase pointer and a typeid. | |
Additional Inherited Members | |
Public Types inherited from TfNotice | |
typedef TfWeakPtr< Probe > | WeakProbePtr |
typedef std::vector< Key > | Keys |
A TfNotice::Key container. | |
Static Public Member Functions inherited from TfNotice | |
static TF_API void | InsertProbe (const WeakProbePtr &probe) |
Register a probe that will be invoked when notices are sent and delivered. | |
static TF_API void | RemoveProbe (const WeakProbePtr &probe) |
Remove a probe that was previously registered with InsertProbe . | |
template<class LPtr , class MethodPtr > | |
static TfNotice::Key | Register (LPtr const &listener, MethodPtr method) |
Register a listener as being interested in a TfNotice . | |
template<class LPtr , class MethodPtr , class SenderPtr > | |
static TfNotice::Key | Register (LPtr const &listener, MethodPtr method, SenderPtr const &sender) |
template<class LPtr , class MethodPtr > | |
static TfNotice::Key | Register (LPtr const &listener, MethodPtr method, const TfType ¬iceType, const TfAnyWeakPtr &sender) |
static TF_API bool | Revoke (TfNotice::Key &key) |
Revoke interest by a listener. | |
static TF_API void | Revoke (TfNotice::Keys *keys) |
Revoke interest by listeners. | |
Notice sent when asset paths may resolve to a different path than before due to a change in the resolver.
AR_API ResolverChanged | ( | ) |
Create a notice indicating that the results of asset resolution might have changed, regardless of what ArResolverContext object is bound.
AR_API ResolverChanged | ( | const std::function< bool(const ArResolverContext &)> & | affectsFn | ) |
Create a notice using affectsFn
to determine the ArResolverContext objects that are affected by this resolver change.
If affectsFn
returns true, it means the results of asset resolution when the given ArResolverContext is bound might have changed.
|
inline |
Create a notice indicating that the results of asset resolution when any ArResolverContext containing contextObj
is bound might have changed.
AR_API bool AffectsContext | ( | const ArResolverContext & | ctx | ) | const |
Returns true if the results of asset resolution when ctx
is bound may be affected by this resolver change.