GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
base_property Class Reference

#include ""

Inheritance diagram for base_property:
Collaboration diagram for base_property:

Public Member Functions

 base_property (void)
 base_property (const std::string &s, const graphics_handle &h)
 base_property (const base_property &p)
virtual ~base_property (void)=default
void add_listener (const octave_value &v, listener_mode mode=POSTSET)
virtual base_propertyclone (void) const
void delete_listener (const octave_value &v=octave_value(), listener_mode mode=POSTSET)
virtual octave_value get (void) const
int get_id (void) const
std::string get_name (void) const
graphics_handle get_parent (void) const
bool is_hidden (void) const
virtual bool is_radio (void) const
bool ok (void) const
base_propertyoperator= (const octave_value &val)
OCTINTERP_API void run_listeners (listener_mode mode=POSTSET)
OCTINTERP_API bool set (const octave_value &v, bool do_run=true, bool do_notify_toolkit=true)
void set_hidden (bool flag)
void set_id (int d)
void set_name (const std::string &s)
void set_parent (const graphics_handle &h)
virtual Cell values_as_cell (void) const
virtual std::string values_as_string (void) const

Protected Member Functions

virtual bool do_set (const octave_value &)

Private Types

typedef std::map< listener_mode, octave_value_listlistener_map
typedef std::map< listener_mode, octave_value_list >::const_iterator listener_map_const_iterator
typedef std::map< listener_mode, octave_value_list >::iterator listener_map_iterator

Private Attributes

octave::refcount< int > count
bool hidden
int id
listener_map listeners
std::string name
graphics_handle parent


class property

Detailed Description

Definition at line 268 of file

Member Typedef Documentation

◆ listener_map

◆ listener_map_const_iterator

Definition at line 408 of file

◆ listener_map_iterator

Definition at line 406 of file

Constructor & Destructor Documentation

◆ base_property() [1/3]

base_property::base_property ( void  )

Definition at line 274 of file

Referenced by clone().

◆ base_property() [2/3]

base_property::base_property ( const std::string s,
const graphics_handle h 

Definition at line 278 of file

◆ base_property() [3/3]

base_property::base_property ( const base_property p)

Definition at line 282 of file

◆ ~base_property()

virtual base_property::~base_property ( void  )

Member Function Documentation

◆ add_listener()

void base_property::add_listener ( const octave_value v,
listener_mode  mode = POSTSET 

◆ clone()

◆ delete_listener()

void base_property::delete_listener ( const octave_value v = octave_value (),
listener_mode  mode = POSTSET 

◆ do_set()

virtual bool base_property::do_set ( const octave_value )

◆ get()

virtual octave_value base_property::get ( void  ) const

◆ get_id()

int base_property::get_id ( void  ) const

Definition at line 305 of file

References id.

Referenced by property::get_id().

◆ get_name()

◆ get_parent()

graphics_handle base_property::get_parent ( void  ) const

Definition at line 295 of file

References parent.

Referenced by callback_property::execute(), and property::get_parent().

◆ is_hidden()

bool base_property::is_hidden ( void  ) const

Definition at line 299 of file

References hidden.

Referenced by property::is_hidden().

◆ is_radio()

virtual bool base_property::is_radio ( void  ) const

Reimplemented in double_radio_property, color_property, and radio_property.

Definition at line 303 of file

Referenced by property::is_radio().

◆ ok()

bool base_property::ok ( void  ) const

Definition at line 289 of file

References octave_handle::ok(), and parent.

Referenced by property::ok().

◆ operator=()

base_property& base_property::operator= ( const octave_value val)

Definition at line 329 of file

References val.

◆ run_listeners()

void base_property::run_listeners ( listener_mode  mode = POSTSET)

◆ set()

bool base_property::set ( const octave_value v,
bool  do_run = true,
bool  do_notify_toolkit = true 

◆ set_hidden()

void base_property::set_hidden ( bool  flag)

Definition at line 301 of file

References hidden.

Referenced by property::set_hidden().

◆ set_id()

void base_property::set_id ( int  d)

Definition at line 307 of file

References d.

Referenced by property::set_id().

◆ set_name()

void base_property::set_name ( const std::string s)

Definition at line 293 of file

References name, and s.

Referenced by property::set_name().

◆ set_parent()

void base_property::set_parent ( const graphics_handle h)

Definition at line 297 of file

References h, and parent.

Referenced by property::set_parent().

◆ values_as_cell()

virtual Cell base_property::values_as_cell ( void  ) const

Reimplemented in color_property, and radio_property.

Definition at line 324 of file

References error(), and name.

Referenced by property::values_as_cell().

◆ values_as_string()

virtual std::string base_property::values_as_string ( void  ) const

Reimplemented in color_property, and radio_property.

Definition at line 319 of file

References error(), and name.

Referenced by property::values_as_string().

Friends And Related Function Documentation

◆ property

friend class property

Definition at line 271 of file

Member Data Documentation

◆ count

octave::refcount<int> base_property::count

Definition at line 412 of file

Referenced by property::operator=(), property::property(), and property::~property().

◆ hidden

bool base_property::hidden

Definition at line 415 of file

Referenced by is_hidden(), and set_hidden().

◆ id

int base_property::id

Definition at line 411 of file

Referenced by get_id().

◆ listeners

listener_map base_property::listeners

Definition at line 416 of file

Referenced by add_listener(), delete_listener(), and run_listeners().

◆ name

std::string base_property::name

Definition at line 413 of file

Referenced by do_set(), get(), get_name(), set_name(), values_as_cell(), and values_as_string().

◆ parent

graphics_handle base_property::parent

Definition at line 414 of file

Referenced by get_parent(), ok(), run_listeners(), set(), and set_parent().

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