GNU Octave  9.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:
cdef_meta_object cdef_class cdef_method cdef_package cdef_property

Public Member Functions

 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)
 

Protected Member Functions

cdef_object_repget_rep ()
 
void make_unique (int ignore_copies)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ cdef_object() [1/3]

cdef_object::cdef_object ( )
inline

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

Referenced by clone(), copy(), empty_clone(), and make_array().

◆ cdef_object() [2/3]

cdef_object::cdef_object ( const cdef_object obj)
inline

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

◆ 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 ( )
inlinevirtual

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

Member Function Documentation

◆ array_value()

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

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

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.

◆ class_name()

std::string cdef_object::class_name ( ) const
inline

◆ clone()

cdef_object cdef_object::clone ( ) const
inline

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

References cdef_object().

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

◆ copy()

cdef_object cdef_object::copy ( ) const
inline

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

References cdef_object().

◆ dims()

dim_vector cdef_object::dims ( ) const
inline

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

◆ empty_clone()

cdef_object cdef_object::empty_clone ( ) const
inline

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

References cdef_object().

◆ get()

◆ get_class()

cdef_class cdef_object::get_class ( ) const

Definition at line 183 of file cdef-object.cc.

References cdef_object_rep::get_class().

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

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

◆ get_rep() [1/2]

cdef_object_rep* cdef_object::get_rep ( )
inlineprotected

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

◆ get_rep() [2/2]

◆ is()

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

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

Referenced by cdef_object_array::subsasgn().

◆ is_array()

bool cdef_object::is_array ( ) const
inline

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

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

◆ is_constructed()

bool cdef_object::is_constructed ( ) const
inline

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

◆ is_constructed_for()

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

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

◆ is_handle_object()

bool cdef_object::is_handle_object ( ) const
inline

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

◆ is_meta_object()

bool cdef_object::is_meta_object ( ) const
inline

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

◆ is_partially_constructed_for()

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

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

◆ is_value_object()

bool cdef_object::is_value_object ( ) const
inline

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

◆ make_array()

cdef_object cdef_object::make_array ( ) const
inline

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

References cdef_object().

◆ make_unique()

void cdef_object::make_unique ( int  ignore_copies)
inlineprotected

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

References clone().

Referenced by subsasgn().

◆ map_keys()

string_vector cdef_object::map_keys ( ) const
inline

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

◆ map_value()

◆ mark_as_constructed() [1/2]

void cdef_object::mark_as_constructed ( )
inline

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

◆ mark_as_constructed() [2/2]

void cdef_object::mark_as_constructed ( const cdef_class cls)
inline

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

◆ mark_for_construction()

void cdef_object::mark_for_construction ( const cdef_class cls)
inline

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

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

◆ 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

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

References make_unique().

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

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

Referenced by cdef_object_scalar::subsref().


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