CGEM BOSS 6.6.5.g
BESIII Offline Software System
|
#include <FTList.h>
Public Member Functions | |
FTList (int length_to_alloc=100) | |
default constructor | |
FTList (const FTList< T > &) | |
copy constructor | |
~FTList () | |
destructor | |
int | append (const T &x) |
append an object into the end of the list | |
int | append (const FTList< T > &) |
append objects into the end of the list | |
int | remove (int &) |
remove objects by index and returns decremented index and length | |
void | remove2 (int) |
remove objects by index | |
void | replace (int i, T src) |
replace index-th object by the object src | |
int | deleteObj (int &) |
delete objects by index and returns decremented index and length | |
void | removeLast (void) |
remove just last objects of the list | |
void | clear (void) |
clear lists but the allocated memory remains same | |
void | removeAll (void) |
clear lists and free memory | |
void | deleteAll (void) |
delete all object and clear(allocated memory remains same) | |
void | resize (void) |
re-allocate memory to reduce size | |
T & | operator[] (unsigned i) const |
returns a object by index | |
T & | operator() (unsigned i) const |
returns the reference of a object by index | |
T & | first (void) const |
returns the first object in the list | |
T * | firstPtr (void) const |
returns the pointer of first object | |
T * | lastPtr (void) const |
returns the pointer of last object | |
int | length (void) const |
returns the length of the list | |
copy constructor
Definition at line 106 of file FTList.h.
append objects into the end of the list
Definition at line 250 of file FTList.h.
|
inline |
append an object into the end of the list
Definition at line 127 of file FTList.h.
Referenced by FTTrack::append_stereo(), FTTrack::append_stereo_cache(), FTSuperLayer::appendHit(), FTSegment::connect_inner(), FTSegment::connect_outer(), FTSegment::examine(), FTTrack::linkStereoSegments(), FTSuperLayer::mkSegmentList(), FTTrack::r_phiFit(), FTSuperLayer::reAppendSalvage(), FTSuperLayer::reduce_noise(), FTTrack::s_zFit(), FTSegment::update3D(), and FTTrack::updateSZ().
|
inline |
clear lists but the allocated memory remains same
Definition at line 182 of file FTList.h.
Referenced by FTSuperLayer::clear(), FTSegment::connect_inner(), FTSegment::connect_outer(), and FTTrack::updateSZ().
void FTList< T >::deleteAll | ( | void | ) |
delete all object and clear(allocated memory remains same)
Definition at line 266 of file FTList.h.
Referenced by FTSuperLayer::clear(), and FTTrack::linkStereoSegments().
|
inline |
|
inline |
returns the first object in the list
Definition at line 224 of file FTList.h.
Referenced by FTSegment::s(), FTSegment::update(), FTSegment::update3D(), FTTrack::updateSZ(), and FTSegment::z().
|
inline |
returns the pointer of first object
Definition at line 231 of file FTList.h.
Referenced by FTSuperLayer::clear(), and FTSegment::examine().
|
inline |
returns the pointer of last object
Definition at line 238 of file FTList.h.
Referenced by FTSuperLayer::clear(), and FTSegment::examine().
|
inline |
returns the length of the list
Definition at line 245 of file FTList.h.
Referenced by FTSuperLayer::clear(), FTTrack::d_z(), FTFinder::event(), FTSegment::examine(), FTTrack::get_nhits(), FTSegment::incomingPhi(), FTSegment::linkStereoSegments(), FTTrack::linkStereoSegments(), FTSuperLayer::mkSegmentList(), FTSegment::outgoingPhi(), FTTrack::printout(), FTSegment::printout(), FTTrack::r_phi2Fit(), FTTrack::r_phi3Fit(), FTTrack::r_phi4Fit(), FTTrack::r_phiFit(), FTTrack::r_phiReFit(), FTSuperLayer::reAppendSalvage(), FTSuperLayer::reduce_noise(), FTTrack::s_zFit(), FTSegment::update(), FTSegment::update3D(), and FTTrack::updateSZ().
|
inline |
|
inline |
|
inline |
remove objects by index and returns decremented index and length
Definition at line 140 of file FTList.h.
Referenced by FTFinder::event(), FTSuperLayer::mkSegmentList(), FTTrack::r_phi3Fit(), FTTrack::r_phiFit(), FTSuperLayer::reAppendSalvage(), FTSuperLayer::reduce_noise(), and FTTrack::s_zFit().
|
inline |
remove objects by index
Definition at line 149 of file FTList.h.
Referenced by FTTrack::s_zFit().
|
inline |
|
inline |
|
inline |
|
inline |