GNU Octave  8.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:
Collaboration diagram for cdef_property:

Classes

class  cdef_property_rep
 

Public Member Functions

 cdef_property (const cdef_object &obj)
 
 cdef_property (const cdef_property &prop)
 
 cdef_property (const std::string &nm)
 
 cdef_property (void)
 
 ~cdef_property (void)=default
 
Array< cdef_objectarray_value (void) const
 
void break_closure_cycles (const std::shared_ptr< stack_frame > &frame)
 
bool check_get_access (void) const
 
bool check_set_access (void) const
 
std::string class_name (void) const
 
cdef_object clone (void) const
 
cdef_object copy (void) const
 
dim_vector dims (void) const
 
cdef_object empty_clone (void) const
 
octave_value get (const std::string &pname) const
 
OCTINTERP_API cdef_class get_class (void) const
 
std::string get_name (void) const
 
octave_value get_property (octave_idx_type idx, const std::string &pname) 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 (const cdef_object &obj) const
 
bool is_array (void) const
 
bool is_class (void) const
 
bool is_constant (void) const
 
bool is_constructed (void) const
 
bool is_constructed_for (const cdef_class &cls) const
 
bool is_handle_object (void) const
 
bool is_meta_object (void) const
 
bool is_method (void) const
 
bool is_package (void) const
 
bool is_partially_constructed_for (const cdef_class &cls) const
 
bool is_property (void) const
 
bool is_value_object (void) const
 
cdef_object make_array (void) const
 
string_vector map_keys (void) const
 
OCTINTERP_API octave_map map_value (void) const
 
void mark_as_constructed (const cdef_class &cls)
 
void mark_as_constructed (void)
 
void mark_for_construction (const cdef_class &cls)
 
bool meta_accepts_postfix_index (char type) const
 
void meta_release (void)
 
octave_value_list meta_subsref (const std::string &type, const std::list< octave_value_list > &idx, int nargout)
 
bool ok (void) const
 
cdef_propertyoperator= (const cdef_property &prop)
 
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)
 
void set_value (cdef_object &obj, const octave_value &val, bool do_check_access=true, const std::string &who="")
 
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)
 

Protected Member Functions

void make_unique (int ignore_copies)
 

Private Member Functions

cdef_property_repget_rep (void)
 
const cdef_property_repget_rep (void) const
 

Private Attributes

cdef_object_repm_rep
 

Friends

class cdef_class
 

Detailed Description

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

Constructor & Destructor Documentation

◆ cdef_property() [1/4]

cdef_property::cdef_property ( void  )
inline

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

◆ cdef_property() [2/4]

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

◆ 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 ( void  )
default

Member Function Documentation

◆ array_value()

Array<cdef_object> cdef_object::array_value ( void  ) const
inlineinherited

◆ break_closure_cycles()

void cdef_object::break_closure_cycles ( const std::shared_ptr< stack_frame > &  frame)
inlineinherited

Definition at line 285 of file cdef-object.h.

References cdef_object_rep::break_closure_cycles(), and cdef_object::m_rep.

◆ check_get_access()

bool cdef_property::check_get_access ( void  ) const
inline

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

References cdef_class::get_rep().

Referenced by cdef_property::cdef_property_rep::get_value().

◆ check_set_access()

bool cdef_property::check_set_access ( void  ) const
inline

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

References cdef_class::get_rep().

Referenced by cdef_property::cdef_property_rep::set_value().

◆ class_name()

◆ clone()

cdef_object cdef_object::clone ( void  ) const
inlineinherited

◆ copy()

cdef_object cdef_object::copy ( void  ) const
inlineinherited

◆ dims()

dim_vector cdef_object::dims ( void  ) const
inlineinherited

Definition at line 243 of file cdef-object.h.

References cdef_object_rep::dims(), and cdef_object::m_rep.

◆ empty_clone()

cdef_object cdef_object::empty_clone ( void  ) const
inlineinherited

Definition at line 238 of file cdef-object.h.

References cdef_object, cdef_object_rep::empty_clone(), and cdef_object::m_rep.

◆ get()

◆ get_class()

cdef_class cdef_object::get_class ( void  ) const
inherited

◆ get_name()

◆ get_property()

octave_value cdef_object::get_property ( octave_idx_type  idx,
const std::string &  pname 
) const
inlineinherited

Definition at line 280 of file cdef-object.h.

References cdef_object_rep::get_property(), and cdef_object::m_rep.

◆ get_rep() [1/2]

cdef_property_rep* cdef_property::get_rep ( void  )
inlineprivate

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

References cdef_object::get_rep().

◆ get_rep() [2/2]

const cdef_property_rep* cdef_property::get_rep ( void  ) const
inlineprivate

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

References cdef_object::get_rep().

◆ 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.

References cdef_class::get_rep().

◆ 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

◆ is()

bool cdef_object::is ( const cdef_object obj) const
inlineinherited

Definition at line 336 of file cdef-object.h.

References cdef_object::m_rep.

Referenced by is_method_executing(), and cdef_object_array::subsasgn().

