Geant4-11
|
#include <G4FastList.hh>
Data Structures | |
class | TWatcher |
class | Watcher |
Public Types | |
typedef G4FastList_const_iterator< OBJECT > | const_iterator |
typedef G4FastList_iterator< OBJECT > | iterator |
typedef G4FastListNode< OBJECT > | node |
typedef OBJECT | object |
Public Member Functions | |
void | AddWatcher (Watcher *watcher) |
OBJECT * | back () |
iterator | begin () |
const_iterator | begin () const |
void | clear () |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
iterator | erase (iterator __first, iterator __last) |
iterator | erase (OBJECT *) |
G4FastList () | |
G4FastListNode< G4FastList< OBJECT > > * | GetListNode () |
bool | Holds (const OBJECT *) const |
iterator | insert (iterator, OBJECT *) |
iterator | pop (G4FastListNode< OBJECT > *) |
iterator | pop (iterator __first, iterator __last) |
iterator | pop (OBJECT *) |
OBJECT * | pop_back () |
void | push_back (OBJECT *__track) |
void | push_front (OBJECT *__track) |
void | remove (OBJECT *) |
void | RemoveWatcher (Watcher *watcher) |
void | SetListNode (G4FastListNode< G4FastList< OBJECT > > *__node) |
G4int | size () const |
void | transferTo (G4FastList< OBJECT > *) |
~G4FastList () | |
Static Public Member Functions | |
static G4FastList< OBJECT > * | GetList (G4FastListNode< OBJECT > *__trackListNode) |
static G4FastList< OBJECT > * | GetList (OBJECT *) |
static G4FastListNode< OBJECT > * | GetNode (OBJECT *) |
static void | Pop (OBJECT *) |
static void | SetNode (OBJECT *__obj, G4FastListNode< OBJECT > *__node) |
Protected Types | |
typedef std::set< typename G4FastList< OBJECT >::Watcher *, sortWatcher< OBJECT > > | WatcherSet |
Protected Member Functions | |
void | CheckFlag (G4FastListNode< OBJECT > *) |
G4FastListNode< OBJECT > * | CreateNode (OBJECT *) |
void | DeleteObject (OBJECT *) |
G4FastListNode< OBJECT > * | EraseListNode (OBJECT *) |
G4FastListNode< OBJECT > * | Flag (OBJECT *) |
void | Hook (G4FastListNode< OBJECT > *, G4FastListNode< OBJECT > *) |
void | Unflag (G4FastListNode< OBJECT > *__trackListNode) |
G4FastListNode< OBJECT > * | Unflag (OBJECT *) |
void | Unhook (G4FastListNode< OBJECT > *) |
Static Protected Member Functions | |
static G4FastListNode< OBJECT > * | __GetNode (OBJECT *) |
Protected Attributes | |
G4FastListNode< OBJECT > | fBoundary |
G4shared_ptr< _ListRef< G4FastList< OBJECT > > > | fListRef |
G4int | fNbObjects |
G4FastListNode< G4FastList< OBJECT > > * | fpNodeInManyLists |
WatcherSet | fWatchers |
Private Member Functions | |
G4FastList (const G4FastList< OBJECT > &other) | |
G4bool | operator!= (const G4FastList< OBJECT > &right) const |
G4FastList< OBJECT > & | operator= (const G4FastList< OBJECT > &right) |
G4bool | operator== (const G4FastList< OBJECT > &right) const |
G4FastList is used by G4TrackHolder to save G4IT tracks only. Its advantage lies to a fast search of a track in this list.
Definition at line 218 of file G4FastList.hh.
typedef G4FastList_const_iterator<OBJECT> G4FastList< OBJECT >::const_iterator |
Definition at line 322 of file G4FastList.hh.
typedef G4FastList_iterator<OBJECT> G4FastList< OBJECT >::iterator |
Definition at line 321 of file G4FastList.hh.
typedef G4FastListNode<OBJECT> G4FastList< OBJECT >::node |
Definition at line 323 of file G4FastList.hh.
typedef OBJECT G4FastList< OBJECT >::object |
Definition at line 320 of file G4FastList.hh.
|
protected |
Definition at line 315 of file G4FastList.hh.
G4FastList< OBJECT >::G4FastList | ( | ) |
G4FastList< OBJECT >::~G4FastList | ( | ) |
|
private |
|
staticprotected |
|
inline |
Definition at line 338 of file G4FastList.hh.
References G4FastList< OBJECT >::fWatchers.
Referenced by G4ITTrackHolder::AddWatcher(), and G4FastList< OBJECT >::Watcher::Watch().
|
inline |
Definition at line 350 of file G4FastList.hh.
References G4FastList< OBJECT >::fBoundary, and G4FastList< OBJECT >::fNbObjects.
|
inline |
Referenced by G4ManyFastLists< OBJECT >::Add(), G4ManyFastLists< OBJECT >::AddGlobalWatcher(), G4ManyFastLists< OBJECT >::ClearLists(), G4ManyFastLists< OBJECT >::Holds(), G4DNAIRT::IRTSampling(), G4DNAIRT_geometries::IRTSampling(), G4ITTrackHolder::KillTracks(), G4ManyFastLists_iterator< OBJECT >::operator--(), G4ManyFastLists< OBJECT >::RemoveLists(), G4DNAIRT::SpaceBinning(), and G4DNAIRT_geometries::SpaceBinning().
|
inline |
|
protected |
void G4FastList< OBJECT >::clear | ( | ) |
Complexity = linear in size between __first and __last
Referenced by G4ManyFastLists< OBJECT >::RemoveLists().
|
protected |
|
protected |
|
inline |
|
inline |
Referenced by G4ManyFastLists< OBJECT >::Add(), G4ManyFastLists< OBJECT >::AddGlobalWatcher(), G4ManyFastLists< OBJECT >::ClearLists(), G4ManyFastLists_iterator< OBJECT >::HasReachedEnd(), G4ManyFastLists< OBJECT >::Holds(), G4DNAIRT::IRTSampling(), G4DNAIRT_geometries::IRTSampling(), G4ITTrackHolder::KillTracks(), G4ManyFastLists_iterator< OBJECT >::operator--(), G4ManyFastLists< OBJECT >::RemoveLists(), G4DNAIRT::SpaceBinning(), G4DNAIRT_geometries::SpaceBinning(), and G4FastList< OBJECT >::Watcher::~Watcher().
|
inline |
iterator G4FastList< OBJECT >::erase | ( | iterator | __first, |
iterator | __last | ||
) |
Complexity = constant By storing the node inside the object, we avoid searching through all the container.
iterator G4FastList< OBJECT >::erase | ( | OBJECT * | ) |
Referenced by G4ITTrackHolder::KillTracks().
|
protected |
|
protected |
|
static |
|
static |
|
inline |
Definition at line 333 of file G4FastList.hh.
References G4FastList< OBJECT >::fpNodeInManyLists.
Referenced by PriorityList::PushToListOfSecondaries().
|
static |
Complexity = constant
bool G4FastList< OBJECT >::Holds | ( | const OBJECT * | ) | const |
return an iterator that contains an empty node use for boundary checking only
|
protected |
iterator G4FastList< OBJECT >::insert | ( | iterator | , |
OBJECT * | |||
) |
|
private |
|
private |
|
private |
iterator G4FastList< OBJECT >::pop | ( | G4FastListNode< OBJECT > * | ) |
iterator G4FastList< OBJECT >::pop | ( | iterator | __first, |
iterator | __last | ||
) |
iterator G4FastList< OBJECT >::pop | ( | OBJECT * | ) |
Referenced by G4ManyFastLists< OBJECT >::NotifyDeletingList(), and G4ManyFastLists< OBJECT >::Remove().
|
static |
OBJECT * G4FastList< OBJECT >::pop_back | ( | ) |
|
inline |
|
inline |
void G4FastList< OBJECT >::remove | ( | OBJECT * | ) |
|
inline |
Definition at line 343 of file G4FastList.hh.
References G4FastList< OBJECT >::fWatchers.
Referenced by G4ManyFastLists< OBJECT >::Remove(), and G4FastList< OBJECT >::Watcher::StopWatching().
|
inline |
Definition at line 328 of file G4FastList.hh.
References G4FastList< OBJECT >::fpNodeInManyLists.
|
static |
|
inline |
Definition at line 357 of file G4FastList.hh.
References G4FastList< OBJECT >::fNbObjects.
Referenced by PriorityList::GetNTracks(), G4DNAIRT_geometries::Initialize(), G4ITTrackHolder::KillTracks(), and G4ITTrackHolder::MergeNextTimeToMainList().
void G4FastList< OBJECT >::transferTo | ( | G4FastList< OBJECT > * | ) |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 226 of file G4FastList.hh.
Referenced by G4FastList< OBJECT >::back().
|
protected |
Definition at line 224 of file G4FastList.hh.
|
protected |
Definition at line 221 of file G4FastList.hh.
Referenced by G4FastList< OBJECT >::back(), and G4FastList< OBJECT >::size().
|
protected |
Definition at line 317 of file G4FastList.hh.
Referenced by G4FastList< OBJECT >::GetListNode(), and G4FastList< OBJECT >::SetListNode().
|
protected |
Definition at line 316 of file G4FastList.hh.
Referenced by G4FastList< OBJECT >::AddWatcher(), and G4FastList< OBJECT >::RemoveWatcher().