herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
XML::Element::Attribute Struct Reference

Represent an attribute. More...

#include <Element.h>

Public Member Functions

template<class T >
 Attribute (const std::string &newName, const T &newValue)
 Construct an attribute.
 
bool operator== (const Attribute &other)
 Comparison operators for attributes.
 
bool operator!= (const Attribute &other)
 

Public Attributes

std::string name
 The attribute name.
 
std::string value
 The attribute value.
 

Detailed Description

Represent an attribute.

Definition at line 168 of file Element.h.

Constructor & Destructor Documentation

◆ Attribute()

template<class T >
XML::Element::Attribute::Attribute ( const std::string &  newName,
const T &  newValue 
)
inline

Construct an attribute.

Definition at line 184 of file Element.h.

References value.

Member Function Documentation

◆ operator!=()

bool XML::Element::Attribute::operator!= ( const Attribute other)
inline

Definition at line 202 of file Element.h.

◆ operator==()

bool XML::Element::Attribute::operator== ( const Attribute other)
inline

Comparison operators for attributes.

Definition at line 198 of file Element.h.

References name, and value.

Member Data Documentation

◆ name

std::string XML::Element::Attribute::name

The attribute name.

Definition at line 173 of file Element.h.

Referenced by operator==().

◆ value

std::string XML::Element::Attribute::value

The attribute value.

Definition at line 178 of file Element.h.

Referenced by Attribute(), and operator==().


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