type_safe.h Source File
|
CPP API
|
type_safe.h
Go to the documentation of this file.
base class to add default operator +, +=, -, -= to a class derived from TypeSafe.
Definition: type_safe.h:152
TS & operator-=(const TS &other)
Definition: type_safe.h:166
TS & operator+=(const TS &other)
Definition: type_safe.h:158
TS operator+(const TS &other) const
Definition: type_safe.h:154
TS operator-(const TS &other) const
Definition: type_safe.h:162
base class to add operator <, <=, >, >= to a class derived from TypeSafe.
Definition: type_safe.h:205
bool operator>=(const TS &other) const
Definition: type_safe.h:219
bool operator<=(const TS &other) const
Definition: type_safe.h:211
base class to add operator ++, – (pre- and post-) to a class derived from TypeSafe.
Definition: type_safe.h:122
base class to add operator *, *=, /, /= with a scalar to a class derived from TypeSafe.
Definition: type_safe.h:179
TS & operator/=(const S &other)
Definition: type_safe.h:193
TS operator/(const S &other) const
Definition: type_safe.h:189
TS & operator*=(const S &other)
Definition: type_safe.h:185
TS operator*(const S &other) const
Definition: type_safe.h:181
typesafe wrapper around any type to make function arguments, tuple elements, etc.
Definition: type_safe.h:42
static IOResult< Derived > deserialize(IOContext &io)
deserialize an object of this class.
Definition: type_safe.h:106
friend std::ostream & operator<<(std::ostream &os, const Derived &ts)
stream operators.
Definition: type_safe.h:86
void serialize(IOContext &io) const
serialize this.
Definition: type_safe.h:96
friend bool operator!=(const Derived &a, const Derived &b)
Definition: type_safe.h:78
friend bool operator==(const Derived &a, const Derived &b)
equality operators.
Definition: type_safe.h:74
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
IOResult< T > deserialize(IOContext &io, Tag< T > tag)
Restores an object from the data stored in an IO context.
Definition: io.h:860
void serialize(IOContext &io, const T &t)
Save data that describes an object in a format determined by the given context.
Definition: io.h:836
boost::outcome_v2::in_place_type_t< T > Tag
Type that is used for overload resolution.
Definition: io.h:407
auto success()
Create an object that is implicitly convertible to a succesful IOResult<void>.
Definition: io.h:359
constexpr std::tuple_element< I, std::tuple< Index< CategoryTags >... > >::type & get(Index< CategoryTags... > &i) noexcept
Retrieves the Index (by reference) at the Ith position of a MultiIndex.
Definition: index.h:294
boost::outcome_v2::unchecked< T, IOStatus > IOResult
Value-or-error type for operations that return a value but can fail.
Definition: io.h:353
Generated by