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

#include "ov-classdef.h"

Inheritance diagram for cdef_package:
Collaboration diagram for cdef_package:

Classes

class  cdef_package_rep
 

Public Member Functions

 cdef_package (void)
 
 cdef_package (const std::string &nm)
 
 cdef_package (const cdef_package &pack)
 
 cdef_package (const cdef_object &obj)
 
Array< cdef_objectarray_value (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 find (const std::string &nm)
 
octave_value get (const std::string &pname) const
 
cdef_class get_class (void) const
 
Cell get_classes (void) const
 
Cell get_functions (void) const
 
std::string get_name (void) const
 
Cell get_packages (void) const
 
octave_value get_property (octave_idx_type idx, const std::string &pname) const
 
void install_class (const cdef_class &cls, const std::string &nm)
 
void install_function (const octave_value &fcn, const std::string &nm)
 
void install_package (const cdef_package &pack, const std::string &nm)
 
bool is (const cdef_object &obj) const
 
bool is_array (void) const
 
bool is_class (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
 
octave_map map_value (void) const
 
void mark_as_constructed (void)
 
void mark_as_constructed (const cdef_class &cls)
 
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_packageoperator= (const cdef_package &pack)
 
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, size_t &skip, const cdef_class &context, bool auto_add=false)
 

Protected Member Functions

void make_unique (int ignore_copies)
 

Private Member Functions

cdef_package_repget_rep (void)
 
const cdef_package_repget_rep (void) const
 

Friends

class cdef_class
 
void install_classdef (octave::interpreter &interp)
 

Detailed Description

Definition at line 1303 of file ov-classdef.h.

Constructor & Destructor Documentation

◆ cdef_package() [1/4]

cdef_package::cdef_package ( void  )
inline

Definition at line 1398 of file ov-classdef.h.

◆ cdef_package() [2/4]

cdef_package::cdef_package ( const std::string nm)
inline

Definition at line 1400 of file ov-classdef.h.

References cdef_class::get_rep(), nm, and cdef_class::cdef_class_rep::set_name().

◆ cdef_package() [3/4]

cdef_package::cdef_package ( const cdef_package pack)
inline

Definition at line 1404 of file ov-classdef.h.

◆ cdef_package() [4/4]

cdef_package::cdef_package ( const cdef_object obj)
inline

Member Function Documentation

◆ array_value()

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

Definition at line 264 of file ov-classdef.h.

References cdef_object_rep::array_value(), and cdef_object::rep.

◆ class_name()

std::string cdef_object::class_name ( void  ) const
inlineinherited

◆ 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 248 of file ov-classdef.h.

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

◆ empty_clone()

cdef_object cdef_object::empty_clone ( void  ) const
inlineinherited

◆ find()

octave_value cdef_package::find ( const std::string nm)
inline

Definition at line 1443 of file ov-classdef.h.

References cdef_class::get_rep(), and nm.

◆ get()

◆ get_class()

cdef_class cdef_object::get_class ( void  ) const
inlineinherited

◆ get_classes()

Cell cdef_package::get_classes ( void  ) const
inline

Definition at line 1432 of file ov-classdef.h.

References cdef_class::get_rep().

◆ get_functions()

Cell cdef_package::get_functions ( void  ) const
inline

Definition at line 1435 of file ov-classdef.h.

References cdef_class::get_rep().

◆ get_name()

std::string cdef_package::get_name ( void  ) const
inline

◆ get_packages()

Cell cdef_package::get_packages ( void  ) const
inline

Definition at line 1438 of file ov-classdef.h.

References cdef_class::get_rep().

◆ get_property()

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

Definition at line 277 of file ov-classdef.h.

References cdef_object_rep::get_property(), pname, and cdef_object::rep.

◆ get_rep() [1/2]

cdef_package_rep* cdef_package::get_rep ( void  )
inlineprivate

Definition at line 1446 of file ov-classdef.h.

References cdef_object::get_rep().

◆ get_rep() [2/2]

const cdef_package_rep* cdef_package::get_rep ( void  ) const
inlineprivate

Definition at line 1449 of file ov-classdef.h.

References cdef_object::get_rep().

◆ install_class()

void cdef_package::install_class ( const cdef_class cls,
const std::string nm 
)
inline

Definition at line 1423 of file ov-classdef.h.

References cdef_class::get_rep(), and nm.

◆ install_function()

void cdef_package::install_function ( const octave_value fcn,
const std::string nm 
)
inline

Definition at line 1426 of file ov-classdef.h.

References fcn, cdef_class::get_rep(), and nm.

◆ install_package()

void cdef_package::install_package ( const cdef_package pack,
const std::string nm 
)
inline

Definition at line 1429 of file ov-classdef.h.

References cdef_class::get_rep(), and nm.

◆ is()

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

Definition at line 318 of file ov-classdef.h.

References cdef_object::rep.

Referenced by is_method_executing().

◆ is_array()

bool cdef_object::is_array ( void  ) const
inlineinherited

Definition at line 256 of file ov-classdef.h.

References cdef_object_rep::is_array(), and cdef_object::rep.

◆ is_class()

bool cdef_meta_object::is_class ( void  ) const
inlineinherited

Definition at line 637 of file ov-classdef.h.

References cdef_object::get_rep().

◆ is_constructed()

bool cdef_object::is_constructed ( void  ) const
inlineinherited

Definition at line 305 of file ov-classdef.h.

References cdef_object_rep::is_constructed(), and cdef_object::rep.

◆ is_constructed_for()

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

Definition at line 307 of file ov-classdef.h.

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

◆ is_handle_object()

bool cdef_object::is_handle_object ( void  ) const
inlineinherited

Definition at line 260 of file ov-classdef.h.

References cdef_object_rep::is_handle_object(), and cdef_object::rep.

◆ is_meta_object()

bool cdef_object::is_meta_object ( void  ) const
inlineinherited

Definition at line 262 of file ov-classdef.h.

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

◆ is_method()

bool cdef_meta_object::is_method ( void  ) const
inlineinherited

Definition at line 641 of file ov-classdef.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 643 of file ov-classdef.h.

References cdef_object::get_rep().

Referenced by 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 639 of file ov-classdef.h.

References cdef_object::get_rep().

Referenced by cdef_property::cdef_property().

◆ is_value_object()

bool cdef_object::is_value_object ( void  ) const
inlineinherited

Definition at line 258 of file ov-classdef.h.

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

◆ make_array()

cdef_object cdef_object::make_array ( void  ) const
inlineinherited

◆ make_unique()

void cdef_object::make_unique ( int  ignore_copies)
inlineprotectedinherited

Definition at line 323 of file ov-classdef.h.

References cdef_object::clone(), cdef_object_rep::refcount, and cdef_object::rep.

Referenced by cdef_object::subsasgn().

◆ map_keys()

string_vector cdef_object::map_keys ( void  ) const
inlineinherited

Definition at line 294 of file ov-classdef.h.

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

◆ map_value()

octave_map cdef_object::map_value ( void  ) const
inherited

Definition at line 1284 of file ov-classdef.cc.

◆ mark_as_constructed() [1/2]

void cdef_object::mark_as_constructed ( void  )
inlineinherited

Definition at line 313 of file ov-classdef.h.

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

◆ mark_as_constructed() [2/2]

void cdef_object::mark_as_constructed ( const cdef_class cls)
inlineinherited

Definition at line 315 of file ov-classdef.h.

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

◆ mark_for_construction()

void cdef_object::mark_for_construction ( const cdef_class cls)
inlineinherited

Definition at line 302 of file ov-classdef.h.

References cdef_object_rep::mark_for_construction(), and cdef_object::rep.

◆ meta_accepts_postfix_index()

bool cdef_meta_object::meta_accepts_postfix_index ( char  type) const
inlineinherited

Definition at line 652 of file ov-classdef.h.

References cdef_object::get_rep(), and type.

◆ meta_release()

void cdef_meta_object::meta_release ( void  )
inlineinherited

Definition at line 650 of file ov-classdef.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 646 of file ov-classdef.h.

References cdef_object::get_rep(), nargout(), and type.

◆ ok()

◆ operator=()

cdef_package& cdef_package::operator= ( const cdef_package pack)
inline

Definition at line 1416 of file ov-classdef.h.

References cdef_object::operator=().

◆ put()

◆ set_class()

void cdef_object::set_class ( const cdef_class cls)
inlineinherited

◆ set_property()

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

Definition at line 272 of file ov-classdef.h.

References pname, cdef_object::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 
)
inlineinherited

◆ subsref()

octave_value_list cdef_object::subsref ( const std::string type,
const std::list< octave_value_list > &  idx,
int  nargout,
size_t skip,
const cdef_class context,
bool  auto_add = false 
)
inlineinherited

Friends And Related Function Documentation

◆ cdef_class

friend class cdef_class
friend

Definition at line 1306 of file ov-classdef.h.

◆ install_classdef

void install_classdef ( octave::interpreter interp)
friend

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