nk
1.0.0
C++ Numerical Computing Runtime
Toggle main menu visibility
Loading...
Searching...
No Matches
help.hpp
Go to the documentation of this file.
1
3
#pragma once
4
5
#include <nk/bundle/help/help_catalog.hpp>
6
#include <nk/value/value.hpp>
7
#include <nk/value/span.hpp>
8
9
#include <memory_resource>
10
#include <string>
11
#include <vector>
12
13
namespace
nk {
14
class
Engine
;
15
}
16
17
namespace
nk::bundle {
18
21
23
class
HelpLibrary
{
24
public
:
27
static
void
install
(
Engine
&engine);
28
};
29
32
inline
void
registerHelpLibrary
(
Engine
&engine)
33
{
34
HelpLibrary::install
(engine);
35
}
36
37
// ── C++ Public API ──────────────────────────────────────────────────────────
38
43
std::string
help
(
const
std::string &query =
""
);
44
49
Value
help
(
Span<const Value>
args, std::pmr::memory_resource *mr =
nullptr
);
50
55
std::vector<std::string>
what
(
const
std::string &category =
"elmat"
);
56
61
Value
what
(
Span<const Value>
args, std::pmr::memory_resource *mr =
nullptr
);
62
67
std::vector<std::string>
builtins
(
const
std::string &category =
""
);
68
73
Value
builtins
(
Span<const Value>
args, std::pmr::memory_resource *mr =
nullptr
);
74
78
std::vector<std::string>
categories
();
79
83
Value
categories
(std::pmr::memory_resource *mr);
84
85
87
}
// namespace nk::bundle
nk::Engine
Definition
engine.hpp:32
nk::Span
Definition
span.hpp:11
nk::Value
Core MATLAB-compatible multidimensional array and scalar value type.
Definition
value.hpp:61
nk::bundle::HelpLibrary
Installs MATLAB-compatible help and documentation commands into the script Engine.
Definition
help.hpp:23
nk::bundle::HelpLibrary::install
static void install(Engine &engine)
Registers help, doc, what, builtins, categories, and inmem in the given engine.
nk::bundle::what
std::vector< std::string > what(const std::string &category="elmat")
Lists all functions in specified category (what category).
nk::bundle::registerHelpLibrary
void registerHelpLibrary(Engine &engine)
Convenience alias to install help system into an engine.
Definition
help.hpp:32
nk::bundle::builtins
std::vector< std::string > builtins(const std::string &category="")
Lists all built-in functions registered in the system or specified category (builtins).
nk::bundle::help
std::string help(const std::string &query="")
Formats help text or catalog index for given function or topic name (help query).
nk::bundle::categories
std::vector< std::string > categories()
Lists all registered documentation categories (categories).
src
bundle
include
nk
bundle
help.hpp
Generated by
1.17.0