Fork me on GitHub

source: git/external/HepMC3/GenVertex_fwd.h@ 95a917c

Last change on this file since 95a917c was 95a917c, checked in by Pavel Demin <pavel.demin@…>, 3 years ago

add HepMC3 library

  • Property mode set to 100644
File size: 616 bytes
Line 
1// -*- C++ -*-
2//
3// This file is part of HepMC
4// Copyright (C) 2014-2020 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
16namespace HepMC3 {
17
18class GenVertex;
19
20using GenVertexPtr = std::shared_ptr<GenVertex>;
21using ConstGenVertexPtr = std::shared_ptr<const GenVertex>;
22
23template<typename T>
24using GenVertex_type = typename std::conditional<std::is_const<typename T::element_type>::value, ConstGenVertexPtr, GenVertexPtr>::type;
25
26}
27
28#endif
Note: See TracBrowser for help on using the repository browser.