Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

more::lang::cx_literal Class Template Reference

The representation of a C literal. More...

#include <more/lang/cx_expr.h>

Inheritance diagram for more::lang::cx_literal:

Inheritance graph
[legend]
Collaboration diagram for more::lang::cx_literal:

Collaboration graph
[legend]
List of all members.

Public Methods


Detailed Description

template<typename T>
class more::lang::cx_literal< T >

The representation of a C literal.

Don't use this directly, use make_literal, which performs float and integer promotion to limit the number of template instances of this class. Otherwise, undefined references may occur.


Constructor & Destructor Documentation

template<typename T>
more::lang::cx_literal< T >::cx_literal T const &    value [inline, explicit]
 


Member Function Documentation

template<typename T>
virtual void more::lang::cx_literal< T >::append_ctors_to cx_block   blk [virtual]
 

Append constructors of this expression to blk.

Reimplemented from more::lang::cx_expr.

template<typename T>
virtual void more::lang::cx_literal< T >::append_dtors_to cx_block   blk [virtual]
 

Append destructors of this expression to blk.

Implementations of this function shall not declare variables in blk.

Reimplemented from more::lang::cx_expr.

template<typename T>
virtual void more::lang::cx_literal< T >::print_as_expr std::ostream &    os const [virtual]
 

Print the C source code of this expression.

The default implementation thows a logic error. This function may be overloaded to extend the backend, otherwise it may be easier to transform the source code.

Reimplemented from more::lang::cx_expr.


The documentation for this class was generated from the following file:
Generated on Sat Sep 7 19:12:52 2002 for more with Doxygen 1.2.13.1. Doxygen 1.2.13.1 is written and copyright 1997-2002 by Dimitri van Heesch.