#include <ctr64.h>
Inheritance diagram for Counter64:
This type has is available in SNMPv2 but may be used anywhere where needed.
Definition at line 84 of file ctr64.h.
Public Member Functions | |
| Counter64 () | |
| Constructs a valid Couter64 with value 0. | |
| Counter64 (unsigned long lo) | |
| Constructs a valid Counter64 with the given value as the lower 32 bits. | |
| Counter64 (unsigned long hi, unsigned long lo) | |
| Constructs a valid Counter64 with the given values. | |
| Counter64 (const Counter64 &ctr64) | |
| Copy constructor. | |
| ~Counter64 () | |
| Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden). | |
| long double | c64_to_ld () const |
| Get the value of this object as long double. | |
| unsigned long | high () const |
| Get the high 32 bit part. | |
| unsigned long | low () const |
| Get the low 32 bit part. | |
| void | set_high (const unsigned long h) |
| Set the high 32 bit part. | |
| void | set_low (const unsigned long l) |
| Set the low 32 bit part. | |
| const char * | get_printable () const |
| Get a printable ASCII string representing the current value. | |
| SmiUINT32 | get_syntax () const |
| Get the Syntax of the object. | |
| SnmpSyntax * | clone () const |
| Clone the object. | |
| SnmpSyntax & | operator= (const SnmpSyntax &val) |
| Overloaded assignement operator. | |
| bool | valid () const |
| Return validity of the object. | |
| int | get_asn1_length () const |
| Return the space needed for serialization. | |
| void | clear () |
| Reset the object. | |
| Counter64 & | operator= (const Counter64 &ctr64) |
| Assign a Counter64 to a Counter64. | |
| Counter64 & | operator= (const unsigned long i) |
| Assign a unsigned long to a Counter64. | |
| Counter64 | operator+ (const Counter64 &c) const |
| Add two Counter64. | |
| Counter64 | operator- (const Counter64 &c) const |
| Subtract two Counter64. | |
| Counter64 | operator * (const Counter64 &c) const |
| Multiply two Counter64. | |
| Counter64 | operator/ (const Counter64 &c) const |
| Divide two Counter64. | |
Static Public Member Functions | |
| long double | c64_to_ld (const Counter64 &c64) |
| Get the value of the object as long double. | |
| Counter64 | ld_to_c64 (const long double &ld) |
| Convert a long double to a Counter64. | |
Private Attributes | |
| char | output_buffer [CTR64OUTBUF] |
Friends | |
| DLLOPT friend Counter64 | operator+ (unsigned long ul, const Counter64 &c64) |
| Add a unsigned long and a Counter64. | |
| DLLOPT friend Counter64 | operator- (unsigned long ul, const Counter64 &c64) |
| Subtract a unsigned long and a Counter64. | |
| DLLOPT friend Counter64 | operator * (unsigned long ul, const Counter64 &c64) |
| Multiply a unsigned long and a Counter64. | |
| DLLOPT friend Counter64 | operator/ (unsigned long ul, const Counter64 &c64) |
| Divide a unsigned long and a Counter64. | |
| DLLOPT friend bool | operator== (const Counter64 &lhs, const Counter64 &rhs) |
| Equal operator for two Cunter64. | |
| DLLOPT friend bool | operator!= (const Counter64 &lhs, const Counter64 &rhs) |
| Not equal operator for two Cunter64. | |
| DLLOPT friend bool | operator< (const Counter64 &lhs, const Counter64 &rhs) |
| Less than operator for two Cunter64. | |
| DLLOPT friend bool | operator<= (const Counter64 &lhs, const Counter64 &rhs) |
| Less than or equal operator for two Cunter64. | |
| DLLOPT friend bool | operator> (const Counter64 &lhs, const Counter64 &rhs) |
| Greater than operator for two Cunter64. | |
| DLLOPT friend bool | operator>= (const Counter64 &lhs, const Counter64 &rhs) |
| Greater than or equal operator for two Cunter64. | |
|
|
Constructs a valid Couter64 with value 0.
|
|
|
Constructs a valid Counter64 with the given value as the lower 32 bits.
|
|
||||||||||||
|
Constructs a valid Counter64 with the given values.
|
|
|
Copy constructor.
|
|
|
Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden).
|
|
|
Get the value of this object as long double.
|
|
|
Get the value of the object as long double.
|
|
|
Reset the object.
Implements SnmpSyntax. |
|
|
Clone the object.
Implements SnmpSyntax. |
|
|
Return the space needed for serialization.
Implements SnmpSyntax. |
|
|
Get a printable ASCII string representing the current value.
Implements SnmpSyntax. |
|
|
Get the Syntax of the object.
Implements SnmpSyntax. Definition at line 195 of file ctr64.h. References SmiUINT32, and sNMP_SYNTAX_CNTR64. |
|
|
Get the high 32 bit part.
|
|
|
Convert a long double to a Counter64.
|
|
|
Get the low 32 bit part.
|
|
|
Multiply two Counter64.
|
|
|
Add two Counter64.
|
|
|
Subtract two Counter64.
|
|
|
Divide two Counter64.
|
|
|
Assign a unsigned long to a Counter64.
|
|
|
Assign a Counter64 to a Counter64.
|
|
|
Overloaded assignement operator.
Reimplemented from SnmpSyntax. |
|
|
Set the high 32 bit part. The low part will stay unchanged.
|
|
|
Set the low 32 bit part. The high part will stay unchanged.
|
|
|
Return validity of the object.
Implements SnmpSyntax. |
|
||||||||||||
|
Multiply a unsigned long and a Counter64.
|
|
||||||||||||
|
Not equal operator for two Cunter64.
|
|
||||||||||||
|
Add a unsigned long and a Counter64.
|
|
||||||||||||
|
Subtract a unsigned long and a Counter64.
|
|
||||||||||||
|
Divide a unsigned long and a Counter64.
|
|
||||||||||||
|
Less than operator for two Cunter64.
|
|
||||||||||||
|
Less than or equal operator for two Cunter64.
|
|
||||||||||||
|
Equal operator for two Cunter64.
|
|
||||||||||||
|
Greater than operator for two Cunter64.
|
|
||||||||||||
|
Greater than or equal operator for two Cunter64.
|
|
|
|
1.3.2