GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::url_handle_manager Class Reference

#include "url-handle-manager.h"

Collaboration diagram for octave::url_handle_manager:

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_manageroperator= (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_handlehandle_free_list
 
std::map< url_handle, url_transferhandle_map
 
double next_handle
 

Detailed Description

Definition at line 47 of file url-handle-manager.h.

Member Typedef Documentation

◆ const_free_list_iterator

◆ const_iterator

◆ free_list_iterator

Definition at line 134 of file url-handle-manager.h.

◆ iterator

Definition at line 131 of file url-handle-manager.h.

Constructor & Destructor Documentation

◆ url_handle_manager() [1/2]

octave::url_handle_manager::url_handle_manager ( void  )
inline

Definition at line 51 of file url-handle-manager.h.

◆ url_handle_manager() [2/2]

octave::url_handle_manager::url_handle_manager ( const url_handle_manager )
delete

◆ ~url_handle_manager()

octave::url_handle_manager::~url_handle_manager ( void  )
default

Member Function Documentation

◆ free()

void octave::url_handle_manager::free ( const url_handle h)

◆ get_handle()

url_handle octave::url_handle_manager::get_handle ( void  )

◆ get_object() [1/3]

url_transfer octave::url_handle_manager::get_object ( const octave_value val)
inline

Definition at line 84 of file url-handle-manager.h.

References lookup().

◆ get_object() [2/3]

url_transfer octave::url_handle_manager::get_object ( const url_handle h)
inline

Definition at line 89 of file url-handle-manager.h.

References octave_handle::ok().

◆ get_object() [3/3]

◆ handle_list()

Matrix octave::url_handle_manager::handle_list ( void  )
inline

Definition at line 113 of file url-handle-manager.h.

References retval, and octave_handle::value().

◆ lookup() [1/2]

url_handle octave::url_handle_manager::lookup ( const octave_value val)
inline

◆ lookup() [2/2]

url_handle octave::url_handle_manager::lookup ( double  val)
inline

Definition at line 65 of file url-handle-manager.h.

References octave::math::isnan().

Referenced by F__ftp_close__().

◆ make_url_handle()

url_handle octave::url_handle_manager::make_url_handle ( const std::string &  host,
const std::string &  user,
const std::string &  passwd,
std::ostream &  os 
)
inline

Definition at line 96 of file url-handle-manager.h.

References error(), and octave::url_transfer::is_valid().

Referenced by F__ftp__().

◆ operator=()

url_handle_manager& octave::url_handle_manager::operator= ( const url_handle_manager )
delete

Member Data Documentation

◆ handle_free_list

std::set<url_handle> octave::url_handle_manager::handle_free_list
private

Definition at line 141 of file url-handle-manager.h.

Referenced by free(), and get_handle().

◆ handle_map

std::map<url_handle, url_transfer> octave::url_handle_manager::handle_map
private

Definition at line 138 of file url-handle-manager.h.

Referenced by free().

◆ next_handle

double octave::url_handle_manager::next_handle
private

Definition at line 144 of file url-handle-manager.h.

Referenced by get_handle().


The documentation for this class was generated from the following files: