GNU Octave  3.8.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 | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
gtk_manager Class Reference

#include "graphics.h"

Collaboration diagram for gtk_manager:
Collaboration graph
[legend]

Static Public Member Functions

static Cell available_toolkits_list (void)
static Cell available_toolkits_list (void)
static std::string default_toolkit (void)
static std::string default_toolkit (void)
static graphics_toolkit find_toolkit (const std::string &name)
static graphics_toolkit find_toolkit (const std::string &name)
static graphics_toolkit get_toolkit (void)
static graphics_toolkit get_toolkit (void)
static void load_toolkit (const graphics_toolkit &tk)
static void load_toolkit (const graphics_toolkit &tk)
static Cell loaded_toolkits_list (void)
static Cell loaded_toolkits_list (void)
static void register_toolkit (const std::string &name)
static void register_toolkit (const std::string &name)
static void unload_all_toolkits (void)
static void unload_all_toolkits (void)
static void unload_toolkit (const std::string &name)
static void unload_toolkit (const std::string &name)
static void unregister_toolkit (const std::string &name)
static void unregister_toolkit (const std::string &name)

Private Types

typedef std::set< std::string >
::iterator 
available_toolkits_iterator
typedef std::set< std::string >
::iterator 
available_toolkits_iterator
typedef std::set< std::string >
::const_iterator 
const_available_toolkits_iterator
typedef std::set< std::string >
::const_iterator 
const_available_toolkits_iterator
typedef std::map< std::string,
graphics_toolkit >
::const_iterator 
const_loaded_toolkits_iterator
typedef std::map< std::string,
graphics_toolkit >
::const_iterator 
const_loaded_toolkits_iterator
typedef std::map< std::string,
graphics_toolkit >::iterator 
loaded_toolkits_iterator
typedef std::map< std::string,
graphics_toolkit >::iterator 
loaded_toolkits_iterator

Private Member Functions

 gtk_manager (void)
 gtk_manager (void)
 ~gtk_manager (void)
 ~gtk_manager (void)
Cell do_available_toolkits_list (void) const
Cell do_available_toolkits_list (void) const
std::string do_default_toolkit (void)
std::string do_default_toolkit (void)
graphics_toolkit do_find_toolkit (const std::string &name) const
graphics_toolkit do_find_toolkit (const std::string &name) const
graphics_toolkit do_get_toolkit (void) const
graphics_toolkit do_get_toolkit (void) const
void do_load_toolkit (const graphics_toolkit &tk)
void do_load_toolkit (const graphics_toolkit &tk)
Cell do_loaded_toolkits_list (void) const
Cell do_loaded_toolkits_list (void) const
void do_register_toolkit (const std::string &name)
void do_register_toolkit (const std::string &name)
void do_unload_all_toolkits (void)
void do_unload_all_toolkits (void)
void do_unload_toolkit (const std::string &name)
void do_unload_toolkit (const std::string &name)
void do_unregister_toolkit (const std::string &name)
void do_unregister_toolkit (const std::string &name)

Static Private Member Functions

static void cleanup_instance (void)
static void cleanup_instance (void)
static OCTINTERP_API void create_instance (void)
static OCTINTERP_API void create_instance (void)
static bool instance_ok (void)
static bool instance_ok (void)

Private Attributes

std::set< std::string > available_toolkits
std::string dtk
std::map< std::string,
graphics_toolkit
loaded_toolkits

Static Private Attributes

static OCTINTERP_API gtk_managerinstance = 0

Detailed Description

Definition at line 2216 of file graphics.h.

Member Typedef Documentation

typedef std::set<std::string>::iterator gtk_manager::available_toolkits_iterator
private

Definition at line 2312 of file graphics.in.h.

typedef std::set<std::string>::iterator gtk_manager::available_toolkits_iterator
private

Definition at line 2314 of file graphics.h.

typedef std::set<std::string>::const_iterator gtk_manager::const_available_toolkits_iterator
private

Definition at line 2315 of file graphics.in.h.

typedef std::set<std::string>::const_iterator gtk_manager::const_available_toolkits_iterator
private

Definition at line 2317 of file graphics.h.

typedef std::map<std::string, graphics_toolkit>::const_iterator gtk_manager::const_loaded_toolkits_iterator
private

Definition at line 2321 of file graphics.in.h.

typedef std::map<std::string, graphics_toolkit>::const_iterator gtk_manager::const_loaded_toolkits_iterator
private

Definition at line 2323 of file graphics.h.

typedef std::map<std::string, graphics_toolkit>::iterator gtk_manager::loaded_toolkits_iterator
private

