| OpenMS 2.5.0

Public Member Functions | Public Attributes | List of all members
CVTerm::Unit Struct Reference

`#include <OpenMS/METADATA/CVTerm.h>`

## Public Member Functions

| Unit ()=default
| Default constructor. More...
| Unit (const String &p_accession, const String &p_name, const String &p_cv_ref)
| Unit (const Unit &)=default
| Copy constructor. More...
| Unit (Unit &&)=default
| Move constructor. More...
virtual | ~Unit ()
| Destructor. More...
Unit & | operator= (const Unit &)=default
| Assignment operator. More...
Unit & | operator= (Unit &&) &=default
| Move assignment operator. More...
bool | operator== (const Unit &rhs) const
bool | operator!= (const Unit &rhs) const

## Public Attributes

String | accession
String | name
String | cv_ref

## Constructor & Destructor Documentation

## ◆ Unit() [1/4]

Unit | ( |  | ) |

default

Default constructor.

## ◆ Unit() [2/4]

Unit | ( | const String & | p_accession,
|  | const String & | p_name,
|  | const String & | p_cv_ref
| ) |  |

inline

## ◆ Unit() [3/4]

Unit | ( | const Unit & |  | ) |

default

Copy constructor.

## ◆ Unit() [4/4]

Unit | ( | Unit && |  | ) |

default

Move constructor.

## ◆ ~Unit()

virtual ~Unit | ( |  | ) |

inline virtual

Destructor.

## Member Function Documentation

## ◆ operator!=()

bool operator!= | ( | const Unit & | rhs | ) | const

inline

## ◆ operator=() [1/2]

Unit& operator= | ( | const Unit & |  | ) |

default

Assignment operator.

## ◆ operator=() [2/2]

Unit& operator= | ( | Unit && |  | ) | &

default

Move assignment operator.

## ◆ operator==()

bool operator== | ( | const Unit & | rhs | ) | const

inline

References CVTerm::Unit::accession, CVTerm::Unit::cv_ref, and CVTerm::Unit::name.

## Member Data Documentation

## ◆ accession

String accession

Referenced by CVTerm::Unit::operator==().

## ◆ cv_ref

String cv_ref

Referenced by CVTerm::Unit::operator==().

## ◆ name

String name

Referenced by CVTerm::Unit::operator==().