|
| struct | AliasSpec |
| | Data of an alias type. More...
|
| class | AliasType |
| | Represents an aliased type. More...
|
| struct | Arg |
| | Holds the information for an argument in the callable. More...
|
| struct | ArrayTraitsBase |
| | Base class for sequence traits. More...
|
| struct | BasicTraits |
| | Helper class that traits classes can inherit from when the type at hand is basic (native or trivial). More...
|
| struct | BigEndian |
| | Tag type for referring to big endian encoding. More...
|
| class | BufferWriter |
| | A writer that owns a fixed size buffer. More...
|
| struct | BusSpec |
| | The name/address of a bus. More...
|
| class | Callable |
| | Represents something that can be called. More...
|
| struct | CallableSpec |
| | Data of a callable. More...
|
| class | Callback |
| | Base class for event or method callbacks. It stores the queue where to push the response. The queue can be obtained directly as an argument, or through an object. More...
|
| class | ConnectionGuard |
| | Unregisters a callback on destruction, unless keep() is called. More...
|
| class | CustomType |
| | Represents a user-defined type. More...
|
| class | CustomTypeRegistry |
| | A registry of custom types. More...
|
| class | Duration |
| | A time duration. More...
|
| class | DurationType |
| | Represents a sen::Duration (a time duration). More...
|
| struct | Enumerator |
| | Holds the information for an enumerator. More...
|
| struct | EnumSpec |
| | Data of an enum type. More...
|
| struct | EnumTraitsBase |
| | Base class for enum traits. More...
|
| class | EnumType |
| | Represents an enumeration. More...
|
| class | Event |
| | Represents an event. More...
|
| struct | EventInfo |
| | Information about an event emission. More...
|
| struct | EventSpec |
| | Data of an event. More...
|
| class | FullTypeVisitor |
| | A Visitor for constant types. This class is based on the GoF Visitor design pattern. You can use it to perform operations on types without having to do dynamic_casts (or switch-based casts). More...
|
| class | GradientNoise |
| | Utility class for generating n-dimensional noise. Mainly useful in tests and examples. More...
|
| struct | Guarded |
| | Guarded is a lightweight wrapper class that can be used to protect an objet of type T from concurrent modification. The wrapper only allows access/reads/modifications of the underlying value while holding a lock but does not require the user to hold the lock himself. More...
|
| struct | HasOperator |
| | Allows compile-time check for the presence of various operators. More...
|
| struct | HasValueType |
| | return false if T has not an 'using ValueType' or a 'typedef ValueType' More...
|
| struct | HasValueType< T, std::void_t< typename T::ValueType > > |
| | return true if T has an 'using ValueType' or a 'typedef ValueType' More...
|
| class | InputStreamBase |
| | Base class for input streams. More...
|
| class | InputStreamTemplate |
| | Binary input stream. Deserializes values. In general, I/O operations throw on failure. More...
|
| class | IntegralType |
| | Represents an integral numeric type. More...
|
| class | Interest |
| | Declares interest on objects that satisfy a set of conditions. More...
|
| struct | IsContained |
| | Checks if T is on of the types in TypeList. More...
|
| struct | IsVariantMember |
| | Checks if T is on of the member types of the given VariantType. More...
|
| struct | IsVariantMember< T, std::variant< MemberTypes... > > |
| | Checks if T is on of the member types of the given VariantType. More...
|
| struct | IsVariantMember< T, Var > |
| struct | LittleEndian |
| | Tag type for referring to little endian encoding. More...
|
| struct | MemberHash |
| | The hash of a member. More...
|
| struct | MetaTypeTrait |
| struct | MetaTypeTrait< Duration > |
| struct | MetaTypeTrait< TimeStamp > |
| class | Method |
| | Represents a method. More...
|
| struct | MethodCallInfo |
| | Information about a method call. More...
|
| struct | MethodSpec |
| | Data of a method. More...
|
| class | MuxedProviderListener |
| | An extended ObjectProviderListener that works together with ObjectMux and notifies when objects provided by different ObjectMux sources are added/removed multiple times. More...
|
| class | NativeObject |
| | An object instantiated in this process. This is the base class for all user-implemented objects. More...
|
| class | NativeType |
| | Represents a native (built-in) type that can be created on the stack or sent in a message. More...
|
| struct | NonPropertyRelated |
| | Indicates that the method is not directly related to any property. More...
|
| class | NumericType |
| | Represents a numeric native type. More...
|
| class | Object |
| | A sen object. More...
|
| class | ObjectFilter |
| | Allows the discovery of objects based on different criteria. More...
|
| class | ObjectFilterBase |
| | Base class for object filters. More...
|
| struct | ObjectInstanceDiscovery |
| | Holds information about an object that has been discovered. More...
|
| class | ObjectList |
| | A list of objects that is managed by some source based on user-expressed interests. More...
|
| class | ObjectMux |
| | Converts multiple object providers into one. Providers might reside in different threads. Note that addition and removal notifications for objects that are matched by overlapping interests might mention different interest IDs. More...
|
| class | ObjectProvider |
| | Base class for an entity that is able to produce objects. More...
|
| class | ObjectProviderListener |
| | Allows reacting to objects being added or removed to an object provider. It automatically unregisters itself from all the providers upon destruction. More...
|
| class | ObjectRef |
| | Object references may or may not hold an object instance. Their value is set by a provider based on some defined interest which was given during construction. More...
|
| struct | ObjectRemoval |
| | Holds information about an object that has been removed. More...
|
| class | ObjectSource |
| | Allows adding and receiving objects. More...
|
| struct | OptionalSpec |
| | Data of an optional type. More...
|
| struct | OptionalTraitsBase |
| | Base class for enum traits. More...
|
| class | OptionalType |
| | Represents an optional type. More...
|
| class | OutputStreamTemplate |
| | Binary output stream. Serializes values. In general, I/O operations throw on failure. More...
|
| struct | Overloaded |
| | Helper type for std::variant lambda visitors. More...
|
| class | Property |
| | Represents a property. More...
|
| struct | PropertyGetter |
| | Indicates that the method represents a getter of a property. More...
|
| struct | PropertySetter |
| | Indicates that the method represents a setter of a property. More...
|
| struct | PropertySpec |
| | Data of a property. More...
|
| class | Quantity |
| | CRTP class that wraps T to ensure it's value stays within a certain range. More...
|
| struct | QuantitySpec |
| | Data of a quantity type. More...
|
| struct | QuantityTraits |
| struct | QuantityTraits< Duration > |
| class | QuantityTraits< TimeStamp > |
| struct | QuantityTraitsBase |
| | Base class for quantity traits. More...
|
| class | QuantityType |
| | Represents a quantity. More...
|
| class | RealType |
| | Represents a floating point numeric type. More...
|
| struct | RemoteObjectDiscovery |
| | Holds information about a remote object that has been discovered. More...
|
| struct | remove_cvref |
| class | ResizableBufferWriter |
| | A writer that owns a buffer that gets resized on demand. More...
|
| class | Result |
| | Result<T, E> is a template type that can be used to return and propagate errors. The intent is to replace exceptions in this context. Result<T, E> is an algebraic data type of Ok(T) that represents success and Err(E) representing an error. More...
|
| class | Result< void, E > |
| | Specialization for Results that just hold error data. More...
|
| class | Result< void, std::monostate > |
| | Specialization for Results that just hold success indication. More...
|
| class | ScopeGuard |
| | Runs the function object F on destruction. More...
|
| struct | SenClassRelation |
| | Compile-time information about a generated (or built-in) type. More...
|
| struct | SenClassRelation< const T & > |
| struct | SenClassRelation< const T > |
| struct | SenClassRelation< T & > |
| struct | SequenceSpec |
| | Data of a sequence type. More...
|
| struct | SequenceTraitsBase |
| | Base class for sequence traits. More...
|
| class | SequenceType |
| | Represents a sequence type. More...
|
| struct | SerializationTraits |
| struct | SerializationTraits< Duration > |
| struct | SerializationTraits< TimeStamp > |
| struct | ShouldBePassedByValue |
| | Utility to indicate that your class wants to be passed by value in some of the library calls. More...
|
| struct | ShouldBePassedByValue< ConnId > |
| struct | ShouldBePassedByValue< Duration > |
| struct | ShouldBePassedByValue< InterestId > |
| | Unique identifier that represents the interest. More...
|
| struct | ShouldBePassedByValue< kernel::BusId > |
| struct | ShouldBePassedByValue< kernel::ProcessId > |
| struct | ShouldBePassedByValue< MemberHash > |
| struct | ShouldBePassedByValue< ObjectId > |
| | Unique identifier for any object instance. More...
|
| struct | ShouldBePassedByValue< ObjectOwnerId > |
| | Identifies the owner of an object. More...
|
| struct | ShouldBePassedByValue< Quantity< T, D > > |
| struct | ShouldBePassedByValue< StrongType< T, D > > |
| struct | ShouldBePassedByValue< StrongTypeBase< T > > |
| struct | ShouldBePassedByValue< TimeStamp > |
| struct | SourceLocation |
| | Represents a location in source code. More...
|
| class | Span |
| | Contiguous view of elements of type T. Inspired by http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0122r7.pdf. More...
|
| class | StaticVector |
| | Stack-based, exception-free and resizable vector with fixed-capacity. More...
|
| class | StaticVectorBase |
| | Base class for stack-based, exception-safe and resizable vector with fixed-capacity. More...
|
| struct | StringConversionTraits |
| class | StrongType |
| | CRTP class that wraps T to make it a strong type. More...
|
| class | StrongTypeBase |
| | Wraps T to make it a strong type. More...
|
| struct | StructField |
| | Holds the information for a field in the struct. More...
|
| struct | StructSpec |
| | Data of struct type. More...
|
| struct | StructTraitsBase |
| | Base class for struct traits. More...
|
| class | StructType |
| | Represents a structure type. More...
|
| struct | Subscription |
| | A list of objects and a reference to its source (to keep it alive). More...
|
| class | TimeStamp |
| | A point in time. More...
|
| class | TimestampType |
| | Represents a sen::TimeStamp (a point in time). More...
|
| class | Type |
| | Represents a type that can be used to define variables and arguments for methods or functions. Types use the GoF Visitor pattern in order to allow easy and fast operation, as double dispatching is faster and cleaner than a (dynamic) cast-based approach. More...
|
| class | TypeHandle |
| | Handle around a type that, by default, ensures the lifetime of the underlying type. More...
|
| struct | TypeMatchIssue |
| | Information about a type matching issue. More...
|
| struct | TypesDontMatch |
| | Types do not match. More...
|
| struct | TypesMatch |
| | Types are compatible. More...
|
| class | TypeVisitor |
| | All the apply virtual methods are overriden to empty methods. Use TypeVisitor if you only need to handle some of the types. More...
|
| class | Unit |
| | Represents the definition of a unit. More...
|
| class | UnitRegistry |
| | A registry of units. More...
|
| struct | UnitSpec |
| | Data about a given unit definition. Given f, x, y: More...
|
| class | Uuid |
| | Universal Unique Identifier. More...
|
| class | UuidRandomGenerator |
| struct | Var |
| | Can hold any supported value type. Wraps std::variant to allow recursion and implements some helpers. More...
|
| struct | VariantField |
| | Holds the information for a field in the variant. More...
|
| struct | VariantSpec |
| | Data of a variant type. More...
|
| struct | VariantTraits |
| struct | VariantTraits< Duration > |
| struct | VariantTraits< TimeStamp > |
| struct | VariantTraitsBase |
| | Base class for variant traits. More...
|
| struct | VariantTraitsBaseBase |
| class | VariantType |
| | Represents a variant type. More...
|
| struct | VarInfo |
| | Information about a variable used in the query. More...
|
| class | VoidType |
| | Used for indicating that no result value is provided. More...
|
| class | Writer |
| | Interface for writing to a device. More...
|
|
| template<typename T> |
| using | AddConstRef = std::add_lvalue_reference_t<std::add_const_t<T>> |
| | returns 'const T&'
|
| template<typename T> |
| using | MaybeRef = std::conditional_t<std::is_arithmetic_v<T> || shouldBePassedByValueV<T>, T, AddConstRef<T>> |
| | returns 'const T&' or 'T' depending on the type
|
| using | BoolResult = Result<void, std::monostate> |
| | True or false result.
|
| using | InputStream = InputStreamTemplate<LittleEndian> |
| using | OutputStream = OutputStreamTemplate<LittleEndian> |
| using | PropertyRelation = std::variant<NonPropertyRelated, PropertyGetter, PropertySetter> |
| | Information about the relation between a method and a property.
|
| using | NativeFieldValueGetter = std::function<lang::Value(const void*)> |
| | A function that extracts a native value from a field.
|
| template<typename T> |
| using | ConstSharedPtr = std::shared_ptr<const T> |
| | Utility typedef.
|
| template<typename T = Type> |
| using | ConstTypeHandle = TypeHandle<const T> |
| template<typename T = Type> |
| using | MaybeConstTypeHandle = std::optional<ConstTypeHandle<T>> |
| using | TypeMatch = Result<TypesMatch, TypesDontMatch> |
| | The result of a type matching analysis.
|
| template<typename T> |
| using | SenInterfaceTypeT = typename SenClassRelation<T>::InterfaceType |
| | Determines the interface type for the given type T.
|
| template<typename T, typename BaseClassType = void> |
| using | SenBaseTypeT = typename detail::TemplatedBaseTypeDispatcher<T, BaseClassType>::DefaultBaseType |
| | Determines the base type for the given type T.
|
| template<typename T> |
| using | SenLocalProxyTypeT = typename SenClassRelation<T>::LocalProxyType |
| | Determines the local proxy type for the given type T.
|
| template<typename T> |
| using | SenRemoteProxyTypeT = typename SenClassRelation<T>::RemoteProxyType |
| | Determines the remote proxy type for the given type T.
|
| template<typename T> |
| using | remove_cvref_t = typename remove_cvref<T>::type |
| using | VarList = std::vector<Var> |
| | A list of vars to represent sequences.
|
| using | VarMap = std::map<std::string, Var, std::less<>> |
| | A map of vars to represent structures.
|
| using | KeyedVar = std::tuple<uint32_t, std::shared_ptr<Var>> |
| | A key-var tuple, to represent variants.
|
| template<typename R> |
| using | MethodResult = Result<R, std::exception_ptr> |
| | The result of a method (which can be an exception in case of error).
|
| template<typename... Args> |
| using | EventCallback = Callback<EventInfo, Args...> |
| | An event callback.
|
| template<typename R> |
| using | MethodCallback = Callback<MethodCallInfo, MethodResult<R>> |
| | A method callback.
|
| using | PropertyCallback = EventCallback<> |
| | A property change callback.
|
| using | TypeCondition = std::variant<std::monostate, ConstTypeHandle<ClassType>, std::string> |
| | A condition set on an object's type.
|
| using | BusCondition = std::optional<BusSpec> |
| | Bus conditions may be present, but are not mandatory.
|
| using | VarInfoList = std::vector<VarInfo> |
| | List of variables used in a query expression.
|
| using | StreamCall = sen::std_util::move_only_function<void(OutputStream&)> |
| using | VariantCall = sen::std_util::move_only_function<void(Var&)> |
| using | StreamCallForwarder = sen::std_util::move_only_function<void(StreamCall&&)> |
| using | VariantCallForwarder = sen::std_util::move_only_function<void(VariantCall&&)> |
| using | ObjectAddition = std::variant<ObjectInstanceDiscovery, RemoteObjectDiscovery> |
| | Holds information about an object that is already present and we explicitly asked for.
|
| using | ObjectAdditionList = std::vector<ObjectAddition> |
| | Sequence of object additions.
|
| using | ObjectRemovalList = std::vector<ObjectRemoval> |
| | Sequence of object removals.
|
|
| void | registerTerminateHandler () |
| | Installs a custom termination handler.
|
| void | throwRuntimeError (const std::string &err) |
| | Throws std::exception that attempts to collect the stack trace. We also wrap it to avoid including stdexcept.
|
| void | trace () |
| | Prints the current stack trace to stderr.
|
| void | trace (std::string preMessage) |
| | Prints the current stack trace to stderr.
|
| template<class... Ts> |
| | Overloaded (Ts...) -> Overloaded< Ts... > |
| | Explicit deduction guide (not needed as of C++20).
|
| template<typename InputIterator> |
| u32 | crc32 (InputIterator first, InputIterator last) noexcept |
| | Calculates the CRC32 for any sequence of values. (You could use type traits and a static assert to ensure the values can be converted to 8 bits.).
|
| u32 | crc32 (std::string_view str) noexcept |
| | CRC32 for strings.
|
| template<typename... Types> |
| u32 | hashCombine (u32 seed, const Types &... args) noexcept |
| | Combines the hash of different values into a single 32-bit hash.
|
| template<typename... Types> |
| uint_fast32_t | platformDependentHashCombine (uint_fast32_t seed, const Types &... args) noexcept |
| | Old version of the hashCombine method. The current one replaced this implementation to allow sen processes to discover and connect themselves between platforms (Windows and Linux). We keep this old implementation to enable replaying Sen recordings generated with the old hashes.
|
| std::unique_ptr< unsigned char[]> | decompressSymbol (const void *compressedData) |
| | Decompresses a blob into its original shape.
|
| std::string | decompressSymbolToString (const void *compressedData, unsigned int originalSize) |
| | Decompresses a blob into a string.
|
| bool | fileToCompressedArrayFile (const std::filesystem::path &inputFile, std::string_view symbolName, const std::filesystem::path &outputFile) |
| | Creates a C++ source file that contains an array representing the contents of another file.
|
| template<typename... Types> |
| std::uint_fast32_t | platformDependentHashCombine (std::uint_fast32_t seed, const Types &... args) noexcept |
| template<typename T, typename CleanT = std::decay_t<T>> |
| impl::Ok< CleanT > | Ok (T &&val) noexcept |
| | Helper (syntactic sugar) to create Results that indicate success.
|
| template<typename E, typename CleanE = std::decay_t<E>> |
| impl::Err< CleanE > | Err (E &&val) noexcept |
| | Helper (syntactic sugar) to create Results that indicate error.
|
| impl::Ok< void > | Ok () noexcept |
| | If T is void, use the void specialization of Ok.
|
| impl::Err< void > | Err () noexcept |
| | If E is void, use the void specialization of Err.
|
| template<class F> |
| auto | makeScopeGuard (F &&f) |
| | Makes scope guard from a callable taking no arguments.
|
| template<class F> |
| | ScopeGuard (F) -> ScopeGuard< F > |
| template<class F> |
| auto | makeScopeGuard (const F &&f)=delete |
| template<class F> |
| auto | makeScopeGuard (F &f)=delete |
| template<class F> |
| auto | makeScopeGuard (const F &f)=delete |
| template<typename InputF> |
| auto | makeScopeGuard (InputF &&f) |
| template<typename T> |
| constexpr bool | operator== (const Span< T > &lhs, const Span< T > &rhs) noexcept |
| template<typename T> |
| constexpr bool | operator!= (const Span< T > &lhs, const Span< T > &rhs) noexcept |
| template<typename T> |
| constexpr Span< T > | makeSpan (T *ptr, std::size_t size) noexcept |
| | Takes in a type that can be passed to a contiguous range and returns a Span.
|
| template<typename T, std::size_t n> |
| constexpr Span< T > | makeSpan (T(&arr)[n]) noexcept |
| | Takes in a type that can be passed to a contiguous range and returns a Span.
|
| template<typename T> |
| constexpr Span< T > | makeSpan (T &val) noexcept |
| | Takes in a type that can be passed to a contiguous range and returns a Span.
|
| template<typename Iterator, typename T = typename std::iterator_traits<Iterator>::value_type> |
| constexpr Span< T > | makeSpan (Iterator first, Iterator last) noexcept |
| | Takes in a type that can be passed to a contiguous range and returns a Span.
|
| template<typename T> |
| constexpr Span< T > | makeSpan (std::vector< T > &vector) noexcept |
| | Takes in a type that can be passed to a contiguous range and returns a Span.
|
| template<typename T, std::size_t s> |
| constexpr Span< T > | makeSpan (std::array< T, s > &array) noexcept |
| | Takes in a type that can be passed to a contiguous range and returns a Span.
|
| template<typename T> |
| constexpr Span< const T > | makeConstSpan (const T *ptr, std::size_t size) noexcept |
| | Takes in a type that can be passed to a contiguous range and returns a Span. The element types will be const qualified.
|
| template<typename T, std::size_t n> |
| constexpr Span< const T > | makeConstSpan (const T(&arr)[n]) noexcept |
| | Takes in a type that can be passed to a contiguous range and returns a Span. The element types will be const qualified.
|
| template<typename Iterator, typename T = typename std::iterator_traits<Iterator>::value_type> |
| constexpr Span< const T > | makeConstSpan (Iterator first, Iterator last) noexcept |
| | Takes in a type that can be passed to a contiguous range and returns a Span. The element types will be const qualified.
|
| template<typename T> |
| constexpr Span< const T > | makeConstSpan (const std::vector< T > &vector) noexcept |
| | Takes in a type that can be passed to a contiguous range and returns a Span. The element types will be const qualified.
|
| template<typename T, std::size_t s> |
| constexpr Span< const T > | makeConstSpan (const std::array< T, s > &array) noexcept |
| | Takes in a type that can be passed to a contiguous range and returns a Span. The element types will be const qualified.
|
| template<typename T, std::size_t size> |
| std::enable_if_t< HasOperator< T >::eq, bool > | operator== (StaticVector< T, size > const &lhs, StaticVector< T, size > const &rhs) noexcept |
| | Checks if the contents of lhs and rhs are equal, that is, they have the same number of elements and each element in lhs compares equal with the element in rhs at the same position.
|
| template<typename T, std::size_t size> |
| std::enable_if_t< HasOperator< T >::ne, bool > | operator!= (StaticVector< T, size > const &lhs, StaticVector< T, size > const &rhs) noexcept |
| | Equivalent to negating operator ==.
|
| constexpr bool | operator== (const Uuid &lhs, const Uuid &rhs) |
| constexpr bool | operator!= (const Uuid &lhs, const Uuid &rhs) |
| constexpr bool | operator< (const Uuid &lhs, const Uuid &rhs) |
| std::ostream & | operator<< (std::ostream &s, const Uuid &id) |
| template<typename T> |
| T | toValue (const Var &var) |
| template<typename T> |
| Var | toVariant (const T &val) |
| std::string | capitalizeAndRemoveSeparators (std::string_view str) |
| | Drops '-' and '_', and uppercases the first character (example: "foo_bar" -> "Foobar").
|
| std::string | snakeCaseToPascalCase (std::string_view str) |
| | Splits on underscores and capitalizes (example: "foo_bar" -> "FooBar").
|
| std::string | pascalCaseToSnakeCase (std::string_view str) |
| | Converts PascalCase to snake_case.
|
| bool | isCapitalizedAndNoSeparators (std::string_view str) |
| | True when str starts with uppercase and contains no whitespace or underscores.
|
| bool | operator== (const EventSpec &lhs, const EventSpec &rhs) noexcept |
| bool | operator!= (const EventSpec &lhs, const EventSpec &rhs) noexcept |
| const Span< ConstTypeHandle<> const > & | getNativeTypes () |
| | All the native types.
|
| std::ostream & | operator<< (std::ostream &out, const Duration &val) |
| std::ostream & | operator<< (std::ostream &out, const TimeStamp &val) |
| template<typename T> |
| | TypeHandle (std::shared_ptr< T > type) -> TypeHandle< T > |
| template<typename T> |
| TypeHandle< T > | makeNonOwningTypeHandle (T *typePtr) |
| | Creates a non-owning type handle from a type pointer.
|
| template<typename T, typename U> |
| std::optional< TypeHandle< T > > | dynamicTypeHandleCast (const TypeHandle< U > &handle) |
| | Downcasts the type inside the type handle to the specified one, if possible.
|
| TypeMatch | canConvert (const Type &from, const Type &to) |
| | Analyze if a type can be converted to another.
|
| void | iterateOverDependentTypes (const Type &type, std::function< void(ConstTypeHandle<> type)> &callback) |
| | Helper that iterates over dependent types. The callback function is invoked for all used sub-types recursively.
|
| std::string | toJson (const Var &var, int indent=2) |
| | Converts a variant into its Json representation. See https://www.Json.org/Json-en.html for details.
|
| Var | fromJson (const std::string &str) |
| | Inverse as toJson.
|
| std::vector< std::uint8_t > | toBson (const Var &var) |
| | Converts a variant into its bson (Binary JSON) representation. See https://bsonspec.org/ for details.
|
| Var | fromBson (const std::vector< std::uint8_t > &bson) |
| | Inverse as toBson.
|
| std::vector< std::uint8_t > | toCbor (const Var &var) |
| | Converts a variant into its MessagePack representation. See https://msgpack.org/ for details.
|
| Var | fromCbor (const std::vector< std::uint8_t > &cbor) |
| | Inverse as toCbor.
|
| std::vector< std::uint8_t > | toMsgpack (const Var &var) |
| | Converts a variant into its msgpack representation. See https://cbor.io/ for details.
|
| Var | fromMsgpack (const std::vector< std::uint8_t > &msgpack) |
| | Inverse as toMsgpack.
|
| std::vector< std::uint8_t > | toUbjson (const Var &var) |
| | Converts a variant into its UBJSON (Universal Binary JSON Specification) representation. See https://ubjson.org/ for details.
|
| Var | fromUbjson (const std::vector< std::uint8_t > &ubson) |
| | Inverse as toUbjson.
|
| Duration | stringToDuration (const std::string &str) |
| | Converts a string to a duration.
|
| template<typename To, bool checkedConversion = false> |
| To | getCopyAs (const Var &var) |
| | Tries to transform the stored value to T. For expensive types, like strings, maps or lists is better use:
|
| const Var & | findElement (const VarMap &map, const std::string &key, const std::string &errorMessage) |
| | Finds an element in a map or throws std::exception containing the provided string otherwise.
|
| template<typename T> |
| T | findElementAs (const VarMap &map, const std::string &key, const std::string &errorMessage) |
| | Finds an element in a map or throws std::exception containing the provided string otherwise.
|
| std::string | asString (const BusSpec &spec) |
| | Converts a BusSpec into a session.bus string representation.
|
| std::string_view | extractQualifiedTypeName (const TypeCondition &condition) |
| | Gets the qualified type name from a type condition.
|
| ObjectId | getObjectId (const ObjectAddition &discovery) |
| ObjectOwnerId | getObjectOwnerId (const ObjectAddition &discovery) |
| InterestId | getInterestId (const ObjectAddition &discovery) |
| Object * | getObjectInstance (const ObjectAddition &discovery) |
| ObjectRemoval | makeRemoval (const ObjectAddition &discovery) |