Belle II Software development
VertexVector Class Reference

Need this container for exception-safe cleanup, GFRave's interface isn't exception-safe as is. More...

#include <VertexVector.h>

Public Member Functions

 ~VertexVector () noexcept
 Detor which cleans up the pointers created by the vertex factory.
 
size_t size () const noexcept
 Return size of vertex vector.
 
genfit::GFRaveVertex *& operator[] (int idx)
 Random Access operator.
 

Public Attributes

std::vector< genfit::GFRaveVertex * > v
 Fitted vertices.
 

Detailed Description

Need this container for exception-safe cleanup, GFRave's interface isn't exception-safe as is.

I guess this could interface fail if delete throws an exception ...

Definition at line 24 of file VertexVector.h.

Constructor & Destructor Documentation

◆ ~VertexVector()

~VertexVector ( )
inlinenoexcept

Detor which cleans up the pointers created by the vertex factory.

Definition at line 29 of file VertexVector.h.

30 {
31 for (size_t i = 0; i < v.size(); ++i)
32 delete v[i];
33 }
std::vector< genfit::GFRaveVertex * > v
Fitted vertices.
Definition: VertexVector.h:42

Member Function Documentation

◆ operator[]()

genfit::GFRaveVertex *& operator[] ( int  idx)
inline

Random Access operator.

Definition at line 39 of file VertexVector.h.

39{ return v[idx]; }

◆ size()

size_t size ( ) const
inlinenoexcept

Return size of vertex vector.

Definition at line 36 of file VertexVector.h.

36{ return v.size(); }

Member Data Documentation

◆ v

std::vector<genfit::GFRaveVertex*> v

Fitted vertices.

Definition at line 42 of file VertexVector.h.


The documentation for this class was generated from the following file: