ONE - On-device Neural Engine
Loading...
Searching...
No Matches
cli::FunctionCommand Class Referencefinal

#include <FunctionCommand.h>

Collaboration diagram for cli::FunctionCommand:

Public Types

using Entry = int(*)(int argc, const char *const *argv)
 

Public Member Functions

 FunctionCommand (const Entry &entry)
 
int run (int argc, const char *const *argv) const override
 
- Public Member Functions inherited from cli::Command
virtual ~Command ()=default
 

Detailed Description

Definition at line 25 of file FunctionCommand.h.

Member Typedef Documentation

◆ Entry

using cli::FunctionCommand::Entry = int (*)(int argc, const char *const *argv)

Definition at line 29 of file FunctionCommand.h.

Constructor & Destructor Documentation

◆ FunctionCommand()

cli::FunctionCommand::FunctionCommand ( const Entry entry)
inline

Definition at line 32 of file FunctionCommand.h.

32 : _entry{entry}
33 {
34 // DO NOTHING
35 }
int entry(const int argc, char **argv)
Definition Driver.cpp:53

Member Function Documentation

◆ run()

int cli::FunctionCommand::run ( int  argc,
const char *const *  argv 
) const
inlineoverridevirtual

Implements cli::Command.

Definition at line 38 of file FunctionCommand.h.

38{ return _entry(argc, argv); };

Referenced by package.infer.session::inference().


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