Aegis  4.25.D505
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
tree_triadic Class Reference

#include <logical.h>

Inheritance diagram for tree_triadic:
tree

Public Member Functions

virtual ~tree_triadic ()

Static Public Member Functions

static pointer create (const pointer &a1, const pointer &a2, const pointer &a3)

Protected Member Functions

const char * name () const
rpt_value::pointer evaluate (string_ty *, string_ty *, string_ty *, struct stat *) const
tree::pointer optimize () const
void print () const
bool useful () const
bool constant () const

Private Member Functions

 tree_triadic (const pointer &a1, const pointer &a2, const pointer &a3)
 tree_triadic ()
 tree_triadic (const tree_triadic &)
tree_triadicoperator= (const tree_triadic &)

Private Attributes

tree::pointer a1
tree::pointer a2
tree::pointer a3

Detailed Description

The tree_triadic class is used to represent an expression tree which performs a (a ? b : c) operation.

Definition at line 325 of file logical.h.


Constructor & Destructor Documentation

virtual tree_triadic::~tree_triadic ( ) [virtual]

The destructor.

tree_triadic::tree_triadic ( const pointer a1,
const pointer a2,
const pointer a3 
) [private]

The constructor. It is private on purpose, use the "create" clas smethod instead.

Parameters:
a1The first argument to this function.
a2The second argument to this function.
a3The third argument to this function.

The default constructor. Do not use.

tree_triadic::tree_triadic ( const tree_triadic ) [private]

The copy constructor. Do not use.


Member Function Documentation

bool tree_triadic::constant ( ) const [protected, virtual]

Implements tree.

static pointer tree_triadic::create ( const pointer a1,
const pointer a2,
const pointer a3 
) [static]

The create class method is used to create new dynamically allocated instance of this class.

Parameters:
a1The first argument to this function.
a2The second argument to this function.
a3The third argument to this function.
rpt_value::pointer tree_triadic::evaluate ( string_ty ,
string_ty ,
string_ty ,
struct stat *   
) const [protected, virtual]

Implements tree.

const char* tree_triadic::name ( ) const [protected, virtual]

Implements tree.

tree_triadic& tree_triadic::operator= ( const tree_triadic ) [private]

The assignment operator. Do not use.

tree::pointer tree_triadic::optimize ( ) const [protected, virtual]

Implements tree.

void tree_triadic::print ( ) const [protected, virtual]

Implements tree.

bool tree_triadic::useful ( ) const [protected, virtual]

Implements tree.


Field Documentation

Definition at line 384 of file logical.h.

Definition at line 385 of file logical.h.

Definition at line 386 of file logical.h.


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