exchange
Low-latency exchange in C++
Loading...
Searching...
No Matches
exchange::server::Quantity Struct Reference

#include <quantity.hpp>

Public Member Functions

constexpr Quantity ()=default
constexpr Quantity (const uint64_t value)
auto operator<=> (const Quantity &other) const =default
constexpr auto operator- (const Quantity &other) const
constexpr void operator+= (const Quantity &other)
constexpr void operator-= (const Quantity &other)

Public Attributes

uint64_t value {}

Constructor & Destructor Documentation

◆ Quantity() [1/2]

exchange::server::Quantity::Quantity ( )
constexprdefault
Here is the caller graph for this function:

◆ Quantity() [2/2]

exchange::server::Quantity::Quantity ( const uint64_t value)
inlineexplicitconstexpr

Member Function Documentation

◆ operator+=()

void exchange::server::Quantity::operator+= ( const Quantity & other)
inlineconstexpr
Here is the call graph for this function:

◆ operator-()

auto exchange::server::Quantity::operator- ( const Quantity & other) const
inlineconstexpr
Here is the call graph for this function:

◆ operator-=()

void exchange::server::Quantity::operator-= ( const Quantity & other)
inlineconstexpr
Here is the call graph for this function:

◆ operator<=>()

auto exchange::server::Quantity::operator<=> ( const Quantity & other) const
default
Here is the call graph for this function:

Member Data Documentation

◆ value

uint64_t exchange::server::Quantity::value {}

The documentation for this struct was generated from the following file:
  • server/common/include/server/common/model/value_object/quantity.hpp