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

#include "cdef-object.h"

Inheritance diagram for cdef_object:
Collaboration diagram for cdef_object:

Public Member Functions

 cdef_object (cdef_object_rep *r)
 
 cdef_object (const cdef_object &obj)
 
 cdef_object (void)
 
virtual ~cdef_object (void)
 
Array< cdef_objectarray_value (void) const
 
void break_closure_cycles (const std::shared_ptr< stack_frame > &frame)
 
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
 
octave_value get_property (octave_idx_type idx, const std::string &pname) const
 
const cdef_object_repget_rep (void) const
 
bool is (const cdef_object &obj) const
 
bool is_array (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_partially_constructed_for (const cdef_class &cls) 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 ok (void) 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)
 

Protected Member Functions

cdef_object_repget_rep (void)
 
void make_unique (int ignore_copies)
 

Private Attributes

cdef_object_repm_rep
 

Detailed Description

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

Constructor & Destructor Documentation

◆ cdef_object() [1/3]

cdef_object::cdef_object ( void  )
inline

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

Referenced by cdef_class::cdef_class_rep::construct_object().

◆ cdef_object() [2/3]

cdef_object::cdef_object ( const cdef_object obj)
inline

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

References cdef_object_rep::m_count, and m_rep.

◆ cdef_object() [3/3]

cdef_object::cdef_object ( cdef_object_rep r)
inline

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

◆ ~cdef_object()

virtual cdef_object::~cdef_object ( void  )
inlinevirtual

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

References m_rep, and cdef_object_rep::release().

Member Function Documentation

◆ array_value()

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

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

References cdef_object_rep::array_value(), and m_rep.

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

◆ break_closure_cycles()

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

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

References cdef_object_rep::break_closure_cycles(), and m_rep.

◆ class_name()

◆ clone()

cdef_object cdef_object::clone ( void  ) const
inline

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

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

Referenced by value_cdef_object::copy(), and make_unique().

◆ copy()

cdef_object cdef_object::copy ( void  ) const
inline

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

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

Referenced by cdef_object_array::fill_empty_values().

◆ dims()

dim_vector cdef_object::dims ( void  ) const
inline

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

References cdef_object_rep::dims(), and m_rep.

◆ empty_clone()

cdef_object cdef_object::empty_clone ( void  ) const
inline

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

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

◆ get()

◆ get_class()

cdef_class cdef_object::get_class ( void  ) const

◆ get_property()

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

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

References cdef_object_rep::get_property(), and m_rep.

◆ get_rep() [1/2]

cdef_object_rep* cdef_object::get_rep ( void  )
inlineprotected

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

References m_rep.

◆ get_rep() [2/2]

◆ is()

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

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

References m_rep.

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

◆ is_array()

bool cdef_object::is_array ( void  ) const
inline

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

References cdef_object_rep::is_array(), and m_rep.

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

◆ is_constructed()

bool cdef_object::is_constructed ( void  ) const
inline

◆ is_constructed_for()

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

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

References cdef_object_rep::is_constructed_for(), and m_rep.

◆ is_handle_object()

bool cdef_object::is_handle_object ( void  ) const
inline

◆ is_meta_object()

bool cdef_object::is_meta_object ( void  ) const
inline

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

References cdef_object_rep::is_meta_object(), and m_rep.

◆ is_partially_constructed_for()

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

◆ is_value_object()

bool cdef_object::is_value_object ( void  ) const
inline

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

References cdef_object_rep::is_value_object(), and m_rep.

◆ make_array()

cdef_object cdef_object::make_array ( void  ) const
inline

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

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

◆ make_unique()

void cdef_object::make_unique ( int  ignore_copies)
inlineprotected

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

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

Referenced by subsasgn().

◆ map_keys()

string_vector cdef_object::map_keys ( void  ) const
inline

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

References 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)
inline

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

References m_rep, and cdef_object_rep::mark_as_constructed().

◆ mark_as_constructed() [2/2]

void cdef_object::mark_as_constructed ( void  )
inline

◆ mark_for_construction()

void cdef_object::mark_for_construction ( const cdef_class cls)
inline

◆ ok()

◆ operator=()

cdef_object& cdef_object::operator= ( const cdef_object obj)
inline

◆ put()

◆ set_class()

◆ set_property()

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

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

References m_rep, and cdef_object_rep::set_property().

◆ 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 
)
inline

◆ 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 
)
inline

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

References m_rep, and cdef_object_rep::subsref().

Referenced by cdef_object_scalar::subsref().

Member Data Documentation

◆ m_rep


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