|
SNMP++
3.3.11
|
The counter class allows all the functionality of unsigned integers but is recognized as a distinct SMI type. More...
#include <counter.h>


Public Member Functions | |
| Counter32 (const unsigned long i=0) | |
| Constructor with a value - defaults to 0. More... | |
| Counter32 (const Counter32 &c) | |
| Copy constructor. More... | |
| SmiUINT32 | get_syntax () const |
| Return the syntax. More... | |
| SnmpSyntax * | clone () const |
| Clone operator. More... | |
| Counter32 & | operator= (const Counter32 &uli) |
| Overloaded assignment for Counter32. More... | |
| Counter32 & | operator= (const unsigned long ul) |
| Overloaded assignment for unsigned longs. More... | |
Public Member Functions inherited from SnmpUInt32 | |
| SnmpUInt32 (const unsigned long i=0) | |
| Constructor with value (defaults to 0). More... | |
| SnmpUInt32 (const SnmpUInt32 &c) | |
| Copy constructor. More... | |
| virtual | ~SnmpUInt32 () |
| Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden). More... | |
| SnmpUInt32 & | operator= (const unsigned long i) |
| Overloaded assignment for unsigned longs. More... | |
| SnmpUInt32 & | operator= (const SnmpUInt32 &uli) |
| Overloaded assignment for SnmpUInt32. More... | |
| SnmpSyntax & | operator= (const SnmpSyntax &val) |
| Map other SnmpSyntax objects to SnmpUInt32. More... | |
| operator unsigned long () const | |
| Behave like an unsigned long. More... | |
| virtual const char * | get_printable () const |
| Get a printable ASCII value. More... | |
| bool | valid () const |
| Return validity of the object. More... | |
| int | get_asn1_length () const |
| Return the space needed for serialization. More... | |
| void | clear () |
| Reset the object. More... | |
Public Member Functions inherited from SnmpSyntax | |
| virtual | ~SnmpSyntax () |
| Virtual destructor to ensure deletion of derived classes... More... | |
Additional Inherited Members | |
Protected Member Functions inherited from SnmpSyntax | |
| SnmpSyntax () | |
Protected Attributes inherited from SnmpUInt32 | |
| bool | valid_flag |
| SNMP_PP_MUTABLE char | output_buffer [INTOUTBUF] |
| SNMP_PP_MUTABLE bool | m_changed |
Protected Attributes inherited from SnmpSyntax | |
| SmiVALUE | smival |
The counter class allows all the functionality of unsigned integers but is recognized as a distinct SMI type.
|
inline |
Constructor with a value - defaults to 0.
| i | - unsigned 32 bit value |
Definition at line 80 of file counter.h.
References sNMP_SYNTAX_CNTR32.
|
inline |
Copy constructor.
| c | - Object to copy from |
Definition at line 91 of file counter.h.
References sNMP_SYNTAX_CNTR32.
|
inlinevirtual |
Clone operator.
Reimplemented from SnmpUInt32.
|
inlinevirtual |
Return the syntax.
Reimplemented from SnmpUInt32.
Definition at line 102 of file counter.h.
References sNMP_SYNTAX_CNTR32.
Overloaded assignment for Counter32.
| uli | - new value |
Definition at line 123 of file counter.h.
References SnmpSyntax::smival, SmiVALUE::uNumber, SnmpUInt32::valid_flag, and SmiVALUE::value.
|
inline |
Overloaded assignment for unsigned longs.
| ul | - new value |
Definition at line 137 of file counter.h.
References SnmpUInt32::operator=().