Faker C++
Loading...
Searching...
No Matches
faker::science Namespace Reference

Classes

struct  ChemicalElement
 
struct  Unit
 

Functions

FAKER_CXX_EXPORT ChemicalElement chemicalElement (Locale locale=Locale::en_US)
 Returns a random chemical element from the periodic table.
 
FAKER_CXX_EXPORT Unit unit (Locale locale=Locale::en_US)
 Returns a unit of measurement for either distance, mass, time, temp, current.
 
FAKER_CXX_EXPORT Unit distanceUnit (Locale locale=Locale::en_US)
 Returns a unit of measurement for either distance.
 
FAKER_CXX_EXPORT Unit timeUnit (Locale locale=Locale::en_US)
 Returns a unit of measurement for either time.
 
FAKER_CXX_EXPORT Unit massUnit (Locale locale=Locale::en_US)
 Returns a unit of measurement for either mass.
 
FAKER_CXX_EXPORT Unit tempUnit (Locale locale=Locale::en_US)
 Returns a unit of measurement for either temp.
 
FAKER_CXX_EXPORT Unit currentUnit (Locale locale=Locale::en_US)
 Returns a unit of measurement for either current.
 

Function Documentation

◆ chemicalElement()

FAKER_CXX_EXPORT ChemicalElement faker::science::chemicalElement ( Locale locale = Locale::en_US)

Returns a random chemical element from the periodic table.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Chemical element.
faker::science::chemicalElement() // Object of ChemicalElement containing info about a random element in the periodic
table.
FAKER_CXX_EXPORT ChemicalElement chemicalElement(Locale locale=Locale::en_US)
Returns a random chemical element from the periodic table.

◆ currentUnit()

FAKER_CXX_EXPORT Unit faker::science::currentUnit ( Locale locale = Locale::en_US)

Returns a unit of measurement for either current.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Current unit.
faker::science::currentUnit() // Object of Unit containing info about a random unit of measurement used to measure
current.
FAKER_CXX_EXPORT Unit currentUnit(Locale locale=Locale::en_US)
Returns a unit of measurement for either current.

◆ distanceUnit()

FAKER_CXX_EXPORT Unit faker::science::distanceUnit ( Locale locale = Locale::en_US)

Returns a unit of measurement for either distance.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Distance unit.
faker::science::distanceUnit() // Object of Unit containing info about a random unit of measurement used to measure
distance.
FAKER_CXX_EXPORT Unit distanceUnit(Locale locale=Locale::en_US)
Returns a unit of measurement for either distance.

◆ massUnit()

FAKER_CXX_EXPORT Unit faker::science::massUnit ( Locale locale = Locale::en_US)

Returns a unit of measurement for either mass.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Mass unit.
faker::science::massUnit() // Object of Unit containing info about a random unit of measurement used to measure mass.
FAKER_CXX_EXPORT Unit massUnit(Locale locale=Locale::en_US)
Returns a unit of measurement for either mass.

◆ tempUnit()

FAKER_CXX_EXPORT Unit faker::science::tempUnit ( Locale locale = Locale::en_US)

Returns a unit of measurement for either temp.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Temperture unit.
faker::science::tempUnit() // Object of Unit containing info about a random unit of measurement used to measure temp.
FAKER_CXX_EXPORT Unit tempUnit(Locale locale=Locale::en_US)
Returns a unit of measurement for either temp.

◆ timeUnit()

FAKER_CXX_EXPORT Unit faker::science::timeUnit ( Locale locale = Locale::en_US)

Returns a unit of measurement for either time.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Time unit.
faker::science::timeUnit() // Object of Unit containing info about a random unit of measurement used to measure time.
FAKER_CXX_EXPORT Unit timeUnit(Locale locale=Locale::en_US)
Returns a unit of measurement for either time.

◆ unit()

FAKER_CXX_EXPORT Unit faker::science::unit ( Locale locale = Locale::en_US)

Returns a unit of measurement for either distance, mass, time, temp, current.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Unit.
faker::science::unit() // Object of Unit containing info about a random unit of measurement.
FAKER_CXX_EXPORT Unit unit(Locale locale=Locale::en_US)
Returns a unit of measurement for either distance, mass, time, temp, current.