| 
 
 | 
 | 
This class can be used to store an AS number that can be either 16 or 32 bits. Originally, the AS numbers were defined as 16-bit unsigned numbers. Later the "extended" AS numbers were introduced, which are unsigned 32-bit numbers.
| AsNum () | AsNum | 
Default constructor
The AS number is set to a value that is invalid: 0xffffffffU, but defined as non-extended.
| AsNum (uint16_t value) | AsNum | 
Constructor for a non-extended AS number.
Parameters:
| value | the value to assign to this AS number. | 
| AsNum (uint32_t value) | AsNum | 
Constructor for an extended AS number.
Parameters:
| value | the value to assign to this AS number. | 
| void  set_asnum (uint16_t value) | set_asnum | 
Set the AS number to a non-extended value.
Parameters:
| value | the value to assign to this AS number. | 
| void  set_asnum (uint32_t value) | set_asnum | 
Set the AS number to an extended value.
Parameters:
| value | the value to assign to this AS number. | 
| uint16_t  as () | as | 
[const]
Get the non-extended AS number value.
Returns: the non-extended AS number value.
| uint32_t  as_extended () | as_extended | 
[const]
Get the extended AS number value.
Returns: the extended AS number value.
| bool  is_extended () | is_extended | 
[const]
Test if this is an extended AS number.
Returns: true if this is an extended AS number.
| bool  operator== (const AsNum& other) | operator== | 
[const]
Equality Operator
Parameters:
| other | the right-hand operand to compare against. | 
Returns: true if the left-hand operand is numerically same as the right-hand operand.
| bool  operator< (const AsNum& other) | operator< | 
[const]
Less-Than Operator
Parameters:
| other | the right-hand operand to compare against. | 
Returns: true if the left-hand operand is numerically smaller than the right-hand operand.
| inline bool  is_valid () | is_valid | 
[const]
Test if this AS number is valid.
Returns: true if this AS number is valid.
| string  str () | str | 
[const]
Convert this AS number from binary form to presentation format.
Returns: C++ string with the human-readable ASCII representation of the AS number.
| Generated by: pavlin on possum.icir.org on Wed Dec 11 16:50:31 2002, using kdoc 2.0a54+XORP. |