Definition at line 2318 of file graphics.in.h.

typedef std::map<std::string, graphics_toolkit>::iterator gtk_manager::loaded_toolkits_iterator
private

Definition at line 2320 of file graphics.h.

Constructor & Destructor Documentation

gtk_manager::gtk_manager ( void  )
private

Definition at line 9587 of file graphics.cc.

References display_available(), and dtk.

Referenced by create_instance().

gtk_manager::~gtk_manager ( void  )
inlineprivate

Definition at line 2280 of file graphics.h.

gtk_manager::gtk_manager ( void  )
private
gtk_manager::~gtk_manager ( void  )
inlineprivate

Definition at line 2278 of file graphics.in.h.

Member Function Documentation

static Cell gtk_manager::available_toolkits_list ( void  )
inlinestatic

Definition at line 2253 of file graphics.in.h.

References do_available_toolkits_list(), instance, and instance_ok().

static Cell gtk_manager::available_toolkits_list ( void  )
inlinestatic

Definition at line 2255 of file graphics.h.

References do_available_toolkits_list(), instance, and instance_ok().

Referenced by Favailable_graphics_toolkits().

static void gtk_manager::cleanup_instance ( void  )
inlinestaticprivate

Definition at line 2299 of file graphics.in.h.

References instance.

static void gtk_manager::cleanup_instance ( void  )
inlinestaticprivate

Definition at line 2301 of file graphics.h.

References instance.

Referenced by create_instance().

static OCTINTERP_API void gtk_manager::create_instance ( void  )
staticprivate
void gtk_manager::create_instance ( void  )
staticprivate

Definition at line 9598 of file graphics.cc.

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

Referenced by instance_ok().

static std::string gtk_manager::default_toolkit ( void  )
inlinestatic

Definition at line 2269 of file graphics.in.h.

References do_default_toolkit(), instance, and instance_ok().

static std::string gtk_manager::default_toolkit ( void  )
inlinestatic
Cell gtk_manager::do_available_toolkits_list ( void  ) const
inlineprivate

Definition at line 2355 of file graphics.in.h.

References available_toolkits.

Cell gtk_manager::do_available_toolkits_list ( void  ) const
inlineprivate

Definition at line 2357 of file graphics.h.

References available_toolkits.

Referenced by available_toolkits_list().

std::string gtk_manager::do_default_toolkit ( void  )
inlineprivate

Definition at line 2396 of file graphics.in.h.

References dtk.

std::string gtk_manager::do_default_toolkit ( void  )
inlineprivate

Definition at line 2398 of file graphics.h.

References dtk.

Referenced by default_toolkit().

graphics_toolkit gtk_manager::do_find_toolkit ( const std::string &  name) const
inlineprivate

Definition at line 2345 of file graphics.in.h.

References loaded_toolkits.

graphics_toolkit gtk_manager::do_find_toolkit ( const std::string &  name) const
inlineprivate

Definition at line 2347 of file graphics.h.

References loaded_toolkits.

Referenced by find_toolkit().

graphics_toolkit gtk_manager::do_get_toolkit ( void  ) const
private
graphics_toolkit gtk_manager::do_get_toolkit ( void  ) const
private

Definition at line 9607 of file graphics.cc.

References available_toolkits, dtk, error(), error_state, feval(), and loaded_toolkits.

Referenced by get_toolkit().

void gtk_manager::do_load_toolkit ( const graphics_toolkit tk)
inlineprivate

Definition at line 2335 of file graphics.in.h.

References graphics_toolkit::get_name(), and loaded_toolkits.

void gtk_manager::do_load_toolkit ( const graphics_toolkit tk)
inlineprivate

Definition at line 2337 of file graphics.h.

References graphics_toolkit::get_name(), and loaded_toolkits.

Referenced by load_toolkit().

Cell gtk_manager::do_loaded_toolkits_list ( void  ) const
inlineprivate

Definition at line 2367 of file graphics.in.h.

References loaded_toolkits.

Cell gtk_manager::do_loaded_toolkits_list ( void  ) const
inlineprivate

Definition at line 2369 of file graphics.h.

References loaded_toolkits.

Referenced by loaded_toolkits_list().

void gtk_manager::do_register_toolkit ( const std::string &  name)
inlineprivate

Definition at line 2325 of file graphics.in.h.

References available_toolkits.

void gtk_manager::do_register_toolkit ( const std::string &  name)
inlineprivate

Definition at line 2327 of file graphics.h.

References available_toolkits.

Referenced by register_toolkit().

void gtk_manager::do_unload_all_toolkits ( void  )
inlineprivate

Definition at line 2379 of file graphics.in.h.

References loaded_toolkits, and unload_toolkit().

void gtk_manager::do_unload_all_toolkits ( void  )
inlineprivate

Definition at line 2381 of file graphics.h.

References loaded_toolkits, and unload_toolkit().

Referenced by unload_all_toolkits().

void gtk_manager::do_unload_toolkit ( const std::string &  name)
inlineprivate

Definition at line 2340 of file graphics.in.h.

References loaded_toolkits.

void gtk_manager::do_unload_toolkit ( const std::string &  name)
inlineprivate

Definition at line 2342 of file graphics.h.

References loaded_toolkits.

Referenced by unload_toolkit().

void gtk_manager::do_unregister_toolkit ( const std::string &  name)
inlineprivate

Definition at line 2330 of file graphics.in.h.

References available_toolkits.

void gtk_manager::do_unregister_toolkit ( const std::string &  name)
inlineprivate

Definition at line 2332 of file graphics.h.

References available_toolkits.

Referenced by unregister_toolkit().

static graphics_toolkit gtk_manager::find_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2247 of file graphics.in.h.

References do_find_toolkit(), instance, and instance_ok().

static graphics_toolkit gtk_manager::find_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2249 of file graphics.h.

References do_find_toolkit(), instance, and instance_ok().

Referenced by figure::properties::set___graphics_toolkit__().

static graphics_toolkit gtk_manager::get_toolkit ( void  )
inlinestatic

Definition at line 2218 of file graphics.in.h.

References do_get_toolkit(), instance, and instance_ok().

static graphics_toolkit gtk_manager::get_toolkit ( void  )
inlinestatic

Definition at line 2220 of file graphics.h.

References do_get_toolkit(), instance, and instance_ok().

Referenced by figure::properties::get_toolkit().

static bool gtk_manager::instance_ok ( void  )
inlinestaticprivate

Definition at line 2282 of file graphics.in.h.

References create_instance(), error(), and instance.

static bool gtk_manager::instance_ok ( void  )
inlinestaticprivate
static void gtk_manager::load_toolkit ( const graphics_toolkit tk)
inlinestatic

Definition at line 2235 of file graphics.in.h.

References do_load_toolkit(), instance, and instance_ok().

static void gtk_manager::load_toolkit ( const graphics_toolkit tk)
inlinestatic

Definition at line 2237 of file graphics.h.

References do_load_toolkit(), instance, and instance_ok().

Referenced by DEFUN_DLD().

static Cell gtk_manager::loaded_toolkits_list ( void  )
inlinestatic

Definition at line 2258 of file graphics.in.h.

References do_loaded_toolkits_list(), instance, and instance_ok().

static Cell gtk_manager::loaded_toolkits_list ( void  )
inlinestatic

Definition at line 2260 of file graphics.h.

References do_loaded_toolkits_list(), instance, and instance_ok().

Referenced by Floaded_graphics_toolkits().

static void gtk_manager::register_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2223 of file graphics.in.h.

References do_register_toolkit(), instance, and instance_ok().

static void gtk_manager::register_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2225 of file graphics.h.

References do_register_toolkit(), instance, and instance_ok().

Referenced by Fregister_graphics_toolkit().

static void gtk_manager::unload_all_toolkits ( void  )
inlinestatic

Definition at line 2263 of file graphics.in.h.

References do_unload_all_toolkits(), instance, and instance_ok().

static void gtk_manager::unload_all_toolkits ( void  )
inlinestatic

Definition at line 2265 of file graphics.h.

References do_unload_all_toolkits(), instance, and instance_ok().

Referenced by do_octave_atexit().

static void gtk_manager::unload_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2241 of file graphics.in.h.

References do_unload_toolkit(), instance, and instance_ok().

static void gtk_manager::unload_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2243 of file graphics.h.

References do_unload_toolkit(), instance, and instance_ok().

Referenced by gnuplot_graphics_toolkit::close(), and do_unload_all_toolkits().

static void gtk_manager::unregister_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2229 of file graphics.in.h.

References do_unregister_toolkit(), instance, and instance_ok().

static void gtk_manager::unregister_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2231 of file graphics.h.

References do_unregister_toolkit(), instance, and instance_ok().

Member Data Documentation

std::set< std::string > gtk_manager::available_toolkits
private
std::string gtk_manager::dtk
private

Definition at line 2306 of file graphics.h.

Referenced by do_default_toolkit(), do_get_toolkit(), and gtk_manager().

static OCTINTERP_API gtk_manager * gtk_manager::instance = 0
staticprivate
std::map< std::string, graphics_toolkit > gtk_manager::loaded_toolkits
private

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