|
Sen API
Sen Libraries
|
Represents something that can be called. More...
#include <callable.h>
Public Member Functions | |
| Callable (CallableSpec spec) | |
| Copies the spec into a member. | |
| virtual | ~Callable ()=default |
| std::string_view | getName () const noexcept |
| Callable name. | |
| std::string_view | getDescription () const noexcept |
| Callable description. | |
| TransportMode | getTransportMode () const noexcept |
| The transport mode of this callable. | |
| Span< const Arg > | getArgs () const noexcept |
| Gets the arguments. | |
| const Arg * | getArgFromName (std::string_view name) const |
| Get the field data given a name. Nullptr means not found. | |
| size_t | getArgIndexFromNameHash (MemberHash nameHash) const |
| Get the index in the vector of Args given a name hash. | |
| bool | operator== (const Callable &other) const noexcept |
| bool | operator!= (const Callable &other) const noexcept |
Static Public Member Functions | |
| static void | checkSpec (const CallableSpec &spec) |
| Throws std::exception if the callable spec is invalid. | |
Protected Member Functions | |
| const CallableSpec & | getCallableSpec () const noexcept |
| The spec of this callable. | |
Represents something that can be called.
|
explicit |
Copies the spec into a member.
|
virtualdefault |
|
nodiscardnoexcept |
Callable name.
|
nodiscardnoexcept |
Callable description.
|
nodiscardnoexcept |
The transport mode of this callable.
|
nodiscard |
Get the field data given a name. Nullptr means not found.
| name | the name of the field. |
|
nodiscard |
Get the index in the vector of Args given a name hash.
|
nodiscardnoexcept |
|
nodiscardnoexcept |
|
static |
Throws std::exception if the callable spec is invalid.
|
nodiscardprotectednoexcept |
The spec of this callable.