25 #if ! defined (octave_url_handle_manager) 26 #define octave_url_handle_manager 1 28 #include "octave-config.h" 49 : handle_map (), handle_free_list (),
50 next_handle (-1.0 - (rand () + 1.0) / (RAND_MAX + 2.0)) { }
65 : handle_map.find (
val));
67 return (
p != handle_map.end ()) ?
p->first :
url_handle ();
72 return val.is_real_scalar () ?
lookup (
val.double_value ())
88 iterator p = (
h.ok () ? handle_map.find (
h) : handle_map.end ());
103 error (
"support for URL transfers was disabled when Octave was built");
115 for (
const auto& h_obj : handle_map)
128 typedef std::map<url_handle, url_transfer>::iterator
iterator;
url_handle make_url_handle(const std::string &host, const std::string &user, const std::string &passwd, std::ostream &os)
bool is_valid(void) const
std::set< url_handle >::iterator free_list_iterator
url_handle lookup(double val)
std::set< url_handle > handle_free_list
std::set< url_handle >::const_iterator const_free_list_iterator
identity matrix If supplied two scalar respectively For allows like xample val
std::map< url_handle, url_transfer > handle_map
void error(const char *fmt,...)
octave_idx_type lookup(const T *x, octave_idx_type n, T y)
std::map< url_handle, url_transfer >::iterator iterator
url_handle lookup(const octave_value &val)
url_transfer get_object(const url_handle &h)
url_transfer get_object(double val)
url_transfer get_object(const octave_value &val)
std::map< url_handle, url_transfer >::const_iterator const_iterator
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string