Navigation

Operators and Keywords

Function List:

C++ API

tree_binary_expression Class Reference

#include <pt-binop.h>

Inherits tree_expression.

Inherited by tree_boolean_expression, and tree_compound_binary_expression.

Collaboration diagram for tree_binary_expression:

List of all members.


Public Member Functions

 tree_binary_expression (int l=-1, int c=-1, octave_value::binary_op t=octave_value::unknown_binary_op)
 tree_binary_expression (tree_expression *a, tree_expression *b, int l=-1, int c=-1, octave_value::binary_op t=octave_value::unknown_binary_op)
 ~tree_binary_expression (void)
bool has_magic_end (void) const
bool is_binary_expression (void) const
bool rvalue_ok (void) const
octave_value rvalue1 (int nargout=1)
octave_value_list rvalue (int nargout)
std::string oper (void) const
octave_value::binary_op op_type (void) const
tree_expressionlhs (void)
tree_expressionrhs (void)
tree_expressiondup (symbol_table::scope_id scope, symbol_table::context_id context) const
void accept (tree_walker &tw)

Protected Attributes

tree_expressionop_lhs
tree_expressionop_rhs

Constructor & Destructor Documentation

tree_binary_expression::tree_binary_expression ( int  l = -1,
int  c = -1,
octave_value::binary_op  t = octave_value::unknown_binary_op 
) [inline]

tree_binary_expression::tree_binary_expression ( tree_expression a,
tree_expression b,
int  l = -1,
int  c = -1,
octave_value::binary_op  t = octave_value::unknown_binary_op 
) [inline]

tree_binary_expression::~tree_binary_expression ( void   )  [inline]


Member Function Documentation

void tree_binary_expression::accept ( tree_walker tw  )  [virtual]

Implements tree.

tree_expression * tree_binary_expression::dup ( symbol_table::scope_id  scope,
symbol_table::context_id  context 
) const [virtual]

Implements tree_expression.

Reimplemented in tree_boolean_expression.

bool tree_binary_expression::has_magic_end ( void   )  const [inline, virtual]

Implements tree_expression.

bool tree_binary_expression::is_binary_expression ( void   )  const [inline, virtual]

Reimplemented from tree_expression.

tree_expression* tree_binary_expression::lhs ( void   )  [inline]

octave_value::binary_op tree_binary_expression::op_type ( void   )  const [inline]

Reimplemented in tree_boolean_expression.

std::string tree_binary_expression::oper ( void   )  const [virtual]

Reimplemented from tree_expression.

Reimplemented in tree_boolean_expression.

tree_expression* tree_binary_expression::rhs ( void   )  [inline]

octave_value_list tree_binary_expression::rvalue ( int  nargout  )  [virtual]

Reimplemented from tree_expression.

Reimplemented in tree_boolean_expression.

octave_value tree_binary_expression::rvalue1 ( int  nargout = 1  )  [virtual]

Reimplemented from tree_expression.

Reimplemented in tree_boolean_expression, and tree_compound_binary_expression.

bool tree_binary_expression::rvalue_ok ( void   )  const [inline, virtual]

Reimplemented from tree_expression.

Reimplemented in tree_boolean_expression.


Member Data Documentation


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