#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); }
void FWEvePtr< T >::destroyElement | ( | ) | [inline] |
Definition at line 66 of file FWEvePtr.h.
References FWEvePtr< T >::m_container, and FWEvePtr< T >::reset().
{ if(m_container) {m_container->DestroyElements();} reset(); }
T* FWEvePtr< T >::get | ( | void | ) | const [inline] |
Definition at line 49 of file FWEvePtr.h.
References cmsCodeRules::cppFunctionSkipper::operator.
{ return (operator->()); }
FWEvePtr< T >::operator bool | ( | ) | const [inline] |
Definition at line 53 of file FWEvePtr.h.
References FWEvePtr< T >::m_container.
{ return m_container && m_container->HasChildren(); }
T& FWEvePtr< T >::operator* | ( | void | ) | const [inline] |
Definition at line 45 of file FWEvePtr.h.
References FWEvePtr< T >::operator->().
{ return *(operator->()); }
T* FWEvePtr< T >::operator-> | ( | ) | const [inline] |
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); }
void FWEvePtr< T >::reset | ( | void | ) | [inline] |
Definition at line 59 of file FWEvePtr.h.
References FWEvePtr< T >::m_container.
Referenced by FWEvePtr< T >::destroyElement().
{ m_container.reset(); }
void FWEvePtr< T >::reset | ( | T * | iNew | ) | [inline] |
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().