13 #include <vlutil/vlSmartPointers.h>
14 #include <vlutil/vlExceptions.h>
46 virtual void makeInvalid();
64 DtTHROW_NEW(DtCorruptedState,
"Interface is invalid.");
79 template <
typename K,
typename V>
80 DtBoost::shared_ptr<V>
DtFindProxyByName(std::map<K, DtBoost::weak_ptr<V> >& map,
const std::string& name)
82 typedef DtBoost::weak_ptr<V> VWP;
83 typedef DtBoost::shared_ptr<V> VSP;
85 typename std::map<K, DtBoost::weak_ptr<V> >::iterator iter = map.find(name);
88 VSP proctor = iter->second.lock();
DtBoost::shared_ptr< DtProxy > DtProxySP
Definition: DtProxy.h:74
bool myValidFlag
Definition: DtProxy.h:70
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
void validate() const
Check to see if the proxy is valid.
Definition: DtProxy.h:60
DtBoost::weak_ptr< DtProxy > DtProxyWP
Definition: DtProxy.h:73
bool isValid() const
Return the valid state of the proxy.
Definition: DtProxy.h:51
Contains DLL export macros.
The Proxy base class.
Definition: DtProxy.h:38
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:80