Poster of Linux kernelThe best gift for a Linux geek
ost::Number

ost::Number

Section: C Library Functions (3) Updated: 16 Feb 2010
Local index Up
 

NAME

ost::Number -

A number manipulation class.

 

SYNOPSIS


#include <numbers.h>

Inherited by ost::DateNumber, and ost::ZNumber.  

Public Member Functions


Number (char *buffer, unsigned size)
Create an instance of a number.
void setValue (long value)

const char * getBuffer () const

long getValue () const

long operator() ()

operator long ()

operator char * ()

long operator= (const long value)

long operator+= (const long value)

long operator-= (const long value)

long operator-- ()

long operator++ ()

int operator== (const Number &num)

int operator!= (const Number &num)

int operator< (const Number &num)

int operator<= (const Number &num)

int operator> (const Number &num)

int operator>= (const Number &num)
 

Protected Attributes


char * buffer

unsigned size
 

Friends


long operator+ (const Number &num, const long val)

long operator+ (const long val, const Number &num)

long operator- (const Number &num, long val)

long operator- (const long val, const Number &num)
 

Detailed Description

A number manipulation class.

This is used to extract, convert, and manage simple numbers that are represented in C ascii strings in a very quick and optimal way.

Author:

David Sugar <dyfet@ostel.com> number manipulation.

 

Constructor & Destructor Documentation

 

ost::Number::Number (char * buffer, unsigned size)

Create an instance of a number. Parameters:

buffer or NULL if created internally.
size use - values for zero filled.

 

Member Function Documentation

 

const char* ost::Number::getBuffer () const [inline]

 

long ost::Number::getValue () const

 

ost::Number::operator char * () [inline]

 

ost::Number::operator long () [inline]

 

int ost::Number::operator!= (const Number & num)

 

long ost::Number::operator() () [inline]

 

long ost::Number::operator++ ()

 

long ost::Number::operator+= (const long value)

 

long ost::Number::operator-- ()

 

long ost::Number::operator-= (const long value)

 

int ost::Number::operator< (const Number & num)

 

int ost::Number::operator<= (const Number & num)

 

long ost::Number::operator= (const long value)

Reimplemented in ost::ZNumber.  

int ost::Number::operator== (const Number & num)

 

int ost::Number::operator> (const Number & num)

 

int ost::Number::operator>= (const Number & num)

 

void ost::Number::setValue (long value)

Reimplemented in ost::ZNumber.  

Friends And Related Function Documentation

 

long operator+ (const long val, const Number & num) [friend]

 

long operator+ (const Number & num, const long val) [friend]

 

long operator- (const long val, const Number & num) [friend]

 

long operator- (const Number & num, long val) [friend]

 

Member Data Documentation

 

char* ost::Number::buffer [protected]

 

unsigned ost::Number::size [protected]

 

Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Protected Attributes
Friends
Detailed Description
Constructor & Destructor Documentation
ost::Number::Number (char * buffer, unsigned size)
Member Function Documentation
const char* ost::Number::getBuffer () const [inline]
long ost::Number::getValue () const
ost::Number::operator char * () [inline]
ost::Number::operator long () [inline]
int ost::Number::operator!= (const Number & num)
long ost::Number::operator() () [inline]
long ost::Number::operator++ ()
long ost::Number::operator+= (const long value)
long ost::Number::operator-- ()
long ost::Number::operator-= (const long value)
int ost::Number::operator< (const Number & num)
int ost::Number::operator<= (const Number & num)
long ost::Number::operator= (const long value)
int ost::Number::operator== (const Number & num)
int ost::Number::operator> (const Number & num)
int ost::Number::operator>= (const Number & num)
void ost::Number::setValue (long value)
Friends And Related Function Documentation
long operator+ (const long val, const Number & num) [friend]
long operator+ (const Number & num, const long val) [friend]
long operator- (const long val, const Number & num) [friend]
long operator- (const Number & num, long val) [friend]
Member Data Documentation
char* ost::Number::buffer [protected]
unsigned ost::Number::size [protected]
Author

This document was created by man2html, using the manual pages.
Time: 21:51:51 GMT, April 16, 2011