ATLAS Offline Software
Namespaces | Enumerations
IndexTrackingPolicy.h File Reference

Describes the possible index tracking policies. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 SG
 Forward declaration.
 

Enumerations

enum  SG::IndexTrackingPolicy { SG::DEFAULT_TRACK_INDICES, SG::ALWAYS_TRACK_INDICES, SG::NEVER_TRACK_INDICES }
 

Detailed Description

Describes the possible index tracking policies.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Jan, 2013 If the payload of a container does not derive from SG::AuxElement, then the container does not track indices (and thus cannot have associated aux data). If it does, whether a container will track indices (and potentially have aux data) is governed by both the ownership policy and the index tracking policy. The default value for the index tracking policy is DEFAULT_TRACK_INDICES. In that case, we track indices if this container owns its elements (OWN_ELEMENTS) and we don't if the container does not down its elements (VIEW_ELEMENTS). This is the usual case. However, the index tracking policy may also be set to ALWAYS_TRACK_INDICES or NEVER_TRACK_INDICES to override this. (The major foreseen use case for this is to allow index tracking for a view container populated with objects allocated from a DataPool.)

Definition in file IndexTrackingPolicy.h.