Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::core Namespace Reference

ARA basic core types namespace. More...

Classes

class  ErrorCode
 A wrapper around the raw error code in a specific ErrorDomain. More...
 
class  ErrorDomain
 A class that defines the domain of an ErrorCode to avoid code interferences. More...
 
class  InstanceSpecifier
 AUTOSAR shortname-path wrapper. More...
 
class  Optional
 A wrapper around a possible value. More...
 
class  Result
 A wrapper around the callee's return value and its possible error. More...
 
class  Result< void, E >
 A wrapper around the callee's possible error. More...
 

Functions

bool operator== (std::string lhs, const InstanceSpecifier &rhs) noexcept
 
bool operator!= (std::string lhs, const InstanceSpecifier &rhs) noexcept
 
template<typename T >
bool operator== (const Optional< T > &lhs, const Optional< T > &rhs) noexcept
 
template<typename T >
bool operator!= (const Optional< T > &lhs, const Optional< T > &rhs) noexcept
 
template<typename T , typename E >
bool operator== (const Result< T, E > &lhs, const Result< T, E > &rhs)
 
template<typename T , typename E >
bool operator!= (const Result< T, E > &lhs, const Result< T, E > &rhs)
 
template<typename T , typename E >
bool operator== (const Result< T, E > &lhs, const T &rhs)
 
template<typename T , typename E >
bool operator== (const T &lhs, const Result< T, E > &rhs)
 
template<typename T , typename E >
bool operator!= (const Result< T, E > &lhs, const T &rhs)
 
template<typename T , typename E >
bool operator!= (const T &lhs, const Result< T, E > &rhs)
 
template<typename T , typename E >
bool operator== (const Result< T, E > &lhs, const E &rhs)
 
template<typename T , typename E >
bool operator== (const E &lhs, const Result< T, E > &rhs)
 
template<typename T , typename E >
bool operator!= (const Result< T, E > &lhs, const E &rhs)
 
template<typename T , typename E >
bool operator!= (const E &lhs, const Result< T, E > &rhs)
 
template<typename E >
bool operator== (const Result< void, E > &lhs, const Result< void, E > &rhs)
 
template<typename E >
bool operator!= (const Result< void, E > &lhs, const Result< void, E > &rhs)
 

Detailed Description

ARA basic core types namespace.

Function Documentation

◆ operator!=() [1/3]

template<typename T >
bool ara::core::operator!= ( const Optional< T > &  lhs,
const Optional< T > &  rhs 
)
inlinenoexcept
Returns
False if both optional instances contain a value and their values are equal or both do not contain a value, otherwise true

◆ operator!=() [2/3]

template<typename T , typename E >
bool ara::core::operator!= ( const Result< T, E > &  lhs,
const Result< T, E > &  rhs 
)
inline
Returns
False if both instances contain equal values or equal errors, otherwise true

◆ operator!=() [3/3]

template<typename E >
bool ara::core::operator!= ( const Result< void, E > &  lhs,
const Result< void, E > &  rhs 
)
inline
Returns
False if both instances contain no errors or equal errors, otherwise true

◆ operator==() [1/3]

template<typename T >
bool ara::core::operator== ( const Optional< T > &  lhs,
const Optional< T > &  rhs 
)
inlinenoexcept
Returns
True if both optional instances contain a value and their values are equal or both do not contain a value, otherwise false

◆ operator==() [2/3]

template<typename T , typename E >
bool ara::core::operator== ( const Result< T, E > &  lhs,
const Result< T, E > &  rhs 
)
inline
Returns
True if both instances contain equal values or equal errors, otherwise false

◆ operator==() [3/3]

template<typename E >
bool ara::core::operator== ( const Result< void, E > &  lhs,
const Result< void, E > &  rhs 
)
inline
Returns
True if both instances contain no errors or equal errors, otherwise false