ad_physics
Classes | Namespaces | Macros | Functions
DurationSquared.hpp File Reference
#include <cmath>
#include <iostream>
#include <limits>
#include <sstream>
#include <stdexcept>
#include "spdlog/fmt/ostr.h"
#include "spdlog/spdlog.h"
Include dependency graph for DurationSquared.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ad::physics::DurationSquared
 DataType DurationSquared. More...
 
class  std::numeric_limits<::ad::physics::DurationSquared >
 specialization of the std::numeric_limits for DurationSquared More...
 

Namespaces

 ad
 namespace ad
 
 ad::physics
 namespace physics
 

Macros

#define AD_PHYSICS_DURATIONSQUARED_THROWS_EXCEPTION   1
 Define to indicate whether throwing exceptions is enabled.
 
#define _AD_PHYSICS_DURATIONSQUARED_EXPLICIT_CONVERSION_
 Enable/Disable explicit conversion. Currently set to "implicit conversion allowed".
 
#define GEN_GUARD_AD_PHYSICS_DURATIONSQUARED
 protect the definition of functions from duplicates by typedef usage within other data types
 

Functions

inline ::ad::physics::DurationSquared operator* (const double &other, ::ad::physics::DurationSquared const &value)
 standard arithmetic operator More...
 
inline ::ad::physics::DurationSquared std::fabs (const ::ad::physics::DurationSquared other)
 overload of the std::fabs for DurationSquared
 
::ad::physics::Duration std::sqrt (::ad::physics::DurationSquared const other)
 overload of the std::sqrt for DurationSquared More...
 
std::ostream & ad::physics::operator<< (std::ostream &os, DurationSquared const &_value)
 standard ostream operator More...
 
std::string std::to_string (::ad::physics::DurationSquared const &value)
 overload of the std::to_string for DurationSquared
 

Detailed Description

Generated file

Generator Version : 11.0.0-1997

Function Documentation

◆ operator*()

inline ::ad::physics::DurationSquared operator* ( const double &  other,
::ad::physics::DurationSquared const &  value 
)

standard arithmetic operator

Parameters
[in]otherOther DurationSquared as double value
[in]valueDurationSquared value
Returns
Result of arithmetic operation.
Note
throws a std::out_of_range exception if value or the result of the operation is not valid

◆ sqrt()

::ad::physics::Duration std::sqrt ( ::ad::physics::DurationSquared const  other)

overload of the std::sqrt for DurationSquared

The square root of a squared type is basic type: Duration.