HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ArNotice::ResolverChanged Class Reference

#include <notice.h>

+ Inheritance diagram for ArNotice::ResolverChanged:

Public Member Functions

AR_API ResolverChanged ()
 
AR_API ResolverChanged (const std::function< bool(const ArResolverContext &)> &affectsFn)
 
template<class ContextObj , typename std::enable_if< ArIsContextObject< ContextObj >::value >::type * = nullptr>
 ResolverChanged (const ContextObj &contextObj)
 
virtual AR_API ~ResolverChanged ()
 
AR_API bool AffectsContext (const ArResolverContext &ctx) const
 
- Public Member Functions inherited from ArNotice::ResolverNotice
virtual AR_API ~ResolverNotice ()
 
- Public Member Functions inherited from TfNotice
TF_API size_t Send () const
 
template<typename SenderPtr >
size_t Send (SenderPtr const &s) const
 
TF_API size_t SendWithWeakBase (const TfWeakBase *senderWeakBase, const void *senderUniqueId, const std::type_info &type) const
 
virtual TF_API ~TfNotice ()
 

Additional Inherited Members

- Public Types inherited from TfNotice
typedef TfWeakPtr< ProbeWeakProbePtr
 
typedef std::vector< KeyKeys
 
- Static Public Member Functions inherited from TfNotice
static TF_API void InsertProbe (const WeakProbePtr &probe)
 
static TF_API void RemoveProbe (const WeakProbePtr &probe)
 
template<class LPtr , class MethodPtr >
static TfNotice::Key Register (LPtr const &listener, MethodPtr method)
 
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 &noticeType, const TfAnyWeakPtr &sender)
 
static TF_API bool Revoke (TfNotice::Key &key)
 
static TF_API void Revoke (TfNotice::Keys *keys)
 
- Protected Member Functions inherited from ArNotice::ResolverNotice
AR_API ResolverNotice ()
 

Detailed Description

Notice sent when asset paths may resolve to a different path than before due to a change in the resolver.

Definition at line 65 of file notice.h.

Constructor & Destructor Documentation

AR_API ArNotice::ResolverChanged::ResolverChanged ( )

Create a notice indicating that the results of asset resolution might have changed, regardless of what ArResolverContext object is bound.

AR_API ArNotice::ResolverChanged::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.

template<class ContextObj , typename std::enable_if< ArIsContextObject< ContextObj >::value >::type * = nullptr>
ArNotice::ResolverChanged::ResolverChanged ( const ContextObj &  contextObj)
inline

Create a notice indicating that the results of asset resolution when any ArResolverContext containing contextObj is bound might have changed.

Definition at line 91 of file notice.h.

virtual AR_API ArNotice::ResolverChanged::~ResolverChanged ( )
virtual

Member Function Documentation

AR_API bool ArNotice::ResolverChanged::AffectsContext ( const ArResolverContext ctx) const

Returns true if the results of asset resolution when ctx is bound may be affected by this resolver change.


The documentation for this class was generated from the following file: