Dynamic class
#include <Base/include/Framework/Dynamic.hpp>
Contents
Cross platform dynamic variable type
Constructors, destructors, conversion operators
- Dynamic()
- Dynamic(const Dynamic& other)
- Dynamic(Dynamic&& other) noexcept
-
template<typename T>Dynamic(const T& other, typename std::enable_if<!std::is_same<T, Dynamic>::value>::type* = 0)
-
template<typename T>Dynamic(T&& other, typename std::enable_if<!std::is_same<T, Dynamic&>::value>::type* = 0)
- ~Dynamic()
-
template<typename T>operator T&() explicit
-
template<typename T>operator const T&() const explicit
Public functions
- auto TypeId() const -> fsize noexcept
- auto operator=(const Dynamic& other) -> Dynamic&
- auto operator=(Dynamic&& other) -> Dynamic& noexcept
-
template<typename T>auto operator=(const T& other) -> Dynamic&
-
template<typename T>auto operator=(T&& other) -> std::enable_if<!std::is_same<T, Dynamic&>::value, Dynamic&>::type
- auto operator==(const Dynamic& other) const -> bool
- auto operator!=(const Dynamic& other) const -> bool
Function documentation
bpf:: Dynamic:: Dynamic()
Constructs a null dynamic
template<typename T>
bpf:: Dynamic:: operator T&() explicit
| Template parameters | |
|---|---|
| T | type to convert to |
| Returns | mutable reference to T |
| Exceptions | |
| ClassCastException | if type mismatch |
Converts this Dynamic to any explicit type
template<typename T>
bpf:: Dynamic:: operator const T&() const explicit
| Template parameters | |
|---|---|
| T | type to convert to |
| Returns | immutable reference to T |
| Exceptions | |
| ClassCastException | if type mismatch |
Converts this Dynamic to any explicit type
bool bpf:: Dynamic:: operator==(const Dynamic& other) const
| Parameters | |
|---|---|
| other | operand |
| Returns | true if this equals other, false otherwise |
Compare Dynamic
bool bpf:: Dynamic:: operator!=(const Dynamic& other) const
| Parameters | |
|---|---|
| other | operand |
| Returns | true if this doesn't equal other, false otherwise |
Compare Dynamic