Represents a method.
More...
#include <method.h>
|
| static std::shared_ptr< Method > | make (MethodSpec spec) |
| | Factory function that validates the spec and creates a method. Throws std::exception if the spec is not valid.
|
| static void | checkSpec (const CallableSpec &spec) |
| | Throws std::exception if the callable spec is invalid.
|
◆ Method()
| sen::Method::Method |
( |
const MethodSpec & | spec, |
|
|
Private | notUsable ) |
Copies the spec into a member. Private to prevent direct instances.
◆ ~Method()
◆ make()
Factory function that validates the spec and creates a method. Throws std::exception if the spec is not valid.
◆ getConstness()
| Constness sen::Method::getConstness |
( |
| ) |
const |
|
nodiscardnoexcept |
The constness of the method.
◆ getDeferred()
| bool sen::Method::getDeferred |
( |
| ) |
const |
|
nodiscardnoexcept |
True if the method is marked as deferred.
◆ getReturnType()
Gets the return type of the method (nullptr means void).
◆ getPropertyRelation()
Information about the relation to a property.
◆ getLocalOnly()
| bool sen::Method::getLocalOnly |
( |
| ) |
const |
|
nodiscardnoexcept |
True if the method is the method is only locally available (within the same component).
◆ operator==() [1/2]
| bool sen::Method::operator== |
( |
const Method & | other | ) |
const |
|
nodiscardnoexcept |
Compares if it is equivalent to another method.
◆ operator!=() [1/2]
| bool sen::Method::operator!= |
( |
const Method & | other | ) |
const |
|
nodiscardnoexcept |
Compares if it is not equivalent to another method.
◆ getHash()
Returns a unique hash to identify the method.
◆ getId()
Returns the hash of the method's unqualified name.
◆ getName()
| std::string_view sen::Callable::getName |
( |
| ) |
const |
|
nodiscardnoexceptinherited |
◆ getDescription()
| std::string_view sen::Callable::getDescription |
( |
| ) |
const |
|
nodiscardnoexceptinherited |
◆ getTransportMode()
|
|
nodiscardnoexceptinherited |
The transport mode of this callable.
◆ getArgs()
| Span< const Arg > sen::Callable::getArgs |
( |
| ) |
const |
|
nodiscardnoexceptinherited |
◆ getArgFromName()
| const Arg * sen::Callable::getArgFromName |
( |
std::string_view | name | ) |
const |
|
nodiscardinherited |
Get the field data given a name. Nullptr means not found.
- Parameters
-
| name | the name of the field. |
◆ getArgIndexFromNameHash()
| size_t sen::Callable::getArgIndexFromNameHash |
( |
MemberHash | nameHash | ) |
const |
|
nodiscardinherited |
Get the index in the vector of Args given a name hash.
◆ operator==() [2/2]
| bool sen::Callable::operator== |
( |
const Callable & | other | ) |
const |
|
nodiscardnoexceptinherited |
◆ operator!=() [2/2]
| bool sen::Callable::operator!= |
( |
const Callable & | other | ) |
const |
|
nodiscardnoexceptinherited |
◆ checkSpec()
Throws std::exception if the callable spec is invalid.
◆ getCallableSpec()
| const CallableSpec & sen::Callable::getCallableSpec |
( |
| ) |
const |
|
nodiscardprotectednoexceptinherited |
The spec of this callable.
The documentation for this class was generated from the following file: