GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ch_manager Class Reference
Collaboration diagram for ch_manager:
Collaboration graph
[legend]

Static Public Member Functions

static void cleanup_instance (void)
 
static void create_instance (void)
 
static void free (const curl_handle &h)
 
static curl_handle get_handle (void)
 
static url_transfer get_object (double val)
 
static url_transfer get_object (const octave_value &val)
 
static url_transfer get_object (const curl_handle &h)
 
static Matrix handle_list (void)
 
static bool instance_ok (void)
 
static curl_handle lookup (double val)
 
static curl_handle lookup (const octave_value &val)
 
static curl_handle make_curl_handle (const std::string &host, const std::string &user, const std::string &passwd, std::ostream &os)
 

Protected Member Functions

 ch_manager (void)
 

Private Types

typedef std::set< curl_handle >
::const_iterator 
const_free_list_iterator
 
typedef std::map< curl_handle,
url_transfer >::const_iterator 
const_iterator
 
typedef std::set< curl_handle >
::iterator 
free_list_iterator
 
typedef std::map< curl_handle,
url_transfer >::iterator 
iterator
 

Private Member Functions

void do_free (const curl_handle &h)
 
curl_handle do_get_handle (void)
 
url_transfer do_get_object (const curl_handle &h)
 
Matrix do_handle_list (void)
 
curl_handle do_lookup (double val)
 
curl_handle do_make_curl_handle (const std::string &host, const std::string &user, const std::string &passwd, std::ostream &os)
 

Private Attributes

std::set< curl_handlehandle_free_list
 
std::map< curl_handle,
url_transfer
handle_map
 
double next_handle
 

Static Private Attributes

static ch_managerinstance = 0
 

Detailed Description

Definition at line 63 of file urlwrite.cc.

Member Typedef Documentation

Definition at line 154 of file urlwrite.cc.

Definition at line 151 of file urlwrite.cc.

Definition at line 153 of file urlwrite.cc.

Definition at line 150 of file urlwrite.cc.

Constructor & Destructor Documentation

ch_manager::ch_manager ( void  )
inlineprotected

Definition at line 67 of file urlwrite.cc.

Referenced by create_instance().

Member Function Documentation

static void ch_manager::cleanup_instance ( void  )
inlinestatic

Definition at line 92 of file urlwrite.cc.

Referenced by create_instance().

void ch_manager::create_instance ( void  )
static

Definition at line 222 of file urlwrite.cc.

References singleton_cleanup_list::add(), ch_manager(), cleanup_instance(), and instance.

void ch_manager::do_free ( const curl_handle h)
private
curl_handle ch_manager::do_get_handle ( void  )
private

Definition at line 239 of file urlwrite.cc.

References ceil(), handle_free_list, make_handle_fraction(), and next_handle.

url_transfer ch_manager::do_get_object ( const curl_handle h)
inlineprivate

Definition at line 176 of file urlwrite.cc.

References octave_handle::ok().

Matrix ch_manager::do_handle_list ( void  )
inlineprivate

Definition at line 205 of file urlwrite.cc.

References octave_handle::value().

curl_handle ch_manager::do_lookup ( double  val)
inlineprivate

Definition at line 169 of file urlwrite.cc.

References xisnan().

curl_handle ch_manager::do_make_curl_handle ( const std::string &  host,
const std::string &  user,
const std::string &  passwd,
std::ostream &  os 
)
inlineprivate

Definition at line 183 of file urlwrite.cc.

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

static void ch_manager::free ( const curl_handle h)
inlinestatic

Definition at line 99 of file urlwrite.cc.

Referenced by F__ftp_close__().

static curl_handle ch_manager::get_handle ( void  )
inlinestatic

Definition at line 94 of file urlwrite.cc.

static url_transfer ch_manager::get_object ( double  val)
inlinestatic
static url_transfer ch_manager::get_object ( const octave_value val)
inlinestatic

Definition at line 121 of file urlwrite.cc.

References lookup().

static url_transfer ch_manager::get_object ( const curl_handle h)
inlinestatic

Definition at line 126 of file urlwrite.cc.

static Matrix ch_manager::handle_list ( void  )
inlinestatic

Definition at line 141 of file urlwrite.cc.

static bool ch_manager::instance_ok ( void  )
inlinestatic

Definition at line 75 of file urlwrite.cc.

References error().

static curl_handle ch_manager::lookup ( double  val)
inlinestatic

Definition at line 105 of file urlwrite.cc.

Referenced by F__ftp_close__().

static curl_handle ch_manager::lookup ( const octave_value val)
inlinestatic
static curl_handle ch_manager::make_curl_handle ( const std::string &  host,
const std::string &  user,
const std::string &  passwd,
std::ostream &  os 
)
inlinestatic

Definition at line 131 of file urlwrite.cc.

Referenced by F__ftp__().

Member Data Documentation

std::set<curl_handle> ch_manager::handle_free_list
private

Definition at line 160 of file urlwrite.cc.

Referenced by do_free(), and do_get_handle().

std::map<curl_handle, url_transfer> ch_manager::handle_map
private

Definition at line 157 of file urlwrite.cc.

Referenced by do_free().

ch_manager * ch_manager::instance = 0
staticprivate

Definition at line 148 of file urlwrite.cc.

Referenced by create_instance().

double ch_manager::next_handle
private

Definition at line 163 of file urlwrite.cc.

Referenced by do_get_handle().


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