Provides a useful interface for managing options.
Inheritance:
Public Methods
-
Object()
-
virtual void init()
- Initialize the object.
-
void addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
- Add the option name.
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
- Several wrappers of addOption() for Int, Real and Bool options.
-
void addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
-
void setOption(const char* name, void* ptr)
- Set the option name to the value contained at ptr
-
void setIOption(const char* name, int option)
- Several wrappers of setOption() for Int, Real and Bool options.
-
void setROption(const char* name, real option)
-
void setBOption(const char* name, bool option)
-
virtual void loadFILE(FILE* file)
- Load the object from a file pointer (not the options)
-
virtual void saveFILE(FILE* file)
- Save the object to a file pointer (not the options)
-
void load(const char* filename)
- Load the machine from a file name (not the options)
-
void save(const char* filename)
- Save the machine to a file name (not the options)
Documentation
Provides a useful interface for managing options.
Class inherited by almost all classes in Torch.
Object()
virtual void init()
- Initialize the object.
All objects *MUST* call the init()
function of their parents.
void addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
- Add the option name.
This one has a pointer on ptr and has the size size.
You can provide an help in help.
(Note that if help is empty, its an empty string and not NULL).
If the option can be changed at any time, you can set
is_allowed_after_init to true.
void addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
- Several wrappers of addOption() for
Int, Real and Bool options.
Be carefull: there is no type checking.
void addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
void setOption(const char* name, void* ptr)
- Set the option name to the value contained at ptr
void setIOption(const char* name, int option)
- Several wrappers of setOption() for
Int, Real and Bool options.
Be carefull: there is no type checking.
void setROption(const char* name, real option)
void setBOption(const char* name, bool option)
virtual void loadFILE(FILE* file)
- Load the object from a file pointer (not the options)
virtual void saveFILE(FILE* file)
- Save the object to a file pointer (not the options)
void load(const char* filename)
- Load the machine from a file name (not the options)
void save(const char* filename)
- Save the machine to a file name (not the options)
- Direct child classes:
- Vec
Trainer
QCCache
Perm
Optimizer
Measurer
Mat
Machine
Kernel
IOTorch
IOHtk
Grammar
EditDistance
Dictionary
DataSet
CmdLine
ClassFormat
- Author:
- Ronan Collobert (collober@iro.umontreal.ca)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.