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

#include "graphics.in.h"

Collaboration diagram for radio_values:

Public Member Functions

 radio_values (const radio_values &a)
 
OCTINTERP_API radio_values (const std::string &opt_string="")
 
bool contains (const std::string &val, std::string &match)
 
std::string default_value (void) const
 
octave_idx_type nelem (void) const
 
radio_valuesoperator= (const radio_values &a)
 
bool validate (const std::string &val, std::string &match)
 
Cell values_as_cell (void) const
 
std::string values_as_string (void) const
 

Private Attributes

std::string default_val
 
std::set< caseless_strpossible_vals
 

Detailed Description

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

Constructor & Destructor Documentation

◆ radio_values() [1/2]

radio_values::radio_values ( const std::string &  opt_string = "")

Definition at line 1294 of file graphics.cc.

References default_val, len, and possible_vals.

◆ radio_values() [2/2]

radio_values::radio_values ( const radio_values a)
inline

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

Member Function Documentation

◆ contains()

bool radio_values::contains ( const std::string &  val,
std::string &  match 
)
inline

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

References len, and possible_vals.

Referenced by color_property::do_set(), double_radio_property::do_set(), and validate().

◆ default_value()

std::string radio_values::default_value ( void  ) const
inline

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

References default_val.

Referenced by property::create(), and values_as_string().

◆ nelem()

octave_idx_type radio_values::nelem ( void  ) const
inline

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

References possible_vals.

Referenced by values_as_cell().

◆ operator=()

radio_values& radio_values::operator= ( const radio_values a)
inline

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

References default_val, and possible_vals.

◆ validate()

bool radio_values::validate ( const std::string &  val,
std::string &  match 
)
inline

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

References contains(), error(), and retval.

Referenced by radio_property::do_set().

◆ values_as_cell()

Cell radio_values::values_as_cell ( void  ) const

Definition at line 1358 of file graphics.cc.

References nelem(), possible_vals, and retval.

Referenced by radio_property::values_as_cell(), and color_property::values_as_cell().

◆ values_as_string()

std::string radio_values::values_as_string ( void  ) const

Member Data Documentation

◆ default_val

std::string radio_values::default_val
private

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

Referenced by radio_values(), default_value(), and operator=().

◆ possible_vals

std::set<caseless_str> radio_values::possible_vals
private

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