BOSS 7.1.1
BESIII Offline Software System
|
#include <KalFitList.h>
Public Member Functions | |
KalFitList (int length_to_alloc=100) | |
default constructor | |
KalFitList (const KalFitList< T > &) | |
copy constructor | |
~KalFitList () | |
destructor | |
int | append (T x) |
append an object into the end of the list | |
int | append (const KalFitList< 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 11 of file KalFitList.h.
|
inline |
default constructor
Definition at line 93 of file KalFitList.h.
KalFitList< T >::KalFitList | ( | const KalFitList< T > & | src | ) |
copy constructor
Definition at line 101 of file KalFitList.h.
|
inline |
int KalFitList< T >::append | ( | const KalFitList< T > & | src | ) |
append objects into the end of the list
Definition at line 245 of file KalFitList.h.
|
inline |
append an object into the end of the list
Definition at line 122 of file KalFitList.h.
Referenced by KalFitSuper_Mdc::appendHit().
|
inline |
clear lists but the allocated memory remains same
Definition at line 177 of file KalFitList.h.
Referenced by KalFitSuper_Mdc::clear().
void KalFitList< T >::deleteAll | ( | void | ) |
delete all object and clear(allocated memory remains same)
Definition at line 261 of file KalFitList.h.
|
inline |
delete objects by index and returns decremented index and length
Definition at line 159 of file KalFitList.h.
|
inline |
returns the first object in the list
Definition at line 219 of file KalFitList.h.
|
inline |
returns the pointer of first object
Definition at line 226 of file KalFitList.h.
Referenced by KalFitSuper_Mdc::clear().
|
inline |
returns the pointer of last object
Definition at line 233 of file KalFitList.h.
Referenced by KalFitSuper_Mdc::clear().
|
inline |
returns the length of the list
Definition at line 240 of file KalFitList.h.
Referenced by KalFitSuper_Mdc::clear().
|
inline |
returns the reference of a object by index
Definition at line 212 of file KalFitList.h.
|
inline |
returns a object by index
Definition at line 205 of file KalFitList.h.
|
inline |
remove objects by index and returns decremented index and length
Definition at line 135 of file KalFitList.h.
|
inline |
remove objects by index
Definition at line 144 of file KalFitList.h.
|
inline |
clear lists and free memory
Definition at line 185 of file KalFitList.h.
|
inline |
remove just last objects of the list
Definition at line 169 of file KalFitList.h.
|
inline |
replace index-th object by the object src
Definition at line 152 of file KalFitList.h.
|
inline |
re-allocate memory to reduce size
Definition at line 196 of file KalFitList.h.