Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::core::Element Struct Reference

Represents a chemical element with its symbol and unique ID. More...

#include <Atom.hpp>

Collaboration diagram for correlation::core::Element:

Public Member Functions

constexpr bool operator== (const Element &other) const
 Equality operator for Element.

Public Attributes

std::string symbol
 Chemical symbol (e.g., "Si").
ElementID id {-1}
 Assigned unique integer ID.

Detailed Description

Represents a chemical element with its symbol and unique ID.

Member Function Documentation

◆ operator==()

bool correlation::core::Element::operator== ( const Element & other) const
inlineconstexpr

Equality operator for Element.

Parameters
[in]otherThe other element to compare against.
Returns
True if symbols are identical.

Member Data Documentation

◆ id

ElementID correlation::core::Element::id {-1}

Assigned unique integer ID.

◆ symbol

std::string correlation::core::Element::symbol

Chemical symbol (e.g., "Si").


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