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

#include "oct-lvalue.h"

Collaboration diagram for octave::octave_lvalue:

Public Member Functions

 octave_lvalue (void)
 
 octave_lvalue (const symbol_record &sr, symbol_record::context_id context)
 
 octave_lvalue (const octave_lvalue &)=default
 
 ~octave_lvalue (void)=default
 
void assign (octave_value::assign_op, const octave_value &)
 
void clear_index (void)
 
void define (const octave_value &v)
 
void do_unary_op (octave_value::unary_op op)
 
bool index_is_empty (void) const
 
std::string index_type (void) const
 
bool is_black_hole (void) const
 
bool is_defined (void) const
 
bool is_undefined (void) const
 
bool isstruct (void) const
 
void mark_black_hole (void)
 
void numel (octave_idx_type n)
 
octave_idx_type numel (void) const
 
octave_lvalueoperator= (const octave_lvalue &)=default
 
void set_index (const std::string &t, const std::list< octave_value_list > &i)
 
octave_value value (void) const
 

Private Attributes

bool m_black_hole
 
symbol_record::context_id m_context
 
std::list< octave_value_listm_idx
 
octave_idx_type m_nel
 
symbol_record m_sym
 
std::string m_type
 

Detailed Description

Definition at line 35 of file oct-lvalue.h.

Constructor & Destructor Documentation

◆ octave_lvalue() [1/3]

octave::octave_lvalue::octave_lvalue ( void  )
inline

Definition at line 39 of file oct-lvalue.h.

◆ octave_lvalue() [2/3]

octave::octave_lvalue::octave_lvalue ( const symbol_record sr,
symbol_record::context_id  context 
)
inline

Definition at line 44 of file oct-lvalue.h.

◆ octave_lvalue() [3/3]

octave::octave_lvalue::octave_lvalue ( const octave_lvalue )
default

◆ ~octave_lvalue()

octave::octave_lvalue::~octave_lvalue ( void  )
default

Member Function Documentation

◆ assign()

◆ clear_index()

void octave::octave_lvalue::clear_index ( void  )
inline

Definition at line 81 of file oct-lvalue.h.

References m_idx, and m_type.

Referenced by octave::tree_evaluator::visit_simple_assignment().

◆ define()

void octave::octave_lvalue::define ( const octave_value v)
inline

◆ do_unary_op()

◆ index_is_empty()

bool octave::octave_lvalue::index_is_empty ( void  ) const

Definition at line 56 of file oct-lvalue.cc.

References m_idx, retval, and tmp.

◆ index_type()

std::string octave::octave_lvalue::index_type ( void  ) const
inline

Definition at line 83 of file oct-lvalue.h.

References m_type.

◆ is_black_hole()

bool octave::octave_lvalue::is_black_hole ( void  ) const
inline

Definition at line 55 of file oct-lvalue.h.

References m_black_hole.

Referenced by assign(), do_unary_op(), is_defined(), is_undefined(), and value().

◆ is_defined()

bool octave::octave_lvalue::is_defined ( void  ) const
inline

Definition at line 59 of file oct-lvalue.h.

References is_black_hole(), octave::symbol_record::is_defined(), m_context, and m_sym.

◆ is_undefined()

bool octave::octave_lvalue::is_undefined ( void  ) const
inline

◆ isstruct()

bool octave::octave_lvalue::isstruct ( void  ) const
inline

Definition at line 69 of file oct-lvalue.h.

References octave_value::isstruct(), and value().

◆ mark_black_hole()

void octave::octave_lvalue::mark_black_hole ( void  )
inline

Definition at line 57 of file oct-lvalue.h.

References m_black_hole.

◆ numel() [1/2]

void octave::octave_lvalue::numel ( octave_idx_type  n)
inline

Definition at line 75 of file oct-lvalue.h.

References m_nel.

Referenced by octave::tree_evaluator::visit_simple_assignment().

◆ numel() [2/2]

octave_idx_type octave::octave_lvalue::numel ( void  ) const
inline

Definition at line 77 of file oct-lvalue.h.

References m_nel.

◆ operator=()

octave_lvalue& octave::octave_lvalue::operator= ( const octave_lvalue )
default

◆ set_index()

void octave::octave_lvalue::set_index ( const std::string t,
const std::list< octave_value_list > &  i 
)

Definition at line 46 of file oct-lvalue.cc.

References error(), i, m_idx, m_type, and t.

◆ value()

Member Data Documentation

◆ m_black_hole

bool octave::octave_lvalue::m_black_hole
private

Definition at line 97 of file oct-lvalue.h.

Referenced by is_black_hole(), and mark_black_hole().

◆ m_context

symbol_record::context_id octave::octave_lvalue::m_context
private

Definition at line 95 of file oct-lvalue.h.

Referenced by assign(), define(), do_unary_op(), is_defined(), is_undefined(), and value().

◆ m_idx

std::list<octave_value_list> octave::octave_lvalue::m_idx
private

Definition at line 101 of file oct-lvalue.h.

Referenced by assign(), clear_index(), do_unary_op(), index_is_empty(), set_index(), and value().

◆ m_nel

octave_idx_type octave::octave_lvalue::m_nel
private

Definition at line 103 of file oct-lvalue.h.

Referenced by numel().

◆ m_sym

symbol_record octave::octave_lvalue::m_sym
private

Definition at line 93 of file oct-lvalue.h.

Referenced by assign(), define(), do_unary_op(), is_defined(), is_undefined(), and value().

◆ m_type

std::string octave::octave_lvalue::m_type
private

Definition at line 99 of file oct-lvalue.h.

Referenced by assign(), clear_index(), do_unary_op(), index_type(), set_index(), and value().


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