◆ is_array()

bool cdef_object::is_array ( void  ) const
inlineinherited

◆ is_class()

bool cdef_meta_object::is_class ( void  ) const
inlineinherited

Definition at line 680 of file cdef-object.h.

References cdef_object::get_rep().

◆ is_constant()

bool cdef_property::is_constant ( void  ) const
inline

◆ is_constructed()

bool cdef_object::is_constructed ( void  ) const
inlineinherited

◆ is_constructed_for()

bool cdef_object::is_constructed_for ( const cdef_class cls) const
inlineinherited

Definition at line 321 of file cdef-object.h.

References cdef_object_rep::is_constructed_for(), and cdef_object::m_rep.

◆ is_handle_object()

bool cdef_object::is_handle_object ( void  ) const
inlineinherited

◆ is_meta_object()

bool cdef_object::is_meta_object ( void  ) const
inlineinherited

Definition at line 258 of file cdef-object.h.

References cdef_object_rep::is_meta_object(), and cdef_object::m_rep.

◆ is_method()

bool cdef_meta_object::is_method ( void  ) const
inlineinherited

Definition at line 684 of file cdef-object.h.

References cdef_object::get_rep().

Referenced by cdef_method::cdef_method().

◆ is_package()

bool cdef_meta_object::is_package ( void  ) const
inlineinherited

Definition at line 686 of file cdef-object.h.

References cdef_object::get_rep().

Referenced by cdef_package::cdef_package().

◆ is_partially_constructed_for()

bool cdef_object::is_partially_constructed_for ( const cdef_class cls) const
inlineinherited

◆ is_property()

bool cdef_meta_object::is_property ( void  ) const
inlineinherited

Definition at line 682 of file cdef-object.h.

References cdef_object::get_rep().

Referenced by cdef_property().

◆ is_value_object()

bool cdef_object::is_value_object ( void  ) const
inlineinherited

Definition at line 254 of file cdef-object.h.

References cdef_object_rep::is_value_object(), and cdef_object::m_rep.

◆ make_array()

cdef_object cdef_object::make_array ( void  ) const
inlineinherited

Definition at line 245 of file cdef-object.h.

References cdef_object, cdef_object::m_rep, and cdef_object_rep::make_array().

◆ make_unique()

void cdef_object::make_unique ( int  ignore_copies)
inlineprotectedinherited

Definition at line 342 of file cdef-object.h.

References cdef_object::clone(), cdef_object_rep::m_count, and cdef_object::m_rep.

Referenced by cdef_object::subsasgn().

◆ map_keys()

string_vector cdef_object::map_keys ( void  ) const
inlineinherited

Definition at line 306 of file cdef-object.h.

References cdef_object::m_rep, and cdef_object_rep::map_keys().

◆ map_value()

◆ mark_as_constructed() [1/2]

void cdef_object::mark_as_constructed ( const cdef_class cls)
inlineinherited

Definition at line 333 of file cdef-object.h.

References cdef_object::m_rep, and cdef_object_rep::mark_as_constructed().

◆ mark_as_constructed() [2/2]

void cdef_object::mark_as_constructed ( void  )
inlineinherited

◆ mark_for_construction()

void cdef_object::mark_for_construction ( const cdef_class cls)
inlineinherited

◆ meta_accepts_postfix_index()

bool cdef_meta_object::meta_accepts_postfix_index ( char  type) const
inlineinherited

Definition at line 697 of file cdef-object.h.

References cdef_object::get_rep().

◆ meta_release()

void cdef_meta_object::meta_release ( void  )
inlineinherited

Definition at line 695 of file cdef-object.h.

References cdef_object::get_rep().

◆ meta_subsref()

octave_value_list cdef_meta_object::meta_subsref ( const std::string &  type,
const std::list< octave_value_list > &  idx,
int  nargout 
)
inlineinherited

Definition at line 689 of file cdef-object.h.

References cdef_object::get_rep().

◆ ok()

◆ operator=()

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

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

References cdef_object::operator=().

◆ put()

◆ set_class()

◆ set_property()

void cdef_object::set_property ( octave_idx_type  idx,
const std::string &  pname,
const octave_value pval 
)
inlineinherited

Definition at line 273 of file cdef-object.h.

References cdef_object::m_rep, and cdef_object_rep::set_property().

◆ 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.

References cdef_class::get_rep().

Referenced by cdef_object_scalar::subsasgn().

◆ subsasgn()

octave_value cdef_object::subsasgn ( const std::string &  type,
const std::list< octave_value_list > &  idx,
const octave_value rhs,
int  ignore_copies = 0 
)
inlineinherited

◆ subsref()

octave_value_list cdef_object::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 
)
inlineinherited

Definition at line 291 of file cdef-object.h.

References cdef_object::m_rep, and cdef_object_rep::subsref().

Referenced by cdef_object_scalar::subsref().

Friends And Related Function Documentation

◆ cdef_class

friend class cdef_class
friend

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

Member Data Documentation

◆ m_rep


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