Loading...
Searching...
No Matches
BinaryNinja::MCP::ValueParam< Derived, ValueType > Class Template Reference

A parameter kind that can be made optional or given a default. More...

Detailed Description

template<class Derived, class ValueType>
class BinaryNinja::MCP::ValueParam< Derived, ValueType >

A parameter kind that can be made optional or given a default.

Public Member Functions

OptionalParam< Derived > Optional () const
DefaultParam< Derived > Default (ValueType value) const
Public Member Functions inherited from BinaryNinja::MCP::Param< Derived, ValueType >
 Param (std::string name, std::string description)
const std::string & GetName () const
bool IsRequired () const
const std::string * GetRelativeTo () const
 The earlier parameter this one is evaluated relative to, if any.
void AddSchema (rapidjson::Value &properties, detail::Allocator &allocator) const
ArgumentResult< Value > Absent () const

Additional Inherited Members

Public Types inherited from BinaryNinja::MCP::Param< Derived, ValueType >
using Value = ValueType
using Parsed = ValueType
Protected Member Functions inherited from BinaryNinja::MCP::Param< Derived, ValueType >
const Derived & Self () const
Protected Attributes inherited from BinaryNinja::MCP::Param< Derived, ValueType >
std::string m_name
std::string m_description

Member Function Documentation

◆ Optional()

template<class Derived, class ValueType>
OptionalParam< Derived > BinaryNinja::MCP::ValueParam< Derived, ValueType >::Optional ( ) const
inline

◆ Default()

template<class Derived, class ValueType>
DefaultParam< Derived > BinaryNinja::MCP::ValueParam< Derived, ValueType >::Default ( ValueType value) const
inline