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

#include "cdef-property.h"

Inheritance diagram for cdef_property:
cdef_meta_object cdef_object

Public Member Functions

 cdef_property ()
 
 cdef_property (const cdef_object &obj)
 
 cdef_property (const cdef_property &prop)
 
 cdef_property (const std::string &nm)
 
 ~cdef_property ()=default
 
bool check_get_access () const
 
bool check_set_access () const
 
std::string get_name () const
 
octave_value get_value (bool do_check_access=true, const std::string &who="") const
 
octave_value get_value (const cdef_object &obj, bool do_check_access=true, const std::string &who="") const
 
bool is_constant () const
 
cdef_propertyoperator= (const cdef_property &prop)
 
void set_value (cdef_object &obj, const octave_value &val, bool do_check_access=true, const std::string &who="")
 
- Public Member Functions inherited from cdef_meta_object
 cdef_meta_object ()
 
 cdef_meta_object (cdef_meta_object_rep *r)
 
 cdef_meta_object (const cdef_meta_object &obj)
 
 cdef_meta_object (const cdef_object &obj)
 
 ~cdef_meta_object ()=default
 
std::string doc_string () const
 
void doc_string (const std::string &txt)
 
bool is_class () const
 
bool is_method () const
 
bool is_package () const
 
bool is_property () const
 
bool meta_accepts_postfix_index (char type) const
 
void meta_release ()
 
octave_value_list meta_subsref (const std::string &type, const std::list< octave_value_list > &idx, int nargout)
 
cdef_meta_objectoperator= (const cdef_object &)=delete
 
- Public Member Functions inherited from cdef_object
 cdef_object ()
 
 cdef_object (cdef_object_rep *r)
 
 cdef_object (const cdef_object &obj)
 
virtual ~cdef_object ()
 
Array< cdef_objectarray_value () const
 
void break_closure_cycles (const std::shared_ptr< stack_frame > &frame)
 
std::string class_name () const
 
cdef_object clone () const
 
cdef_object copy () const
 
dim_vector dims () const
 
cdef_object empty_clone () const
 
octave_value get (const std::string &pname) const
 
cdef_class get_class () const
 
octave_value get_property (octave_idx_type idx, const std::string &pname) const
 
const cdef_object_repget_rep () const
 
bool is (const cdef_object &obj) const
 
bool is_array () const
 
bool is_constructed () const
 
bool is_constructed_for (const cdef_class &cls) const
 
bool is_handle_object () const
 
bool is_meta_object () const
 
bool is_partially_constructed_for (const cdef_class &cls) const
 
bool is_value_object () const
 
cdef_object make_array () const
 
string_vector map_keys () const
 
octave_map map_value () const
 
void mark_as_constructed ()
 
void mark_as_constructed (const cdef_class &cls)
 
void mark_for_construction (const cdef_class &cls)
 
bool ok () const
 
cdef_objectoperator= (const cdef_object &obj)
 
void put (const std::string &pname, const octave_value &val)
 
void set_class (const cdef_class &cls)
 
void set_property (octave_idx_type idx, const std::string &pname, const octave_value &pval)
 
octave_value subsasgn (const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs, int ignore_copies=0)
 
octave_value_list subsref (const std::string &type, const std::list< octave_value_list > &idx, int nargout, std::size_t &skip, const cdef_class &context, bool auto_add=false)
 

Friends

class cdef_class
 

Additional Inherited Members

- Protected Member Functions inherited from cdef_object
cdef_object_repget_rep ()
 
void make_unique (int ignore_copies)
 

Detailed Description

Definition at line 43 of file cdef-property.h.

Constructor & Destructor Documentation

◆ cdef_property() [1/4]

cdef_property::cdef_property ( )
inline

Definition at line 110 of file cdef-property.h.

◆ cdef_property() [2/4]

cdef_property::cdef_property ( const std::string &  nm)
inline

Definition at line 112 of file cdef-property.h.

◆ cdef_property() [3/4]

cdef_property::cdef_property ( const cdef_property prop)
inline

Definition at line 118 of file cdef-property.h.

◆ cdef_property() [4/4]

cdef_property::cdef_property ( const cdef_object obj)
inline

◆ ~cdef_property()

cdef_property::~cdef_property ( )
default

Member Function Documentation

◆ check_get_access()

bool cdef_property::check_get_access ( ) const
inline

Definition at line 157 of file cdef-property.h.

◆ check_set_access()

bool cdef_property::check_set_access ( ) const
inline

Definition at line 162 of file cdef-property.h.

◆ get_name()

std::string cdef_property::get_name ( ) const
inline

Definition at line 167 of file cdef-property.h.

◆ get_value() [1/2]

octave_value cdef_property::get_value ( bool  do_check_access = true,
const std::string &  who = "" 
) const
inline

Definition at line 144 of file cdef-property.h.

◆ get_value() [2/2]

octave_value cdef_property::get_value ( const cdef_object obj,
bool  do_check_access = true,
const std::string &  who = "" 
) const
inline

Definition at line 138 of file cdef-property.h.

Referenced by cdef_object_scalar::subsasgn(), and cdef_object_scalar::subsref().

◆ is_constant()

bool cdef_property::is_constant ( ) const
inline

Definition at line 169 of file cdef-property.h.

Referenced by cdef_object_scalar::subsasgn(), and cdef_object_scalar::subsref().

◆ operator=()

cdef_property& cdef_property::operator= ( const cdef_property prop)
inline

Definition at line 129 of file cdef-property.h.

References cdef_object::operator=().

◆ set_value()

void cdef_property::set_value ( cdef_object obj,
const octave_value val,
bool  do_check_access = true,
const std::string &  who = "" 
)
inline

Definition at line 150 of file cdef-property.h.

Referenced by cdef_object_scalar::subsasgn().

Friends And Related Function Documentation

◆ cdef_class

friend class cdef_class
friend

Definition at line 47 of file cdef-property.h.


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