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

#include "cdef-package.h"

Inheritance diagram for cdef_package:
cdef_meta_object cdef_object

Public Member Functions

 cdef_package ()
 
 cdef_package (const cdef_object &obj)
 
 cdef_package (const cdef_package &pack)
 
 cdef_package (const std::string &nm)
 
 ~cdef_package ()=default
 
octave_value find (const std::string &nm)
 
Cell get_classes () const
 
Cell get_functions () const
 
std::string get_name () const
 
Cell get_packages () 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)
 
cdef_packageoperator= (const cdef_package &pack)
 
- 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
 
void install_classdef (octave::interpreter &interp)
 

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 45 of file cdef-package.h.

Constructor & Destructor Documentation

◆ cdef_package() [1/4]

cdef_package::cdef_package ( )
inline

Definition at line 153 of file cdef-package.h.

◆ cdef_package() [2/4]

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

Definition at line 155 of file cdef-package.h.

◆ cdef_package() [3/4]

cdef_package::cdef_package ( const cdef_package pack)
inline

Definition at line 161 of file cdef-package.h.

◆ cdef_package() [4/4]

cdef_package::cdef_package ( const cdef_object obj)
inline

◆ ~cdef_package()

cdef_package::~cdef_package ( )
default

Member Function Documentation

◆ find()

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

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

Referenced by cdef_manager::find_class().

◆ get_classes()

Cell cdef_package::get_classes ( ) const
inline

Definition at line 196 of file cdef-package.h.

◆ get_functions()

Cell cdef_package::get_functions ( ) const
inline

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

◆ get_name()

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

◆ get_packages()

Cell cdef_package::get_packages ( ) const
inline

Definition at line 206 of file cdef-package.h.

◆ install_class()

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

Definition at line 181 of file cdef-package.h.

◆ install_function()

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

Definition at line 186 of file cdef-package.h.

◆ install_package()

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

Definition at line 191 of file cdef-package.h.

◆ operator=()

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

Definition at line 172 of file cdef-package.h.

References cdef_object::operator=().

Friends And Related Function Documentation

◆ cdef_class

friend class cdef_class
friend

Definition at line 49 of file cdef-package.h.

◆ install_classdef

void install_classdef ( octave::interpreter &  interp)
friend

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