Belle II Software development
|
This class serves as a wrapper around all things that should go into a QuadTree. More...
#include <QuadTreeItem.h>
Public Member Functions | |
QuadTreeItem (AData *data) | |
Constructor. | |
AData * | getPointer () const |
Returns the underlying data. | |
bool | isUsed () const |
Flag is set if the item was used as a result of the quad tree search and should not be used in the next quad tree search round. | |
void | setUsedFlag (bool usedFlag=true) |
Set the used flag if you do not want that item to go into the next search round again. | |
void | unsetUsedFlag () |
Unset the used flag again if you have noticed that a previous setting was wrong. | |
bool | isUsed () const |
As special case: the QuadTreeHitWrapper has a used flag itself. | |
void | setUsedFlag (bool usedFlag) |
As special case: the QuadTreeHitWrapper has a used flag itself. | |
bool | isUsed () const |
As special case: the CDCSegment2D has a used flag itself. | |
void | setUsedFlag (bool usedFlag) |
As special case: the CDCSegment2D has a used flag itself. | |
Private Member Functions | |
QuadTreeItem (const QuadTreeItem ©)=delete | |
Do not copy! | |
QuadTreeItem & | operator= (QuadTreeItem const ©)=delete |
Do not copy! | |
Private Attributes | |
AData * | m_data |
A pointer to the underlying item data. | |
bool | m_usedFlag |
This flag can be set to not use the item in the next quad tree search round. | |
This class serves as a wrapper around all things that should go into a QuadTree.
For usage in the QuadTree we need to provide a used flag. If your AData-class does provide a used flag itself, just spezialize this template as done for the CDCWireHit and CDCSegment2D below.
Definition at line 27 of file QuadTreeItem.h.
|
inlineexplicit |
Constructor.
Definition at line 30 of file QuadTreeItem.h.
|
inline |
Returns the underlying data.
Definition at line 43 of file QuadTreeItem.h.
|
inline |
Flag is set if the item was used as a result of the quad tree search and should not be used in the next quad tree search round.
Definition at line 52 of file QuadTreeItem.h.
|
inline |
Set the used flag if you do not want that item to go into the next search round again.
Definition at line 58 of file QuadTreeItem.h.
|
inline |
Unset the used flag again if you have noticed that a previous setting was wrong.
Definition at line 64 of file QuadTreeItem.h.
|
private |
A pointer to the underlying item data.
Definition at line 71 of file QuadTreeItem.h.
|
private |
This flag can be set to not use the item in the next quad tree search round.
Definition at line 74 of file QuadTreeItem.h.