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

#include "graphics.in.h"

Inheritance diagram for string_array_property:
Collaboration diagram for string_array_property:

Public Types

enum  desired_enum { string_t, cell_t }
 

Public Member Functions

 string_array_property (const std::string &s, const graphics_handle &h, const std::string &val="", const char &sep='|', const desired_enum &typ=string_t)
 
 string_array_property (const std::string &s, const graphics_handle &h, const Cell &c, const char &sep='|', const desired_enum &typ=string_t)
 
 string_array_property (const string_array_property &p)
 
void add_listener (const octave_value &v, listener_mode mode=POSTSET)
 
Cell cell_value (void) const
 
base_propertyclone (void) const
 
void delete_listener (const octave_value &v=octave_value(), listener_mode mode=POSTSET)
 
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
 
string_array_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)
 
std::string string_value (void) const
 
string_vector string_vector_value (void) const
 
virtual Cell values_as_cell (void) const
 
virtual std::string values_as_string (void) const
 

Protected Member Functions

bool do_set (const octave_value &val)
 

Private Attributes

desired_enum desired_type
 
char separator
 
string_vector str
 

Detailed Description

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

Member Enumeration Documentation

◆ desired_enum

Enumerator
string_t 
cell_t 

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

Constructor & Destructor Documentation

◆ string_array_property() [1/3]

string_array_property::string_array_property ( const std::string s,
const graphics_handle h,
const std::string val = "",
const char &  sep = '|',
const desired_enum typ = string_t 
)
inline

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

References string_vector::append(), separator, str, and val.

Referenced by clone().

◆ string_array_property() [2/3]

string_array_property::string_array_property ( const std::string s,
const graphics_handle h,
const Cell c,
const char &  sep = '|',
const desired_enum typ = string_t 
)
inline

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

References c, error(), base_property::get_name(), i, str, and strings.

◆ string_array_property() [3/3]

string_array_property::string_array_property ( const string_array_property p)
inline

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

Member Function Documentation

◆ add_listener()

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

◆ cell_value()

Cell string_array_property::cell_value ( void  ) const
inline

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

References str.

Referenced by get().

◆ clone()

base_property* string_array_property::clone ( void  ) const
inlinevirtual

Reimplemented from base_property.

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

References string_array_property().

◆ delete_listener()

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

◆ do_set()

bool string_array_property::do_set ( const octave_value val)
inlineprotectedvirtual

◆ get()

octave_value string_array_property::get ( void  ) const
inlinevirtual

Reimplemented from base_property.

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

References cell_value(), desired_type, octave_value(), string_t, and string_value().

◆ get_id()

int base_property::get_id ( void  ) const
inlineinherited

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

References base_property::id.

Referenced by property::get_id().

◆ get_name()

◆ get_parent()

graphics_handle base_property::get_parent ( void  ) const
inlineinherited

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

References base_property::parent.

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

◆ is_hidden()

bool base_property::is_hidden ( void  ) const
inlineinherited

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

References base_property::hidden.

Referenced by property::is_hidden().

◆ is_radio()

virtual bool base_property::is_radio ( void  ) const
inlinevirtualinherited

Reimplemented in double_radio_property, color_property, and radio_property.

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

Referenced by property::is_radio().

◆ ok()

bool base_property::ok ( void  ) const
inlineinherited

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

References octave_handle::ok(), and base_property::parent.

Referenced by property::ok().

◆ operator=()

string_array_property& string_array_property::operator= ( const octave_value val)
inline

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

References val.

◆ run_listeners()

void base_property::run_listeners ( listener_mode  mode = POSTSET)
inherited

◆ set()

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

◆ set_hidden()

void base_property::set_hidden ( bool  flag)
inlineinherited

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

References base_property::hidden.

Referenced by property::set_hidden().

◆ set_id()

void base_property::set_id ( int  d)
inlineinherited

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

References d.

Referenced by property::set_id().

◆ set_name()

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

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

References base_property::name, and s.

Referenced by property::set_name().

◆ set_parent()

void base_property::set_parent ( const graphics_handle h)
inlineinherited

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

References h, and base_property::parent.

Referenced by property::set_parent().

◆ string_value()

std::string string_array_property::string_value ( void  ) const
inline

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

References i, Array< T >::numel(), s, separator, str, and string.

Referenced by get().

◆ string_vector_value()

string_vector string_array_property::string_vector_value ( void  ) const
inline

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

References str.

◆ values_as_cell()

virtual Cell base_property::values_as_cell ( void  ) const
inlinevirtualinherited

Reimplemented in color_property, and radio_property.

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

References error(), and base_property::name.

Referenced by property::values_as_cell().

◆ values_as_string()

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

Reimplemented in color_property, and radio_property.

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

References error(), and base_property::name.

Referenced by property::values_as_string().

Member Data Documentation

◆ desired_type

desired_enum string_array_property::desired_type
private

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

Referenced by do_set(), and get().

◆ separator

char string_array_property::separator
private

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

Referenced by do_set(), string_array_property(), and string_value().

◆ str

string_vector string_array_property::str
private

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