16 #include <vlutil/vlSmartPointers.h>
17 #include <vlutil/vlExceptions.h>
49 virtual void makeInvalid();
67 DtTHROW_NEW(DtCorruptedState,
"Interface is invalid.");
82 template <
typename K,
typename V>
83 DtBoost::shared_ptr<V>
DtFindProxyByName(std::map<K, DtBoost::weak_ptr<V> >& map,
const std::string& name)
85 typedef DtBoost::weak_ptr<V> VWP;
86 typedef DtBoost::shared_ptr<V> VSP;
88 typename std::map<K, DtBoost::weak_ptr<V> >::iterator iter = map.find(name);
91 VSP proctor = iter->second.lock();
DtBoost::shared_ptr< DtProxy > DtProxySP
Definition: DtProxy.h:77
bool myValidFlag
Definition: DtProxy.h:73
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
void validate() const
Check to see if the proxy is valid.
Definition: DtProxy.h:63
DtBoost::weak_ptr< DtProxy > DtProxyWP
Definition: DtProxy.h:76
bool isValid() const
Return the valid state of the proxy.
Definition: DtProxy.h:54
Contains DLL export macros.
The Proxy base class.
Definition: DtProxy.h:41
DtBoost::shared_ptr< V > DtFindProxyByName(std::map< K, DtBoost::weak_ptr< V > > &map, const std::string &name)
Utility function to look up a proxy object by name in a map of weak pointers.
Definition: DtProxy.h:83