|
Bifrost SDK
Bifrost SDK documentation
|
Namespaces | |
| namespace | StringLiterals |
| namespace | StringViewLiterals |
Classes | |
| class | Any |
| Generic value class that allows for storage of a value of any type. More... | |
| class | AnyPayloadTraits |
| Traits about the to-be-payload of an Amino::Any. More... | |
| class | Array |
Define a Amino array of elements of type T. More... | |
| class | EntityIndexedList |
| class | ForwardTaskObserver |
| Base class for a ITaskObserver that forwards notifications to a given TaskNotifier. More... | |
| class | ITaskObserver |
| Abstract interface for observing the progress of a task. More... | |
| class | Message |
| A Message object that of a specific MessageKind, optional MessageClass, and a MessageText that relates to an optional Source. More... | |
| class | MessageClass |
| The "class" of the message. More... | |
| class | MessageFilter |
| Helper class to filter messages based on their MessageKind. More... | |
| class | MessageText |
| The text content from which to construct a message (with optional formatting specifiers). More... | |
| class | MutablePtr |
| Transient version of Amino::Ptr<T> which allows mutable access to the pointee. More... | |
| class | NamingUtilities |
| A collection of Naming Utility methods. More... | |
| struct | NoStopState_t |
| A tag type to indicate that a StopSource should be created without a valid state (such StopSource can't be used to request a stop). More... | |
| struct | PointeeTraits |
| Traits about the to-be-pointee of an Amino::Ptr<T> or Amino::MutablePtr<T> class. More... | |
| class | Ptr |
| Smart pointers allowing custom user classes (opaque classes) to be used within Amino graphs. More... | |
| struct | PtrDefaultFlag |
| Flag that may be passed when creating a Ptr, to make it contain a default value as its pointee. More... | |
| class | PtrGuard |
| Helper guard to allow mutation on a pointee for the lifescope of the PtrGuard<T> but then reassigning to the source Ptr upon its destruction. More... | |
| struct | PtrGuardUniqueFlag |
| Flag that may be passed when creating a PtrGuard. More... | |
| class | RuntimeServices |
| Runtime service that is used by operators. More... | |
| class | Source |
| Generic opaque handle to a source (provenance). More... | |
| class | Span |
| The class template span describes an object that can refer to a contiguous sequence of objects with the first element of the sequence at position zero. More... | |
| class | SpanParam |
| Same as Span but the constructor from a range is implicit, making it more convenient and safe to use as a function input parameter. More... | |
| class | StopCallback |
| A callback that can be attached to a StopToken. More... | |
| class | StopSource |
| A source that can be used to request a stop. More... | |
| class | StopToken |
| A token that can be used to check if a stop has been requested. More... | |
| class | String |
| The string class used by Amino. More... | |
| class | StringLiteral |
| class | StringView |
| String view class (similar to std::string_view). More... | |
| class | TaskNotifier |
| Class referencing (non-owning) a concrete ITaskObserver. More... | |
| class | TaskObserver |
| Class managing (with unique ownership) a concrete ITaskObserver. More... | |
| class | TaskObserverT |
| Typed-version of TaskObserver. More... | |
| class | TaskProgressNotifier |
| RAII-style progress notifier helper. More... | |
| class | TaskStatus |
| The completion status of a task. More... | |
| class | TypeId |
| Type identifier for a type. More... | |
Typedefs | |
| template<unsigned Dimension, typename T > | |
| using | ArrayD_t = Internal::MultiDimensionalArray_t< Dimension, T > |
| Helper alias for multidimensional array types. More... | |
| typedef EntityIndexedList< const Type > | TypeConstIndexedList |
Enumerations | |
| enum class | MessageKind : int { eError , eWarning , eInfo , eDebug } |
| The kind of message (error, warning, info, debug). More... | |
| enum class | RuntimeMessageCategory : unsigned short { kError = 1 , kWarning = 2 , kInfo = 3 } |
| Category of the message logged at runtime (when executing a graph). More... | |
Functions | |
| void | swap (Any &lhs, Any &rhs) noexcept |
| Swap the payloads of two instances of Any. More... | |
| template<class ValueType , typename = std::enable_if_t<!std::is_same<void, ValueType>::value>> | |
| std::add_pointer_t< std::add_const_t< ValueType > > | any_cast (Any const *v) noexcept |
| Cast an instance of Any to a payload type. More... | |
| template<class ValueType , typename = std::enable_if_t<!std::is_same<void, ValueType>::value>> | |
| std::add_pointer_t< ValueType > | any_cast (Any *v) noexcept |
| Cast an instance of Any to a payload type. More... | |
| template<class ValueType , typename = std::enable_if_t<std::is_same<void, ValueType>::value>> | |
| void const * | any_cast (Any const *v) noexcept |
| Get the pointer the payload of the Any as const void*. More... | |
| template<typename ValueType > | |
| ValueType | any_cast (Any const &v) noexcept |
| Cast an instance of Any to a payload type. More... | |
| template<typename ValueType > | |
| ValueType | any_cast (Any &&v) noexcept |
| Cast an instance of Any to a payload type. More... | |
| template<typename T > | |
| Ptr (MutablePtr< T >) -> Ptr< T > | |
| Deduction guide for Ptr. More... | |
| template<class T > | |
| void | swap (Ptr< T > &lhs, Ptr< T > &rhs) noexcept |
| Swap two pointers. More... | |
| template<class T > | |
| void | swap (MutablePtr< T > &lhs, MutablePtr< T > &rhs) noexcept |
| Swap two pointers. More... | |
| template<class T , class... Args> | |
| Ptr< T > | newClassPtr (Args &&... args) |
| Creates a Ptr holding a new T constructed from the given arguments. More... | |
| template<class T , class E > | |
| Ptr< T > | newClassPtr (std::initializer_list< E > list) |
| Creates a Ptr holding a new T constructed from the given initializer_list. More... | |
| template<class T , class... Args> | |
| MutablePtr< T > | newMutablePtr (Args &&... args) |
| Creates a MutablePtr holding a new T constructed from the given arguments. More... | |
| template<class T , class E > | |
| MutablePtr< T > | newMutablePtr (std::initializer_list< E > list) |
| Creates a MutablePtr holding a new T constructed from the given initializer_list. More... | |
| AMINO_CORE_SHARED_DECL void | swap (String &x, String &y) |
| Swap two strings( non member ) More... | |
| std::size_t | hash_value (String const &b) |
| Boost hash specialization for Amino::String. More... | |
| std::ostream & | operator<< (std::ostream &os, const String &str) |
Insert the contents of the string str into the output stream os. More... | |
| template<typename T > | |
| TypeId | getTypeId () noexcept |
| Returns the TypeId for the given Type. More... | |
| AMINO_INTERNAL_DEPRECATED ("Amino::isJobCancelled is deprecated and now always returns false. " "Use a 'StopToken const& jobport instead. ") inline bool isJobCancelled() | |
| template<typename T > | |
| constexpr void | warn_if_unsupported_element () |
| Helpers to produce a warning on unsupported element types when constructing Amino::Array of such types. More... | |
| template<typename T > | |
| PtrGuard (Ptr< T > &) -> PtrGuard< T > | |
| Deduction guide for PtrGuard. More... | |
| template<typename T > | |
| PtrGuard (Ptr< T > &, PtrGuardUniqueFlag) -> PtrGuard< T > | |
| Deduction guide for PtrGuard. More... | |
Equality comparison | |
| template<class T , class U > | |
| bool | operator== (Ptr< T > const &x, Ptr< U > const &y) noexcept |
| Return true if pointers are equal. More... | |
| template<class T > | |
| bool | operator== (const Ptr< T > &x, std::nullptr_t) noexcept |
| Return true if pointers are equal. More... | |
| template<class T > | |
| bool | operator== (std::nullptr_t, const Ptr< T > &y) noexcept |
| Return true if pointers are equal. More... | |
| template<class T , class U > | |
| bool | operator!= (Ptr< T > const &x, Ptr< U > const &y) noexcept |
| Return true if pointers are not equal. More... | |
| template<class T > | |
| bool | operator!= (const Ptr< T > &x, std::nullptr_t) noexcept |
| Return true if pointers are equal. More... | |
| template<class T > | |
| bool | operator!= (std::nullptr_t, const Ptr< T > &y) noexcept |
| Return true if pointers are equal. More... | |
Ordering comparison | |
| template<class T , class U > | |
| bool | operator< (Ptr< T > const &x, Ptr< U > const &y) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator< (const Ptr< T > &x, std::nullptr_t) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator< (std::nullptr_t, const Ptr< T > &y) noexcept |
| Compares the pointer values. More... | |
| template<class T , class U > | |
| bool | operator> (Ptr< T > const &x, Ptr< U > const &y) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator> (const Ptr< T > &x, std::nullptr_t) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator> (std::nullptr_t, const Ptr< T > &y) noexcept |
| Compares the pointer values. More... | |
| template<class T , class U > | |
| bool | operator<= (Ptr< T > const &x, Ptr< U > const &y) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator<= (const Ptr< T > &x, std::nullptr_t) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator<= (std::nullptr_t, const Ptr< T > &y) noexcept |
| Compares the pointer values. More... | |
| template<class T , class U > | |
| bool | operator>= (Ptr< T > const &x, Ptr< U > const &y) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator>= (const Ptr< T > &x, std::nullptr_t) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator>= (std::nullptr_t, const Ptr< T > &y) noexcept |
| Compares the pointer values. More... | |
| template<class T , class U > | |
| bool | operator< (MutablePtr< T > const &x, MutablePtr< U > const &y) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator< (const MutablePtr< T > &x, std::nullptr_t) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator< (std::nullptr_t, const MutablePtr< T > &y) noexcept |
| Compares the pointer values. More... | |
| template<class T , class U > | |
| bool | operator> (MutablePtr< T > const &x, MutablePtr< U > const &y) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator> (const MutablePtr< T > &x, std::nullptr_t) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator> (std::nullptr_t, const MutablePtr< T > &y) noexcept |
| Compares the pointer values. More... | |
| template<class T , class U > | |
| bool | operator<= (MutablePtr< T > const &x, MutablePtr< U > const &y) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator<= (const MutablePtr< T > &x, std::nullptr_t) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator<= (std::nullptr_t, const MutablePtr< T > &y) noexcept |
| Compares the pointer values. More... | |
| template<class T , class U > | |
| bool | operator>= (MutablePtr< T > const &x, MutablePtr< U > const &y) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator>= (const MutablePtr< T > &x, std::nullptr_t) noexcept |
| Compares the pointer values. More... | |
| template<class T > | |
| bool | operator>= (std::nullptr_t, const MutablePtr< T > &y) noexcept |
| Compares the pointer values. More... | |
Comparison operator with nullptr. | |
| template<class T , class U > | |
| bool | operator== (MutablePtr< T > const &x, MutablePtr< U > const &y) noexcept |
| Return true if pointers are equal. More... | |
| template<class T > | |
| bool | operator== (const MutablePtr< T > &x, std::nullptr_t) noexcept |
| Return true if pointers are equal. More... | |
| template<class T > | |
| bool | operator== (std::nullptr_t, const MutablePtr< T > &y) noexcept |
| Return true if pointers are equal. More... | |
| template<class T , class U > | |
| bool | operator!= (MutablePtr< T > const &x, MutablePtr< U > const &y) noexcept |
| Return true if pointers are not equal. More... | |
| template<class T > | |
| bool | operator!= (const MutablePtr< T > &x, std::nullptr_t) noexcept |
| Return true if pointers are equal. More... | |
| template<class T > | |
| bool | operator!= (std::nullptr_t, const MutablePtr< T > &y) noexcept |
| Return true if pointers are equal. More... | |
Pointer casts | |
| template<class T , class U > | |
| Ptr< T > | static_pointer_cast (Ptr< U > const &ptr) noexcept |
| Static pointer cast. More... | |
| template<class T , class U > | |
| Ptr< T > | static_pointer_cast (Ptr< U > &&ptr) noexcept |
| Static pointer cast. More... | |
| template<class T , class U > | |
| Ptr< T > | dynamic_pointer_cast (Ptr< U > const &ptr) noexcept |
| Dynamic pointer cast. More... | |
| template<class T , class U > | |
| Ptr< T > | dynamic_pointer_cast (Ptr< U > &&ptr) noexcept |
| Dynamic pointer cast. More... | |
| template<typename T > | |
| std::enable_if_t< PtrInternal::DefaultPtrTraits::has_default_class< T >::value, Ptr< T > > | makeDefaultPtr () |
| Creates a Ptr holding the default value for T. More... | |
| template<typename T > | |
| std::enable_if_t< PtrInternal::DefaultPtrTraits::is_array< T >::value, Ptr< T > > | makeDefaultPtr () |
| Creates a Ptr holding the default value for T. More... | |
| template<typename T > | |
| std::enable_if_t< !PtrInternal::DefaultPtrTraits::is_defaultable< T >::value, Ptr< T > > | makeDefaultPtr () |
| Creates a Ptr holding the default value for T. More... | |
| template<typename T > | |
| PtrGuard< T > | createPtrGuard (Ptr< T > &src) |
| Create a PtrGuard for the given Ptr. More... | |
| template<typename T1 , typename T2 > | |
| PtrGuard< T1 > | createPtrGuard (Ptr< T2 > &src) |
| Create a PtrGuard for the given Ptr. More... | |
| template<typename T > | |
| PtrGuard< T > | createPtrGuard (Ptr< T > &src, PtrGuardUniqueFlag) |
| Create a PtrGuard for the given Ptr. More... | |
| template<typename T > | |
| Span (T *, size_t) -> Span< T > | |
| Deduction guides for Span. More... | |
| template<typename T > | |
| Span (T *, T *) -> Span< T > | |
| Deduction guides for Span. More... | |
| template<typename R > | |
| Span (R &&) -> Span< std::remove_pointer_t< decltype(std::declval< R >().data())> > | |
| Deduction guides for Span. More... | |
| template<typename T > | |
| SpanParam (T *, size_t) -> SpanParam< T > | |
| Deduction guides for SpanParam. More... | |
| template<typename T > | |
| SpanParam (T *, T *) -> SpanParam< T > | |
| Deduction guides for SpanParam. More... | |
| template<typename R > | |
| SpanParam (R &&) -> SpanParam< std::remove_pointer_t< decltype(std::declval< R >().data())> > | |
| Deduction guides for SpanParam. More... | |
| template<typename Callback > | |
| StopCallback (StopToken const &, Callback) -> StopCallback< Callback > | |
| Deduction guides for StopCallback. More... | |
| template<typename Callback > | |
| StopCallback (StopToken &&, Callback) -> StopCallback< Callback > | |
| Deduction guides for StopCallback. More... | |
| AMINO_CORE_SHARED_DECL String | operator+ (const String &lhs, const String &rhs) |
| Concatenation operators( non member ) More... | |
| AMINO_CORE_SHARED_DECL String | operator+ (const String &lhs, const char *rhs) |
| Concatenation operators( non member ) More... | |
| AMINO_CORE_SHARED_DECL String | operator+ (const char *lhs, const String &rhs) |
| Concatenation operators( non member ) More... | |
| AMINO_CORE_SHARED_DECL String | operator+ (const String &lhs, char rhs) |
| Concatenation operators( non member ) More... | |
| AMINO_CORE_SHARED_DECL String | operator+ (char lhs, const String &rhs) |
| Concatenation operators( non member ) More... | |
| template<typename LHS , typename RHS > | |
| AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > | operator== (LHS const &lhs, RHS &&rhs) |
| Relational operators (if Amino::String is on the right hand side) More... | |
| template<typename LHS , typename RHS > | |
| AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > | operator!= (LHS const &lhs, RHS &&rhs) |
| Relational operators (if Amino::String is on the right hand side) More... | |
| template<typename LHS , typename RHS > | |
| AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > | operator< (LHS const &lhs, RHS &&rhs) |
| Relational operators (if Amino::String is on the right hand side) More... | |
| template<typename LHS , typename RHS > | |
| AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > | operator> (LHS const &lhs, RHS &&rhs) |
| Relational operators (if Amino::String is on the right hand side) More... | |
| template<typename LHS , typename RHS > | |
| AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > | operator<= (LHS const &lhs, RHS &&rhs) |
| Relational operators (if Amino::String is on the right hand side) More... | |
| template<typename LHS , typename RHS > | |
| AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > | operator>= (LHS const &lhs, RHS &&rhs) |
| Relational operators (if Amino::String is on the right hand side) More... | |
| AMINO_CORE_SHARED_DECL String | to_string (signed char value) |
| Converts a integral value to a string (in base 10). More... | |
| AMINO_CORE_SHARED_DECL String | to_string (signed short value) |
| Converts a integral value to a string (in base 10). More... | |
| AMINO_CORE_SHARED_DECL String | to_string (signed int value) |
| Converts a integral value to a string (in base 10). More... | |
| AMINO_CORE_SHARED_DECL String | to_string (signed long long value) |
| Converts a integral value to a string (in base 10). More... | |
| AMINO_CORE_SHARED_DECL String | to_string (unsigned char value) |
| Converts a integral value to a string (in base 10). More... | |
| AMINO_CORE_SHARED_DECL String | to_string (unsigned short value) |
| Converts a integral value to a string (in base 10). More... | |
| AMINO_CORE_SHARED_DECL String | to_string (unsigned int value) |
| Converts a integral value to a string (in base 10). More... | |
| AMINO_CORE_SHARED_DECL String | to_string (unsigned long long value) |
| Converts a integral value to a string (in base 10). More... | |
C++ representation of built-in Amino data types at runtime. | |
Amino provides many integral data types that can flow in between nodes within a graph. Namely, those are:
Each of those is represented by a matching C++ data type, defined by one the following type alias.
| |
| enum class | enum_t : enum_underlying_t |
| Type alias for a standin for a Amino's enumeration type. More... | |
| using | char_t = signed char |
| Type alias for Amino's char type, a signed 8-bit integer. More... | |
| using | short_t = signed short |
| Type alias for Amino's short type, a signed 16-bit integer. More... | |
| using | int_t = signed int |
| Type alias for Amino's int type, a signed 32-bit integer. More... | |
| using | long_t = signed long long |
| Type alias for Amino's long type, a signed 64-bit integer. More... | |
| using | uchar_t = unsigned char |
| Type alias for Amino's uchar type, an unsigned 8-bit integer. More... | |
| using | ushort_t = unsigned short |
| Type alias for Amino's ushort type, an unsigned 16-bit integer. More... | |
| using | uint_t = unsigned int |
| Type alias for Amino's uint type, an unsigned 32-bit integer. More... | |
| using | ulong_t = unsigned long long |
| Type alias for Amino's ulong type, an unsigned 64-bit integer. More... | |
| using | float_t = float |
| Type alias for Amino's 32-bit float-point number. More... | |
| using | double_t = double |
| Type alias for Amino's 64-bit float-point number. More... | |
| using | bool_t = bool |
| Type alias for Amino's bool type, a boolean. More... | |
| using | enum_underlying_t = int_t |
| Type alias for the underlying type of Amino's enumerations. More... | |
| using Amino::ArrayD_t = typedef Internal::MultiDimensionalArray_t<Dimension, T> |
Helper alias for multidimensional array types.
Declaring multidimenstional array can yield very long type names and make the code hard to read. Using this alias can therefore greatly help with code readability and code maintainability.
For example:
Note that Ptr are used to manage individual array element types. This is always necessary in order to use those arrays in Amino graphs, since array types must always be managed by Ptr when used in Amino graphs.
| using Amino::bool_t = typedef bool |
Type alias for Amino's bool type, a boolean.
Definition at line 79 of file BuiltInTypes.h.
| using Amino::char_t = typedef signed char |
Type alias for Amino's char type, a signed 8-bit integer.
Definition at line 49 of file BuiltInTypes.h.
| using Amino::double_t = typedef double |
Type alias for Amino's 64-bit float-point number.
Definition at line 76 of file BuiltInTypes.h.
| using Amino::enum_underlying_t = typedef int_t |
Type alias for the underlying type of Amino's enumerations.
Definition at line 82 of file BuiltInTypes.h.
| using Amino::float_t = typedef float |
Type alias for Amino's 32-bit float-point number.
Definition at line 73 of file BuiltInTypes.h.
| using Amino::int_t = typedef signed int |
Type alias for Amino's int type, a signed 32-bit integer.
Definition at line 55 of file BuiltInTypes.h.
| using Amino::long_t = typedef signed long long |
Type alias for Amino's long type, a signed 64-bit integer.
Definition at line 58 of file BuiltInTypes.h.
| using Amino::short_t = typedef signed short |
Type alias for Amino's short type, a signed 16-bit integer.
Definition at line 52 of file BuiltInTypes.h.
| typedef EntityIndexedList<const Type> Amino::TypeConstIndexedList |
Definition at line 36 of file TypeTranslation.h.
| using Amino::uchar_t = typedef unsigned char |
Type alias for Amino's uchar type, an unsigned 8-bit integer.
Definition at line 61 of file BuiltInTypes.h.
| using Amino::uint_t = typedef unsigned int |
Type alias for Amino's uint type, an unsigned 32-bit integer.
Definition at line 67 of file BuiltInTypes.h.
| using Amino::ulong_t = typedef unsigned long long |
Type alias for Amino's ulong type, an unsigned 64-bit integer.
Definition at line 70 of file BuiltInTypes.h.
| using Amino::ushort_t = typedef unsigned short |
Type alias for Amino's ushort type, an unsigned 16-bit integer.
Definition at line 64 of file BuiltInTypes.h.
|
strong |
Type alias for a standin for a Amino's enumeration type.
Can be useful to define type traits, or to create overload sets with an overload expecting an enum type, which may have an implementation that differs from the overload taking the underlying type of the enum type for example.
Definition at line 90 of file BuiltInTypes.h.
|
strong |
|
strong |
Category of the message logged at runtime (when executing a graph).
Definition at line 29 of file RuntimeMessageCategory.h.
| Amino::AMINO_INTERNAL_DEPRECATED | ( | "Amino::isJobCancelled is deprecated and now always returns false. " "Use a 'StopToken const& jobport instead. " | ) |
Definition at line 30 of file Cancellation.h.
|
inlinenoexcept |
Cast an instance of Any to a payload type.
If the requested type ValueType is the same as the payload type of the Any, then the returned value will be move constructed from the payload of the Any.
If the requested type ValueType is not the same as the payload type of the Any instance, a default value of the requested type will be returned.
In both cases, the rvalue Any will be reset after this call (the Any argument is a sink argument).
| ValueType | The payload type |
| v | The instance of Any to be casted to the ValueType |
|
inlinenoexcept |
Cast an instance of Any to a payload type.
If the requested type ValueType is the same as the payload type of the Any instance, a pointer to the payload of the any will be returned.
If the requested type ValueType is not the same as the payload type of the Any instance, a nullptr will be returned.
| ValueType | The payload type |
| v | The instance of Any to be casted to the ValueType |
|
inlinenoexcept |
Cast an instance of Any to a payload type.
If the requested type ValueType is the same as the payload type of the Any, then the returned value will be copy constructed from the payload of the Any.
If the requested type ValueType is not the same as the payload type of the Any instance, a default value of the requested type will be returned.
| ValueType | The payload type |
| v | The instance of Any to be casted to the ValueType |
|
inlinenoexcept |
Cast an instance of Any to a payload type.
If the requested type ValueType is the same as the payload type of the Any instance, a const pointer to the payload of the any will be returned.
If the requested type ValueType is not the same as the payload type of the Any instance, a nullptr will be returned.
| ValueType | The payload type |
| v | The instance of Any to be casted to the ValueType |
|
inlinenoexcept |
Get the pointer the payload of the Any as const void*.
This is a special syntax for extracting the raw payload of an Any. If the Any has a value, a void pointer to the payload value is returned. Otherwise, a nullptr will be returned. This can be used in cases where the caller knows something about the payload (base class, memory layout, etc.), but not the exact precise type.
This can also be useful if the payload is known to be a Ptr but the type of the pointee is unknown, and the caller just needs to get the type erased Ptr<void>.
| v | The instance of Any to be casted to the ValueType |
| PtrGuard< T > Amino::createPtrGuard | ( | Ptr< T > & | src, |
| PtrGuardUniqueFlag | |||
| ) |
Dynamic pointer cast.
Creates a new instance of Ptr whose element type is obtained from the rhs element type using a dynamic_cast<> expression. The returned pointer shares the ownership of the owned object with the original pointer.
If the argument is an empty pointer, the result will only be an empty pointer.
| [in] | ptr | the pointer to cast |
|
inlinenoexcept |
Dynamic pointer cast.
Creates a new instance of Ptr whose element type is obtained from the rhs element type using a dynamic_cast<> expression. The returned pointer shares the ownership of the owned object with the original pointer.
If the argument is an empty pointer, the result will only be an empty pointer.
| [in] | ptr | the pointer to cast |
|
noexcept |
|
inline |
Boost hash specialization for Amino::String.
Definition at line 21 of file StringBoost.h.
| std::enable_if_t< PtrInternal::DefaultPtrTraits::has_default_class< T >::value, Ptr< T > > Amino::makeDefaultPtr | ( | ) |
Creates a Ptr holding the default value for T.
| std::enable_if_t< PtrInternal::DefaultPtrTraits::is_array< T >::value, Ptr< T > > Amino::makeDefaultPtr | ( | ) |
Creates a Ptr holding the default value for T.
| std::enable_if_t< !PtrInternal::DefaultPtrTraits::is_defaultable< T >::value, Ptr< T > > Amino::makeDefaultPtr | ( | ) |
Creates a Ptr holding the default value for T.
|
inline |
Creates a Ptr holding a new T constructed from the given arguments.
This convenience function invokes Amino::newClass<T>() to allocate the object, wraps it in a Amino::Ptr<T> and returns the Amino::Ptr.
| T | the type of object to allocate |
| Args | the types of the constructor arguments |
| [in] | args | the arguments to pass to the constructor of the object |
|
inline |
Creates a Ptr holding a new T constructed from the given initializer_list.
This allows writing simpler/shorter code. For example:
E can't be deduced, and therefore it won't compile.| T | the type of object to allocate |
| E | the type of the elements of the initializer_list |
| [in] | list | the initializer_list to pass to the constructor |
|
inline |
Creates a MutablePtr holding a new T constructed from the given arguments.
| T | the type of object to allocate |
| Args | the types of the constructor arguments |
| [in] | args | the arguments to pass to the constructor of the object |
|
inline |
Creates a MutablePtr holding a new T constructed from the given initializer_list.
This allows writing simpler/shorter code. For example:
E can't be deduced, and therefore it won't compile.| T | the type of object to allocate |
| E | the type of the elements of the initializer_list |
| [in] | list | the initializer_list to pass to the constructor |
|
inlinenoexcept |
|
inlinenoexcept |
| AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > Amino::operator!= | ( | LHS const & | lhs, |
| RHS && | rhs | ||
| ) |
Relational operators (if Amino::String is on the right hand side)
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Concatenation operators( non member )
Concatenation operators( non member )
Concatenation operators( non member )
Concatenation operators( non member )
Concatenation operators( non member )
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made. | AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > Amino::operator< | ( | LHS const & | lhs, |
| RHS && | rhs | ||
| ) |
Relational operators (if Amino::String is on the right hand side)
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inline |
Insert the contents of the string str into the output stream os.
| os | The output stream |
| str | The string to be inserted. |
os output stream passed as argument. Definition at line 47 of file StringStl.h.
References Amino::String::c_str().
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made. | AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > Amino::operator<= | ( | LHS const & | lhs, |
| RHS && | rhs | ||
| ) |
Relational operators (if Amino::String is on the right hand side)
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than or equal to the stored pointer of y under implicit conversion rules.
x.get() <= y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than or equal to the stored pointer of y under implicit conversion rules.
x.get() <= y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
|
inlinenoexcept |
| AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > Amino::operator== | ( | LHS const & | lhs, |
| RHS && | rhs | ||
| ) |
Relational operators (if Amino::String is on the right hand side)
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made. | AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > Amino::operator> | ( | LHS const & | lhs, |
| RHS && | rhs | ||
| ) |
Relational operators (if Amino::String is on the right hand side)
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is greater than the stored pointer of y under implicit conversion rules.
x.get() > y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is greater than the stored pointer of y under implicit conversion rules.
x.get() > y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made. | AMINO_INTERNAL_FORCEINLINE Internal::enable_if_rhs_compare< LHS, RHS > Amino::operator>= | ( | LHS const & | lhs, |
| RHS && | rhs | ||
| ) |
Relational operators (if Amino::String is on the right hand side)
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is greater than or equal to the stored pointer of y under implicit conversion rules.
x.get() >= y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is greater than or equal to the stored pointer of y under implicit conversion rules.
x.get() >= y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made.
|
inlinenoexcept |
Compares the pointer values.
Returns true if the stored pointer of x is less than the stored pointer of y under implicit conversion rules.
x.get() < y.get(); where the pointer values are converted to the composite pointer type of T* and U* before the comparison is made. | Amino::Ptr | ( | MutablePtr< T > | ) | -> Ptr< T > |
Deduction guide for Ptr.
Referenced by Amino::Ptr< T >::operator=(), and Amino::Ptr< T >::reset().
| Amino::PtrGuard | ( | Ptr< T > & | ) | -> PtrGuard< T > |
Deduction guide for PtrGuard.
| Amino::PtrGuard | ( | Ptr< T > & | , |
| PtrGuardUniqueFlag | |||
| ) | -> PtrGuard< T > |
Deduction guide for PtrGuard.
| Amino::Span | ( | R && | ) | -> Span< std::remove_pointer_t< decltype(std::declval< R >().data())> > |
Deduction guides for Span.
| Amino::Span | ( | T * | , |
| size_t | |||
| ) | -> Span< T > |
Deduction guides for Span.
| Amino::Span | ( | T * | , |
| T * | |||
| ) | -> Span< T > |
Deduction guides for Span.
| Amino::SpanParam | ( | R && | ) | -> SpanParam< std::remove_pointer_t< decltype(std::declval< R >().data())> > |
Deduction guides for SpanParam.
| Amino::SpanParam | ( | T * | , |
| size_t | |||
| ) | -> SpanParam< T > |
Deduction guides for SpanParam.
| Amino::SpanParam | ( | T * | , |
| T * | |||
| ) | -> SpanParam< T > |
Deduction guides for SpanParam.
Static pointer cast.
Creates a new instance of Ptr whose element type is obtained from the rhs element type using a static_cast<> expression. The returned pointer shares the ownership of the owned object with the original pointer.
If the argument is an empty pointer, the result will only be an empty pointer.
| [in] | ptr | the pointer to cast |
|
inlinenoexcept |
Static pointer cast.
Creates a new instance of Ptr whose element type is obtained from the rhs element type using a static_cast<> expression. The returned pointer shares the ownership of the owned object with the original pointer.
If the argument is an empty pointer, the result will only be an empty pointer.
| [in] | ptr | the pointer to cast |
| Amino::StopCallback | ( | StopToken && | , |
| Callback | |||
| ) | -> StopCallback< Callback > |
Deduction guides for StopCallback.
| Amino::StopCallback | ( | StopToken const & | , |
| Callback | |||
| ) | -> StopCallback< Callback > |
Deduction guides for StopCallback.
Swap the payloads of two instances of Any.
Definition at line 358 of file Any.h.
Referenced by Amino::Any::swap(), Amino::Array< T >::swap(), and BifrostGraph::Executor::Owner< T >::swap().
|
inlinenoexcept |
Swap two pointers.
Exchanges the contents of the two Amino::MutablePtr.
| [in] | lhs | the first pointer to swap |
| [in] | rhs | the second pointer to swap |
Definition at line 1808 of file Ptr.h.
Referenced by Amino::MutablePtr< T >::swap(), and Amino::Ptr< T >::swap().
Swap two strings( non member )
| x | The first string |
| y | the second string |
| AMINO_CORE_SHARED_DECL String Amino::to_string | ( | signed char | value | ) |
Converts a integral value to a string (in base 10).
(Same as std::to_string).
| AMINO_CORE_SHARED_DECL String Amino::to_string | ( | signed int | value | ) |
Converts a integral value to a string (in base 10).
(Same as std::to_string).
| AMINO_CORE_SHARED_DECL String Amino::to_string | ( | signed long long | value | ) |
Converts a integral value to a string (in base 10).
(Same as std::to_string).
| AMINO_CORE_SHARED_DECL String Amino::to_string | ( | signed short | value | ) |
Converts a integral value to a string (in base 10).
(Same as std::to_string).
| AMINO_CORE_SHARED_DECL String Amino::to_string | ( | unsigned char | value | ) |
Converts a integral value to a string (in base 10).
(Same as std::to_string).
| AMINO_CORE_SHARED_DECL String Amino::to_string | ( | unsigned int | value | ) |
Converts a integral value to a string (in base 10).
(Same as std::to_string).
| AMINO_CORE_SHARED_DECL String Amino::to_string | ( | unsigned long long | value | ) |
Converts a integral value to a string (in base 10).
(Same as std::to_string).
| AMINO_CORE_SHARED_DECL String Amino::to_string | ( | unsigned short | value | ) |
Converts a integral value to a string (in base 10).
(Same as std::to_string).
|
inlineconstexpr |
Helpers to produce a warning on unsupported element types when constructing Amino::Array of such types.