nndeploy C++ API  0.2.0
nndeploy C++ API
Public Member Functions | Public Attributes | List of all members
nndeploy::base::Param Class Reference

#include <param.h>

Inheritance diagram for nndeploy::base::Param:
[legend]

Public Member Functions

base::Status addDropdownParam (const std::string &dropdown_param, const std::vector< std::string > &dropdown_values)
 
base::Status addIoParam (const std::string &io_param)
 
base::Status addRequiredParam (const std::string &required_param)
 
base::Status addUiParam (const std::string &ui_param)
 
base::Status clearDropdownParams ()
 
base::Status clearIoParams ()
 
base::Status clearRequiredParams ()
 
base::Status clearUiParams ()
 
virtual base::Status deserialize (const std::string &json_str)
 
virtual base::Status deserialize (rapidjson::Value &json)
 
virtual base::Status get (const std::string &key, base::Any &any)
 
std::map< std::string, std::vector< std::string > > getDropdownParams ()
 
std::vector< std::string > getIoParams ()
 
std::vector< std::string > getRequiredParams ()
 
std::vector< std::string > getUiParams ()
 
virtual base::Status loadFile (const std::string &path)
 
 Param ()
 
base::Status removeDropdownParam (const std::string &dropdown_param)
 
base::Status removeIoParam (const std::string &io_param)
 
base::Status removeRequiredParam (const std::string &required_param)
 
base::Status removeUiParam (const std::string &ui_param)
 
virtual base::Status saveFile (const std::string &path)
 
virtual std::string serialize ()
 
virtual base::Status serialize (rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator)
 
virtual base::Status set (const std::string &key, base::Any &any)
 
base::Status setDropdownParams (const std::map< std::string, std::vector< std::string >> &dropdown_params)
 
base::Status setIoParams (const std::vector< std::string > &io_params)
 
base::Status setRequiredParams (const std::vector< std::string > &required_params)
 
base::Status setUiParams (const std::vector< std::string > &ui_params)
 
virtual ~Param ()
 

Public Attributes

std::map< std::string, std::vector< std::string > > dropdown_params_
 
std::vector< std::string > io_params_
 
std::vector< std::string > required_params_
 
std::vector< std::string > ui_params_
 

Detailed Description

Definition at line 37 of file param.h.

Constructor & Destructor Documentation

◆ Param()

nndeploy::base::Param::Param ( )

◆ ~Param()

virtual nndeploy::base::Param::~Param ( )
virtual

Member Function Documentation

◆ addDropdownParam()

base::Status nndeploy::base::Param::addDropdownParam ( const std::string &  dropdown_param,
const std::vector< std::string > &  dropdown_values 
)

◆ addIoParam()

base::Status nndeploy::base::Param::addIoParam ( const std::string &  io_param)

◆ addRequiredParam()

base::Status nndeploy::base::Param::addRequiredParam ( const std::string &  required_param)

◆ addUiParam()

base::Status nndeploy::base::Param::addUiParam ( const std::string &  ui_param)

◆ clearDropdownParams()

base::Status nndeploy::base::Param::clearDropdownParams ( )

◆ clearIoParams()

base::Status nndeploy::base::Param::clearIoParams ( )

◆ clearRequiredParams()

base::Status nndeploy::base::Param::clearRequiredParams ( )

◆ clearUiParams()

base::Status nndeploy::base::Param::clearUiParams ( )

◆ deserialize() [1/2]

virtual base::Status nndeploy::base::Param::deserialize ( const std::string &  json_str)
virtual

◆ deserialize() [2/2]

virtual base::Status nndeploy::base::Param::deserialize ( rapidjson::Value &  json)
virtual

