Class SBCClassCallableMember#
ClassList > SBCClassCallableMember
Inherited by the following classes: SBCClassConstructor, SBCClassFunction
Public Functions#
| Type | Name |
|---|---|
| const SBCClassCallableMemberDoc * | getDoc () noexcept const Returns a pointer to its doc object; may be nullptr. |
| virtual unsigned int | getNumberOfParameters () noexcept const = 0 Returns the number of parameters of the callable member. |
| virtual SBValue | getParameterType (int i) const = 0 Returns the parameter type of the callable member parameter i . |
| virtual std::string | getParameterTypeName (int i) const = 0 Returns the parameter type name of the callable member parameter i . |
| virtual std::string | signature (bool addArgumentNames=false) const = 0 Returns the signature of the callable member; if addArgumentNames istrue then also adds names of arguments. |
Protected Attributes#
| Type | Name |
|---|---|
| std::unique_ptr< SBCClassCallableMemberDoc > | doc Stores the function docs. |
Protected Functions#
| Type | Name |
|---|---|
| SBCClassCallableMember () noexcept Constructs a class callable member. |
|
| SBCClassCallableMember (const SBCClassCallableMemberDoc::Spec & spec) Constructs a class callable member with the given doc.specs. |
|
| void | applyDocs (const SBCClassCallableMemberDoc::Spec & spec) Applies documentation specifications to the callable member. |
| virtual | ~SBCClassCallableMember () Destructs the callable member. |
Public Functions Documentation#
function getDoc#
Returns a pointer to its doc object; may be nullptr.
Returns a pointer to the documentation object for the callable member.
Returns:
Pointer to SBCClassCallableMemberDoc; may be nullptr.
function getNumberOfParameters#
Returns the number of parameters of the callable member.
function getParameterType#
Returns the parameter type of the callable member parameter i .
function getParameterTypeName#
Returns the parameter type name of the callable member parameter i .
function signature#
Returns the signature of the callable member; if addArgumentNames istrue then also adds names of arguments.
Protected Attributes Documentation#
variable doc#
Stores the function docs.
Protected Functions Documentation#
function SBCClassCallableMember [1/2]#
Constructs a class callable member.
Default constructs a callable member.
function SBCClassCallableMember [2/2]#
Constructs a class callable member with the given doc.specs.
Constructs a callable member with the given documentation specifications.
Parameters:
specDocumentation specifications to apply to the member.
function applyDocs#
Applies documentation specifications to the callable member.
Updates the member's documentation according to the supplied specification, creating a documentation object if none exists.
Parameters:
specDocumentation specifications to apply.
function ~SBCClassCallableMember#
Destructs the callable member.
Destroys the callable member.