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
Public Member Functions | Private Attributes | List of all members
radio_values Class Reference

#include "graphics.h"

Collaboration diagram for radio_values:
Collaboration graph
[legend]

Public Member Functions

OCTINTERP_API radio_values (const std::string &opt_string=std::string())
OCTINTERP_API radio_values (const std::string &opt_string=std::string())
 radio_values (const radio_values &a)
 radio_values (const radio_values &a)
bool contains (const std::string &val, std::string &match)
bool contains (const std::string &val, std::string &match)
std::string default_value (void) const
std::string default_value (void) const
octave_idx_type nelem (void) const
octave_idx_type nelem (void) const
radio_valuesoperator= (const radio_values &a)
radio_valuesoperator= (const radio_values &a)
bool validate (const std::string &val, std::string &match)
bool validate (const std::string &val, std::string &match)
Cell values_as_cell (void) const
Cell values_as_cell (void) const
std::string values_as_string (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 851 of file graphics.h.

Constructor & Destructor Documentation

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

Definition at line 974 of file graphics.cc.

References default_val, and possible_vals.

radio_values::radio_values ( const radio_values a)
inline

Definition at line 856 of file graphics.h.

OCTINTERP_API radio_values::radio_values ( const std::string &  opt_string = std::string())
radio_values::radio_values ( const radio_values a)
inline

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

Member Function Documentation

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

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

References possible_vals.

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

Definition at line 885 of file graphics.h.

References possible_vals.

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

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

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

References default_val.

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

Definition at line 870 of file graphics.h.

References default_val.

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

octave_idx_type radio_values::nelem ( void  ) const
inline

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

References possible_vals.

octave_idx_type radio_values::nelem ( void  ) const
inline

Definition at line 931 of file graphics.h.

References possible_vals.

Referenced by values_as_cell().

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

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

References default_val, and possible_vals.

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

Definition at line 859 of file graphics.h.

References default_val, and possible_vals.

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

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

References contains(), and error().

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

Definition at line 872 of file graphics.h.

References contains(), and error().

Referenced by radio_property::do_set().

Cell radio_values::values_as_cell ( void  ) const
Cell radio_values::values_as_cell ( void  ) const

Definition at line 1036 of file graphics.cc.

References nelem(), and possible_vals.

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

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

Member Data Documentation

std::string radio_values::default_val
private

Definition at line 935 of file graphics.h.

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

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

Definition at line 936 of file graphics.h.

Referenced by contains(), nelem(), operator=(), radio_values(), values_as_cell(), and values_as_string().


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