Reimplemented in nndeploy::tokenizer::TokenizerText, nndeploy::tokenizer::TokenizerPraram, nndeploy::preprocess::CvtResizeCropNormTransParam, nndeploy::preprocess::CvtResizePadNormTransParam, nndeploy::preprocess::CvtNormTransParam, nndeploy::preprocess::WarpAffineCvtNormTransParam, nndeploy::preprocess::PaddingParam, nndeploy::preprocess::ResizeParam, nndeploy::preprocess::DynamicShapeParam, nndeploy::preprocess::TransposeParam, nndeploy::preprocess::NormlizeParam, nndeploy::preprocess::CropParam, nndeploy::preprocess::CvtcolorParam, nndeploy::preprocess::ConvertToParam, nndeploy::ocr::RecognizerPreProcessParam, nndeploy::ocr::OcrText, nndeploy::ocr::DetectorPreProcessParam, nndeploy::ocr::ClassifierPreProcessParam, nndeploy::llm::SampleParam, nndeploy::llm::EmbeddingParam, nndeploy::llm::DefaultLlmInferParam, nndeploy::stable_diffusion::SchedulerParam, nndeploy::stable_diffusion::DDIMSchedulerParam, nndeploy::qwen::DecodeEmbeddingParam, nndeploy::qwen::PrefillEmbeddingParam, nndeploy::qwen::PromptParam, nndeploy::preprocess::CvtResizeNormTransParam, nndeploy::ocr::RecognizerPostParam, nndeploy::ocr::PrintOcrNodeParam, nndeploy::ocr::DetectorPostParam, nndeploy::ocr::ClassifierPostParam, nndeploy::llm::PromptParam, nndeploy::classification::ClassificationPostParam, nndeploy::ir::ConstantOfShapeParam, nndeploy::ir::ShapeParam, nndeploy::ir::ReduceSumParam, nndeploy::ir::ReduceMinParam, nndeploy::ir::ReduceMaxParam, nndeploy::ir::ReduceMeanParam, nndeploy::ir::GatherParam, nndeploy::ir::UnsqueezeParam, nndeploy::ir::CastParam, nndeploy::ir::AveragePoolParam, nndeploy::ir::QLinearConvParam, nndeploy::ir::DequantizeLinearParam, nndeploy::ir::QuantizeLinearParam, nndeploy::ir::GemmParam, nndeploy::ir::EmbeddingParam, nndeploy::ir::FlattenParam, nndeploy::ir::LayerNormalizationParam, nndeploy::ir::RMSNormParam, nndeploy::ir::TransposeParam, nndeploy::ir::SplitParam, nndeploy::ir::SoftmaxParam, nndeploy::ir::ResizeParam, nndeploy::ir::ReshapeParam, nndeploy::ir::MaxPoolParam, nndeploy::ir::ConvParam, nndeploy::ir::MatMulParam, nndeploy::ir::ConcatParam, nndeploy::ir::BatchNormalizationParam, and nndeploy::inference::InferenceParam.

◆ get()

virtual base::Status nndeploy::base::Param::get ( const std::string &  key,
base::Any &  any 
)
virtual

◆ getDropdownParams()

std::map<std::string, std::vector<std::string> > nndeploy::base::Param::getDropdownParams ( )

◆ getIoParams()

std::vector<std::string> nndeploy::base::Param::getIoParams ( )

◆ getRequiredParams()

std::vector<std::string> nndeploy::base::Param::getRequiredParams ( )

◆ getUiParams()

std::vector<std::string> nndeploy::base::Param::getUiParams ( )

◆ loadFile()

virtual base::Status nndeploy::base::Param::loadFile ( const std::string &  path)
virtual

◆ removeDropdownParam()

base::Status nndeploy::base::Param::removeDropdownParam ( const std::string &  dropdown_param)

◆ removeIoParam()

base::Status nndeploy::base::Param::removeIoParam ( const std::string &  io_param)

◆ removeRequiredParam()

base::Status nndeploy::base::Param::removeRequiredParam ( const std::string &  required_param)

◆ removeUiParam()

base::Status nndeploy::base::Param::removeUiParam ( const std::string &  ui_param)

◆ saveFile()

virtual base::Status nndeploy::base::Param::saveFile ( const std::string &  path)
virtual

◆ serialize() [1/2]

virtual std::string nndeploy::base::Param::serialize ( )
virtual

◆ serialize() [2/2]

virtual base::Status nndeploy::base::Param::serialize ( rapidjson::Value &  json,
rapidjson::Document::AllocatorType &  allocator 
)
virtual

