ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::VectorTrackContainer Class Referencefinal

Track container backend using std::vector for storage. More...

#include <Acts/EventData/VectorTrackContainer.hpp>

Inheritance diagram for Acts::VectorTrackContainer:
[legend]
Collaboration diagram for Acts::VectorTrackContainer:
[legend]

Public Member Functions

 VectorTrackContainer (const ConstVectorTrackContainer &other)
 Construct from const container.
 VectorTrackContainer (const VectorTrackContainer &other)=default
 Copy constructor.
 VectorTrackContainer (VectorTrackContainer &&)=default
 Move constructor.
void clear ()
 Clear all tracks.
void reserve (IndexType size)
 Reserve space for tracks.
std::size_t size () const
 Get the number of tracks in the container.

Detailed Description

Track container backend using std::vector for storage.

Constructor & Destructor Documentation

◆ VectorTrackContainer() [1/2]

Acts::VectorTrackContainer::VectorTrackContainer ( const VectorTrackContainer & other)
default

Copy constructor.

Parameters
otherThe container to copy

◆ VectorTrackContainer() [2/2]

Acts::VectorTrackContainer::VectorTrackContainer ( const ConstVectorTrackContainer & other)
explicit

Construct from const container.

Parameters
otherConst container to copy from

Member Function Documentation

◆ reserve()

void Acts::VectorTrackContainer::reserve ( IndexType size)

Reserve space for tracks.

Parameters
sizeNumber of tracks to reserve space for

◆ size()

std::size_t Acts::VectorTrackContainer::size ( ) const

Get the number of tracks in the container.

Returns
Number of tracks