class Parameters

Parameters definition.

Inheritance:


Public Fields

[more]real** data
Array of pointers to array of parameters.
[more]int n_data
Size of data
[more]int* size
size[i] is the size of data[i]
[more]int n_params
Total number of parameters

Public Methods

[more] Parameters()
No parameters ?
[more] Parameters(int n_params_)
Create one entry in data with the given size
[more]void addParameters(real* params, int n_params_, bool do_copy=false)
Add an entry in data.
[more]void add(Parameters* params, bool do_copy=false)
Add all entries given by params in data.
[more]void copy(Parameters* from)
Copy the given parameters.
[more]void copyFrom(real* vec)
Copy a real vector in the parameters.
[more]void copyTo(real* vec)
Copy the full parameters in a real vector.
[more]virtual void saveXFile(XFile* file)
Save all the parameters
[more]virtual void loadXFile(XFile* file)
Load all the parameters


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


Documentation

Parameters definition. Parameters are a bench of real arrays.

oreal** data
Array of pointers to array of parameters. The size of this array is given by n_data. The size of data[i] is given by size[i]

oint n_data
Size of data

oint* size
size[i] is the size of data[i]

oint n_params
Total number of parameters

o Parameters()
No parameters ?

o Parameters(int n_params_)
Create one entry in data with the given size

ovoid addParameters(real* params, int n_params_, bool do_copy=false)
Add an entry in data. If do_copy is true, copy the parameters. Else, just copy the pointer.

ovoid add(Parameters* params, bool do_copy=false)
Add all entries given by params in data. If do_copy is true, copy the parameters, else just copy the pointers.

ovoid copy(Parameters* from)
Copy the given parameters. The given parameters don't need to have the same structure. But it must have the same total length.

ovoid copyFrom(real* vec)
Copy a real vector in the parameters. The parameters must have the good size!

ovoid copyTo(real* vec)
Copy the full parameters in a real vector. The parameters must have the good size!

ovirtual void saveXFile(XFile* file)
Save all the parameters

ovirtual void loadXFile(XFile* file)
Load all the parameters


This class has no child classes.
Author:
Ronan Collobert (collober@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.