Class initializing/finalizing librsb
state.
More...
#include <rsb.hpp>
|
template<typename Err_t = void> |
Err_t | set_opt_str (const rsb_char_t *opnp, const rsb_char_t *opvp) |
|
template<typename Err_t = void> |
Err_t | set_opt (enum rsb_opt_t iof, const void *iop) |
|
template<typename Err_t = void> |
Err_t | get_opt (enum rsb_opt_t iof, void *iop) const |
|
rsb_string_t | get_opt (enum rsb_opt_t iof) const |
|
template<typename Err_t = void> |
Err_t | set_num_threads (rsb_int_t nt) |
|
rsb_int_t | get_num_threads (void) const |
|
template<typename Err_t = void> |
Err_t | reinit (struct rsb_initopts *iop) |
|
| RsbLib (bool verbose) |
|
| RsbLib (void) |
|
size_t | meminfo (void) |
|
| ~RsbLib (void) |
|
Class initializing/finalizing librsb
state.
Before creating any RsbMatrix
objects, make sure you have initialized librsb
by creating one single RsbLib
object. Similarly, RsbMatrix
object shall leave scope after the RsbLib
object has been deallocated.
Several librsb
options can be queried or changed via e.g. get_opt(), set_opt(), get_num_threads(), set_num_threads().
◆ RsbLib() [1/2]
RsbLib::RsbLib |
( |
bool |
verbose | ) |
|
|
inline |
Initialize librsb.
- See also
- rsb_lib_reinit().
◆ RsbLib() [2/2]
Initialize librsb.
- See also
- rsb_lib_reinit().
◆ ~RsbLib()
Destructor: finalize librsb
.
This is being invoked at the end of the scope of a RsbLib
object: typically at application's end.
◆ get_num_threads()
rsb_int_t RsbLib::get_num_threads |
( |
void |
| ) |
const |
|
inline |
Indirect interface to rsb_lib_get_opt.
◆ get_opt() [1/2]
template<typename Err_t = void>
Err_t RsbLib::get_opt |
( |
enum rsb_opt_t |
iof, |
|
|
void * |
iop |
|
) |
| const |
|
inline |
Interface to rsb_lib_get_opt.
◆ get_opt() [2/2]
rsb_string_t RsbLib::get_opt |
( |
enum rsb_opt_t |
iof | ) |
const |
|
inline |
Interface to rsb_lib_get_opt.
◆ meminfo()
size_t RsbLib::meminfo |
( |
void |
| ) |
|
|
inline |
Provide memory debug info from librsb and return usage amount. Only effective if librsb configured accordingly.
On error, throw an exception.
◆ reinit()
template<typename Err_t = void>
Err_t RsbLib::reinit |
( |
struct rsb_initopts * |
iop | ) |
|
|
inline |
Interface to rsb_lib_reinit().
◆ set_num_threads()
template<typename Err_t = void>
Err_t RsbLib::set_num_threads |
( |
rsb_int_t |
nt | ) |
|
|
inline |
Indirect interface to rsb_lib_set_opt.
◆ set_opt()
template<typename Err_t = void>
Err_t RsbLib::set_opt |
( |
enum rsb_opt_t |
iof, |
|
|
const void * |
iop |
|
) |
| |
|
inline |
Interface to rsb_lib_set_opt.
◆ set_opt_str()
template<typename Err_t = void>
Err_t RsbLib::set_opt_str |
( |
const rsb_char_t * |
opnp, |
|
|
const rsb_char_t * |
opvp |
|
) |
| |
|
inline |
Interface to rsb_lib_set_opt_str.
The documentation for this class was generated from the following file: