BOSS 7.0.3
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 | |
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 | |
Definition at line 16 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
default constructor
Definition at line 98 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
copy constructor
Definition at line 106 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
destructor
Definition at line 120 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
append objects into the end of the list
Definition at line 250 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
append objects into the end of the list
|
inline |
append an object into the end of the list
Definition at line 127 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/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().
int FTList< T >::append | ( | const T & | x | ) |
append an object into the end of the list
|
inline |
clear lists but the allocated memory remains same
Definition at line 182 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
Referenced by FTSuperLayer::clear(), FTSegment::connect_inner(), FTSegment::connect_outer(), and FTTrack::updateSZ().
void FTList< T >::clear | ( | void | ) |
clear lists but the allocated memory remains same
void FTList< T >::deleteAll | ( | void | ) |
delete all object and clear(allocated memory remains same)
Definition at line 266 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
Referenced by FTSuperLayer::clear(), and FTTrack::linkStereoSegments().
void FTList< T >::deleteAll | ( | void | ) |
delete all object and clear(allocated memory remains same)
|
inline |
delete objects by index and returns decremented index and length
Definition at line 164 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
int FTList< T >::deleteObj | ( | int & | ) |
delete objects by index and returns decremented index and length
|
inline |
returns the first object in the list
Definition at line 224 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
Referenced by FTSegment::s(), FTSegment::update(), FTSegment::update3D(), FTTrack::updateSZ(), and FTSegment::z().
T & FTList< T >::first | ( | void | ) | const |
returns the first object in the list
|
inline |
returns the pointer of first object
Definition at line 231 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
Referenced by FTSuperLayer::clear(), and FTSegment::examine().
T * FTList< T >::firstPtr | ( | void | ) | const |
returns the pointer of first object
|
inline |
returns the pointer of last object
Definition at line 238 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
Referenced by FTSuperLayer::clear(), and FTSegment::examine().
T * FTList< T >::lastPtr | ( | void | ) | const |
returns the pointer of last object
|
inline |
returns the length of the list
Definition at line 245 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/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().
int FTList< T >::length | ( | void | ) | const |
returns the length of the list
|
inline |
returns the reference of a object by index
Definition at line 217 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
T & FTList< T >::operator() | ( | unsigned | i | ) | const |
returns the reference of a object by index
|
inline |
returns a object by index
Definition at line 210 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
T & FTList< T >::operator[] | ( | unsigned | i | ) | const |
returns a object by index
|
inline |
remove objects by index and returns decremented index and length
Definition at line 140 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
Referenced by FTFinder::event(), FTSuperLayer::mkSegmentList(), FTTrack::r_phi3Fit(), FTTrack::r_phiFit(), FTSuperLayer::reAppendSalvage(), FTSuperLayer::reduce_noise(), and FTTrack::s_zFit().
int FTList< T >::remove | ( | int & | ) |
remove objects by index and returns decremented index and length
|
inline |
remove objects by index
Definition at line 149 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
Referenced by FTTrack::s_zFit().
void FTList< T >::remove2 | ( | int | ) |
remove objects by index
|
inline |
clear lists and free memory
Definition at line 190 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
void FTList< T >::removeAll | ( | void | ) |
clear lists and free memory
|
inline |
remove just last objects of the list
Definition at line 174 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
void FTList< T >::removeLast | ( | void | ) |
remove just last objects of the list
|
inline |
replace index-th object by the object src
Definition at line 157 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
void FTList< T >::replace | ( | int | i, |
T | src | ||
) |
replace index-th object by the object src
|
inline |
re-allocate memory to reduce size
Definition at line 201 of file InstallArea/include/MdcFastTrkAlg/MdcFastTrkAlg/FTList.h.
void FTList< T >::resize | ( | void | ) |
re-allocate memory to reduce size