Reimplemented in nndeploy::tokenizer::TokenizerText, nndeploy::tokenizer::TokenizerPraram, nndeploy::preprocess::CvtResizeCropNormTransParam, nndeploy::preprocess::CvtResizePadNormTransParam, nndeploy::preprocess::CvtNormTransParam, nndeploy::preprocess::WarpAffineCvtNormTransParam, nndeploy::preprocess::PaddingParam, nndeploy::preprocess::ResizeParam, nndeploy::preprocess::DynamicShapeParam, nndeploy::preprocess::TransposeParam, nndeploy::preprocess::NormlizeParam, nndeploy::preprocess::CropParam, nndeploy::preprocess::CvtcolorParam, nndeploy::preprocess::ConvertToParam, nndeploy::ocr::RecognizerPreProcessParam, nndeploy::ocr::OcrText, nndeploy::ocr::DetectorPreProcessParam, nndeploy::ocr::ClassifierPreProcessParam, nndeploy::llm::SampleParam, nndeploy::llm::EmbeddingParam, nndeploy::llm::DefaultLlmInferParam, nndeploy::stable_diffusion::SchedulerParam, nndeploy::stable_diffusion::DDIMSchedulerParam, nndeploy::qwen::DecodeEmbeddingParam, nndeploy::qwen::PrefillEmbeddingParam, nndeploy::qwen::PromptParam, nndeploy::preprocess::CvtResizeNormTransParam, nndeploy::ocr::RecognizerPostParam, nndeploy::ocr::PrintOcrNodeParam, nndeploy::ocr::DetectorPostParam, nndeploy::ocr::ClassifierPostParam, nndeploy::llm::PromptParam, nndeploy::classification::ClassificationPostParam, nndeploy::ir::ConstantOfShapeParam, nndeploy::ir::ShapeParam, nndeploy::ir::ReduceSumParam, nndeploy::ir::ReduceMinParam, nndeploy::ir::ReduceMaxParam, nndeploy::ir::ReduceMeanParam, nndeploy::ir::GatherParam, nndeploy::ir::UnsqueezeParam, nndeploy::ir::CastParam, nndeploy::ir::AveragePoolParam, nndeploy::ir::QLinearConvParam, nndeploy::ir::DequantizeLinearParam, nndeploy::ir::QuantizeLinearParam, nndeploy::ir::GemmParam, nndeploy::ir::EmbeddingParam, nndeploy::ir::FlattenParam, nndeploy::ir::LayerNormalizationParam, nndeploy::ir::RMSNormParam, nndeploy::ir::TransposeParam, nndeploy::ir::SplitParam, nndeploy::ir::SoftmaxParam, nndeploy::ir::ResizeParam, nndeploy::ir::ReshapeParam, nndeploy::ir::MaxPoolParam, nndeploy::ir::ConvParam, nndeploy::ir::MatMulParam, nndeploy::ir::ConcatParam, nndeploy::ir::BatchNormalizationParam, and nndeploy::inference::InferenceParam.

◆ set()

virtual base::Status nndeploy::base::Param::set ( const std::string &  key,
base::Any &  any 
)
virtual

◆ setDropdownParams()

base::Status nndeploy::base::Param::setDropdownParams ( const std::map< std::string, std::vector< std::string >> &  dropdown_params)

◆ setIoParams()

base::Status nndeploy::base::Param::setIoParams ( const std::vector< std::string > &  io_params)

◆ setRequiredParams()

base::Status nndeploy::base::Param::setRequiredParams ( const std::vector< std::string > &  required_params)

◆ setUiParams()

base::Status nndeploy::base::Param::setUiParams ( const std::vector< std::string > &  ui_params)

Member Data Documentation

◆ dropdown_params_

std::map<std::string, std::vector<std::string> > nndeploy::base::Param::dropdown_params_

Definition at line 94 of file param.h.

◆ io_params_

std::vector<std::string> nndeploy::base::Param::io_params_

Definition at line 93 of file param.h.

◆ required_params_

std::vector<std::string> nndeploy::base::Param::required_params_

Definition at line 91 of file param.h.

◆ ui_params_

std::vector<std::string> nndeploy::base::Param::ui_params_

Definition at line 92 of file param.h.


The documentation for this class was generated from the following file: