DryChem 1.0.0
A generic, compile-time C++ toolbox with no dependencies for the modern computational chemistry project.
Loading...
Searching...
No Matches
Fruit Class Reference
Inheritance diagram for Fruit:

Public Types

enum class  Rankings { Worst , PrettyGood , Great , Best }
 

Public Member Functions

 Fruit (std::string_view Name, Rankings Rank) noexcept
 
std::string getName () const
 

Private Attributes

std::string name
 
int rank
 

Friends

bool operator== (const Fruit &lhs, const Fruit &rhs) noexcept
 
bool operator< (const Fruit &lhs, const Fruit &rhs) noexcept
 

Member Enumeration Documentation

◆ Rankings

enum class Fruit::Rankings
strong
Enumerator
Worst 
PrettyGood 
Great 
Best 

Constructor & Destructor Documentation

◆ Fruit()

Fruit::Fruit ( std::string_view Name,
Rankings Rank )
inlinenoexcept

References name.

Referenced by operator<, and operator==.

Member Function Documentation

◆ getName()

std::string Fruit::getName ( ) const
inline

References name.

Referenced by printFruitComparisons().

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const Fruit & lhs,
const Fruit & rhs )
friend

References Fruit().

◆ operator<

bool operator< ( const Fruit & lhs,
const Fruit & rhs )
friend

References Fruit().

Member Data Documentation

◆ name

std::string Fruit::name
private

Referenced by Fruit(), and getName().

◆ rank

int Fruit::rank
private

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