Collaboration diagram for Prefix:
Public Methods | |
Prefix () | |
Prefix ( const char* name, const char* abbr, int exp ) | |
~Prefix () | |
char* | name () |
char* | abbr () |
int | exp () |
Prefix* | next () |
void | avoid ( const bool& state ) |
bool | avoid () const |
Protected Attributes | |
char* | m_name |
char* | m_abbr |
int | m_exp |
bool | m_avoid |
Prefix* | m_next |
|
Default constructor. For use only by XML parser. |
|
Constructor for normal use. |
|
Destructor. |
|
Return the abbreviation of a prefix |
|
Is this prefix to be avoided? |
|
Denote this prefix as one to be avoided for common use. |
|
Return the exponent associated with the prefix. If this prefix is present in front of a unit, then the number must be multiplied by 10^exp() to remove the prefix. For example, since the quantity "101 kPa" is preceded by "k", the abbreviation for "kilo", then we must multiply by 10^3 (=1000) in order to remove the "k". So "101 kPa = 101000 Pa". |
|
Return the name of the prefix (i.e., "kilo" or "mega"). No dash should appear at the end of a name. The name should be entirely lowercase letters (no capitalization). |
|
Return the next prefix in the list of all prefixes. |
|
The abbreviation that specifies the prefix |
|
Whether to avoid using this prefix in output |
|
The power of ten this prefix represents |
|
The name of the prefix |
|
The next in a list of all Prefixes |
![]() |
C++ Reference Manual | 20010520 |