HepMC3 event record library: OAttr< T > Struct Template Reference

HepMC3 event record library

Public Member Functions | Data Fields
OAttr< T > Struct Template Reference

## Detailed Description

template<typename T>
struct LHEF::OAttr< T >

Helper struct for output of attributes.

Definition at line 47 of file LHEF.h.

`#include <LHEF.h>`

Collaboration diagram for OAttr< T >:
[legend]

## Public Member Functions
| OAttr (const std::string &n, const T &v)

## Data Fields
std::string | name
T | val

## Constructor & Destructor Documentation

## ◆ OAttr()

template<typename T>

OAttr | ( | const std::string & | n,
|  | const T & | v )
| inline

Constructor

Definition at line 52 of file LHEF.h.

References name, and val.

## Field Documentation

## ◆ name

template<typename T>

std::string name

The name of the attribute being printed.

Definition at line 57 of file LHEF.h.

## ◆ val

template<typename T>

T val

The value of the attribute being printed.

Definition at line 62 of file LHEF.h.

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

- LHEF.h