#include <Fireworks/Core/interface/FWEvePtr.h>
Public Member Functions | |
void | destroyElement () |
FWEvePtr () | |
FWEvePtr (T *iElement) | |
T * | get () const |
operator bool () const | |
T & | operator* () const |
T * | operator-> () const |
void | reset (T *iNew) |
void | reset () |
void | swap (FWEvePtr< T > &iOther) |
Private Attributes | |
boost::shared_ptr< TEveElement > | m_container |
Description: Smart pointer which properly deals with TEveElement reference counting
Usage: <usage>
Definition at line 31 of file FWEvePtr.h.
Definition at line 34 of file FWEvePtr.h.
{ }
Definition at line 36 of file FWEvePtr.h.
References FWEvePtr< T >::m_container.
: m_container(new TEveElementList()) { m_container->AddElement(iElement); }
Definition at line 66 of file FWEvePtr.h.
References FWEvePtr< T >::m_container, and FWEvePtr< T >::reset().
{ if(m_container) {m_container->DestroyElements();} reset(); }
Definition at line 49 of file FWEvePtr.h.
References cmsCodeRules::cppFunctionSkipper::operator.
{ return (operator->()); }
Definition at line 53 of file FWEvePtr.h.
References FWEvePtr< T >::m_container.
{ return m_container && m_container->HasChildren(); }
Definition at line 45 of file FWEvePtr.h.
References FWEvePtr< T >::operator->().
{ return *(operator->()); }
Definition at line 40 of file FWEvePtr.h.
References FWEvePtr< T >::m_container.
Referenced by FWEvePtr< T >::operator*().
{ return m_container && m_container->HasChildren() ? static_cast<T*>(m_container->FirstChild()) : static_cast<T*>(0); }
Definition at line 59 of file FWEvePtr.h.
References FWEvePtr< T >::m_container.
Referenced by FWEvePtr< T >::destroyElement().
{ m_container.reset(); }
Definition at line 62 of file FWEvePtr.h.
References FWEvePtr< T >::swap(), and cond::rpcobtemp::temp.
{ FWEvePtr<T> temp(iNew); swap(temp); }
Definition at line 71 of file FWEvePtr.h.
References FWEvePtr< T >::m_container.
Referenced by FWEvePtr< T >::reset().
{ m_container.swap(iOther.m_container); }
boost::shared_ptr<TEveElement> FWEvePtr< T >::m_container [private] |
Definition at line 80 of file FWEvePtr.h.
Referenced by FWEvePtr< T >::destroyElement(), FWEvePtr< T >::FWEvePtr(), FWEvePtr< T >::operator bool(), FWEvePtr< T >::operator->(), FWEvePtr< T >::reset(), and FWEvePtr< T >::swap().