#include <Handle.h>
Public Member Functions | |
| Handle () | |
| Handle (T *ptr) | |
| Handle (const Handle &rhs) | |
| ~Handle () | |
| const Handle & | operator= (const Handle &rhs) |
| T * | operator-> () const |
| T * | get () const |
| T & | operator * () const |
| bool | valid () const |
| void | release () |
Private Member Functions | |
| void | init () |
Private Attributes | |
| T * | p |
|
|||||||||
|
default ctor Definition at line 134 of file PhysicsNtuple/Handle.h. 00134 : p(0) 00135 {}
|
|
||||||||||
|
ctor from a raw pointer Definition at line 141 of file PhysicsNtuple/Handle.h. References Anp::Handle< T >::init().
|
|
||||||||||
|
copy ctor Definition at line 150 of file PhysicsNtuple/Handle.h. References Anp::Handle< T >::init().
|
|
|||||||||
|
dtor Definition at line 193 of file PhysicsNtuple/Handle.h. References Anp::Handle< T >::p, and Anp::Handle< T >::release().
|
|
|||||||||
|
provides access to pointer Definition at line 214 of file PhysicsNtuple/Handle.h. 00215 {
00216 return p;
00217 }
|
|
||||||||||
|
init Definition at line 181 of file PhysicsNtuple/Handle.h. References Anp::Handle< T >::p. Referenced by Anp::Handle< T >::Handle(), and Anp::Handle< T >::operator=(). 00182 {
00183 if (p)
00184 {
00185 p -> add_ref();
00186 }
00187 }
|
|
|||||||||
|
dereference operator Definition at line 223 of file PhysicsNtuple/Handle.h. 00224 {
00225 return *p;
00226 }
|
|
|||||||||
|
operator-> allows usage with pointer semantics Definition at line 205 of file PhysicsNtuple/Handle.h. 00206 {
00207 return p;
00208 }
|
|
||||||||||
|
assignment operator Definition at line 160 of file PhysicsNtuple/Handle.h. References Anp::Handle< T >::init(), Anp::Handle< T >::p, and Anp::Handle< T >::release(). 00161 {
00162 if (p != rhs.p)
00163 {
00164 if (p)
00165 {
00166 p -> release();
00167 }
00168
00169 p = rhs.p;
00170 init();
00171 }
00172
00173 return *this;
00174 }
|
|
|||||||||
|
release - set pointer to 0 Definition at line 246 of file PhysicsNtuple/Handle.h. References Anp::Handle< T >::p. Referenced by Anp::SelectFlux::GetAlg(), Anp::PlotSelect::GetEnu(), Anp::PlotSelect::GetRes(), Anp::PlotSelect::GetSel(), Anp::Handle< T >::operator=(), and Anp::Handle< T >::~Handle().
|
|
|||||||||
|
|||||
|
Definition at line 127 of file PhysicsNtuple/Handle.h. Referenced by Anp::Handle< T >::init(), Anp::Handle< T >::operator=(), Anp::Handle< T >::release(), and Anp::Handle< T >::~Handle(). |
1.3.9.1