HepMC3 event record library
GenVertex_fwd.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // This file is part of HepMC
4 // Copyright (C) 2014-2019 The HepMC collaboration (see AUTHORS for details)
5 //
6 ///
7 /// @file GenVertex_fwd.h
8 /// @brief Minimal forward declarations for GenVertex
9 ///
10 
11 #ifndef HEPMC3_GENVERTEX_FWD_H
12 #define HEPMC3_GENVERTEX_FWD_H
13 
14 #include <memory>
15 
16 namespace HepMC3{
17 
18 class GenVertex;
19 
20 using GenVertexPtr = std::shared_ptr<GenVertex>;
21 using ConstGenVertexPtr = std::shared_ptr<const GenVertex>;
22 
23 template<typename T>
24 using GenVertex_type = typename std::conditional<std::is_const<typename T::element_type>::value, ConstGenVertexPtr, GenVertexPtr>::type;
25 
26 }
27 
28 #endif