Home | Index | universal Index | gsp Index | Examples | Tutorial

SignedInteger Class Reference

#include "universal__Numeric.h"

This is a very simple component whose sole purpose is to wrap a signed integer value. More...


Inherited Class(es)


Public Functions

SignedInteger ( ) 
operator long ( ) const 
~SignedInteger ( ) 
  • bool 
even ( ) const 
  • bool 
odd ( ) const 
operator =( long ) 
operator =( short ) 
operator =( int ) 
operator =( unsigned long ) 
operator =( unsigned short ) 
operator =( unsigned int ) 
operator =float ) 
operator =double ) 
operator +( const Float & 
operator +( const Double & 
  • long 
operator +( const SignedInteger & si 
  • long 
operator +( const UnsignedInteger & ui 
operator -( const Float & 
operator -( const Double & 
  • long 
operator -( const SignedInteger & si 
  • long 
operator -( const UnsignedInteger & ui 
operator *( const Float & 
operator *( const Double & 
  • long 
operator *( const SignedInteger & si 
  • long 
operator *( const UnsignedInteger & ui 
operator /( const Float & 
operator /( const Double & 
  • long 
operator /( const SignedInteger & si 
  • long 
operator /( const UnsignedInteger & ui 
toString ( ) const 

Related Functions

  • std::ostream & 
operator <<( std::ostream & os , const SignedInteger & si 
  • std::ostream & 
operator <<( std::ostream & os , const UnsignedInteger & ui 
  • std::ostream & 
operator <<( std::ostream & os , const Float & 
  • std::ostream & 
operator <<( std::ostream & os , const Double & 

Detailed Description

This is a very simple component whose sole purpose is to wrap a signed integer value. The precise type is "long".

The cast operator to long() is often useful for getting the value of a long integer token as a long. This wrapper class features =,+,-,/ and * operators taking all the other possible numeric types.

It also features a conversion function to a universal::String.


Files Included

#include "universal.h"
#include "universal__String.h"

Functions Documentation

SignedInteger ( ) 

Self-explanatory

See also:

Back to index

~SignedInteger ( )   [  virtual  ] 

Self-explanatory

See also:

Back to index

operator long ( ) const 

Self-explanatory

See also:

Back to index

SignedInteger & operator =( long lVal 

Self-explanatory

See also:

Back to index

SignedInteger & operator =( short lVal 

Self-explanatory

See also:

Back to index

SignedInteger & operator =( int lVal 

Self-explanatory

See also:

Back to index

SignedInteger & operator =( unsigned long uVal 

Self-explanatory

See also:

Back to index

SignedInteger & operator =( unsigned short uVal 

Self-explanatory

See also:

Back to index

SignedInteger & operator =( unsigned int uVal 

Self-explanatory

See also:

Back to index

SignedInteger & operator =float fVal 

Self-explanatory

See also:

Back to index

SignedInteger & operator =double dVal 

Self-explanatory

See also:

Back to index

String toString ( ) const 

Self-explanatory

See also:

Back to index

bool even ( ) const 

Self-explanatory

See also:

Back to index

bool odd ( ) const 

Self-explanatory

See also:

Back to index

float operator +( const Float & 

Self-explanatory

See also:

Back to index

double operator +( const Double & 

Self-explanatory

See also:

Back to index

long operator +( const SignedInteger & si 

Self-explanatory

See also:

Back to index

long operator +( const UnsignedInteger & ui 

Self-explanatory

See also:

Back to index

float operator -( const Float & 

Self-explanatory

See also:

Back to index

double operator -( const Double & 

Self-explanatory

See also:

Back to index

long operator -( const SignedInteger & si 

Self-explanatory

See also:

Back to index

long operator -( const UnsignedInteger & ui 

Self-explanatory

See also:

Back to index

float operator *( const Float & 

Self-explanatory

See also:

Back to index

double operator *( const Double & 

Self-explanatory

See also:

Back to index

long operator *( const SignedInteger & si 

Self-explanatory

See also:

Back to index

long operator *( const UnsignedInteger & ui 

Self-explanatory

See also:

Back to index

float operator /( const Float & 

Self-explanatory

See also:

Back to index

double operator /( const Double & 

Self-explanatory

See also:

Back to index

long operator /( const SignedInteger & si 

Self-explanatory

See also:

Back to index

long operator /( const UnsignedInteger & ui 

Self-explanatory

See also:

Back to index


This file is part of the LLOOP LL Object-Oriented Parser Generator and Object Expander Generator. Copyright (c) 2005-2006 Michel MEHL, France. All rights reserved. LLOOP is distributed by the company ERSA SaRL.


Copyright (c) 2005-2006 Michel MEHL, Haguenau, France
LLOOP version 1.1


Generated with makedoc.