A number manipulation class.
More...
#include <numbers.h>
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.nosp@m.@ost.nosp@m.el.co.nosp@m.m
number manipulation.
◆ Number()
| 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. |
◆ getBuffer()
| const char * ost::Number::getBuffer |
( |
| ) |
const |
|
inline |
◆ getValue()
| long ost::Number::getValue |
( |
| ) |
const |
◆ operator char *()
| ost::Number::operator char * |
( |
| ) |
|
|
inline |
◆ operator long()
| ost::Number::operator long |
( |
| ) |
|
|
inline |
◆ operator!=()
| int ost::Number::operator!= |
( |
const Number & | num | ) |
|
◆ operator()()
| long ost::Number::operator() |
( |
| ) |
|
|
inline |
◆ operator++()
| long ost::Number::operator++ |
( |
| ) |
|
◆ operator+=()
| long ost::Number::operator+= |
( |
const long | value | ) |
|
◆ operator--()
| long ost::Number::operator-- |
( |
| ) |
|
◆ operator-=()
| long ost::Number::operator-= |
( |
const long | value | ) |
|
◆ operator<()
| int ost::Number::operator< |
( |
const Number & | num | ) |
|
◆ operator<=()
| int ost::Number::operator<= |
( |
const Number & | num | ) |
|
◆ operator=()
| long ost::Number::operator= |
( |
const long | value | ) |
|
◆ operator==()
| int ost::Number::operator== |
( |
const Number & | num | ) |
|
◆ operator>()
| int ost::Number::operator> |
( |
const Number & | num | ) |
|
◆ operator>=()
| int ost::Number::operator>= |
( |
const Number & | num | ) |
|
◆ setValue()
| void ost::Number::setValue |
( |
long | value | ) |
|
◆ operator+ [1/2]
| long operator+ |
( |
const long | val, |
|
|
const Number & | num ) |
|
friend |
◆ operator+ [2/2]
| long operator+ |
( |
const Number & | num, |
|
|
const long | val ) |
|
friend |
◆ operator- [1/2]
| long operator- |
( |
const long | val, |
|
|
const Number & | num ) |
|
friend |
◆ operator- [2/2]
| long operator- |
( |
const Number & | num, |
|
|
long | val ) |
|
friend |
◆ buffer
| char* ost::Number::buffer |
|
protected |
◆ size
| unsigned ost::Number::size |
|
protected |
The documentation for this class was generated from the following file: