|
BOSS 7.1.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 | |
default constructor
Definition at line 98 of file FTList.h.
copy constructor
|
inline |
append an object into the end of the list
Definition at line 127 of file FTList.h.
Referenced by FTSuperLayer::appendHit(), FTSegment::examine(), FTSuperLayer::mkSegmentList(), FTSuperLayer::reduce_noise(), and FTTrack::s_zFit().
|
inline |
clear lists but the allocated memory remains same
Definition at line 182 of file FTList.h.
Referenced by deleteAll().
| void FTList< T >::deleteAll | ( | void | ) |
delete all object and clear(allocated memory remains same)
Definition at line 266 of file FTList.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
returns the length of the list
Definition at line 245 of file FTList.h.
Referenced by FTSegment::examine(), FTTrack::linkStereoSegments(), FTTrack::printout(), FTTrack::r_phi2Fit(), FTTrack::r_phi3Fit(), FTTrack::r_phi4Fit(), FTTrack::r_phiFit(), FTTrack::r_phiReFit(), FTSuperLayer::reduce_noise(), and FTTrack::s_zFit().
|
inline |
|
inline |
|
inline |
remove objects by index and returns decremented index and length
Definition at line 140 of file FTList.h.
Referenced by FTTrack::r_phi3Fit(), FTTrack::r_phiFit(), and FTTrack::s_zFit().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |