ircproxy  The Ultimate Cyborg

ConstExpression< T > Class Template Reference

#include <Expression.h>

Inheritance diagram for ConstExpression< T >:

ExpressionInterface

List of all members.


Detailed Description

template<typename T>
class ConstExpression< T >

An expression consisting of a constant.

Definition at line 149 of file Expression.h.


Public Member Functions

virtual bool evaluate (void)
 Evaluate the expression.
virtual void sub_event_server (ExpressionEventServer *event_server)
 Remove ExpressionEventServer event_server from this expression.
virtual void add_event_server (boost::shared_ptr< ExpressionEventServer > const &)
 Mark that ExpressionEventServer event_server is watching this expression.
virtual void print_on (std::ostream &os) const
 Print the expression on ostream os.

Member Function Documentation

template<typename T>
virtual bool ConstExpression< T >::evaluate ( void   )  [inline, virtual]

Evaluate the expression.

Implements ExpressionInterface.

Definition at line 162 of file Expression.h.

00162 { DoutFatal(dc::core, "Calling ConstExpression::evaluate"); return false; }

template<typename T>
virtual void ConstExpression< T >::sub_event_server ( ExpressionEventServer  )  [inline, virtual]

Remove ExpressionEventServer event_server from this expression.

Implements ExpressionInterface.

Definition at line 163 of file Expression.h.

00163 { sub_event_server_impl(event_server); }

template<typename T>
virtual void ConstExpression< T >::add_event_server ( boost::shared_ptr< ExpressionEventServer > const &  event_server  )  [inline, virtual]

Mark that ExpressionEventServer event_server is watching this expression.

Implements ExpressionInterface.

Definition at line 164 of file Expression.h.

00164 { }

template<typename T>
void ConstExpression< T >::print_on ( std::ostream &  os  )  const [inline, virtual]

Print the expression on ostream os.

Implements ExpressionInterface.

Definition at line 172 of file Expression.h.

00173 {
00174   os << "ConstExpression<" << libcwd::type_info_of<T>().demangled_name() << ">(" << M_const << ")";
00175 }


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

Copyright © 2005-2007 Carlo Wood.  All rights reserved.