#include "url-handle-manager.h"
Public Member Functions | |
url_handle_manager (const url_handle_manager &)=delete | |
url_handle_manager (void) | |
~url_handle_manager (void)=default | |
void | free (const url_handle &h) |
url_handle | get_handle (void) |
url_transfer | get_object (const octave_value &val) |
url_transfer | get_object (const url_handle &h) |
url_transfer | get_object (double val) |
Matrix | handle_list (void) |
url_handle | lookup (const octave_value &val) |
url_handle | lookup (double val) |
url_handle | make_url_handle (const std::string &host, const std::string &user, const std::string &passwd, std::ostream &os) |
url_handle_manager & | operator= (const url_handle_manager &)=delete |
Private Types | |
typedef std::set< url_handle >::const_iterator | const_free_list_iterator |
typedef std::map< url_handle, url_transfer >::const_iterator | const_iterator |
typedef std::set< url_handle >::iterator | free_list_iterator |
typedef std::map< url_handle, url_transfer >::iterator | iterator |
Private Attributes | |
std::set< url_handle > | m_handle_free_list |
std::map< url_handle, url_transfer > | m_handle_map |
double | m_next_handle |
Definition at line 47 of file url-handle-manager.h.
|
private |
Definition at line 135 of file url-handle-manager.h.
|
private |
Definition at line 132 of file url-handle-manager.h.
|
private |
Definition at line 134 of file url-handle-manager.h.
|
private |
Definition at line 131 of file url-handle-manager.h.
|
inline |
Definition at line 51 of file url-handle-manager.h.
|
delete |
|
default |
void url_handle_manager::free | ( | const url_handle & | h | ) |
Definition at line 71 of file url-handle-manager.cc.
References ceil(), error(), m_handle_free_list, m_handle_map, make_handle_fraction(), octave_handle::ok(), and octave_handle::value().
Referenced by F__ftp_close__().
url_handle url_handle_manager::get_handle | ( | void | ) |
Definition at line 46 of file url-handle-manager.cc.
References ceil(), m_handle_free_list, m_next_handle, and make_handle_fraction().
|
inline |
Definition at line 84 of file url-handle-manager.h.
References lookup().
|
inline |
Definition at line 89 of file url-handle-manager.h.
References octave_handle::ok().
|
inline |
Definition at line 79 of file url-handle-manager.h.
References lookup().
Referenced by F__ftp_ascii__(), F__ftp_binary__(), F__ftp_cwd__(), F__ftp_delete__(), F__ftp_dir__(), F__ftp_mget__(), F__ftp_mkdir__(), F__ftp_mode__(), F__ftp_mput__(), F__ftp_pwd__(), F__ftp_rename__(), and F__ftp_rmdir__().
|
inline |
Definition at line 113 of file url-handle-manager.h.
References octave_handle::value().
|
inline |
Definition at line 73 of file url-handle-manager.h.
References octave_value::double_value(), octave_value::is_real_scalar(), and lookup().
|
inline |
Definition at line 65 of file url-handle-manager.h.
References isnan().
Referenced by F__ftp_close__().
|
inline |
Definition at line 96 of file url-handle-manager.h.
References error(), and url_transfer::is_valid().
Referenced by F__ftp__().
|
delete |
|
private |
Definition at line 141 of file url-handle-manager.h.
Referenced by free(), and get_handle().
|
private |
Definition at line 138 of file url-handle-manager.h.
Referenced by free().
|
private |
Definition at line 144 of file url-handle-manager.h.
Referenced by get_handle().