Object Identifier.
More...
#include <asn.h>
|
bool | operator== (const OID &lhs, const OID &rhs) |
| Compare two OIDs for equality.
|
|
bool | operator!= (const OID &lhs, const OID &rhs) |
| Compare two OIDs for inequality.
|
|
bool | operator< (const OID &lhs, const OID &rhs) |
| Compare two OIDs for ordering.
|
|
Object Identifier.
Definition at line 166 of file asn.h.
◆ ~OID()
◆ OID() [1/3]
Construct an OID.
Definition at line 172 of file asn.h.
◆ OID() [2/3]
Construct an OID.
- Parameters
-
v | value to initialize the OID |
Definition at line 175 of file asn.h.
◆ OID() [3/3]
Construct an OID.
- Parameters
-
Definition at line 178 of file asn.h.
◆ operator+=()
OID & OID::operator+= |
( |
word32 |
rhs | ) |
|
|
inline |
Append a value to an OID.
- Parameters
-
Definition at line 182 of file asn.h.
◆ DEREncode()
DER encode this OID.
- Parameters
-
Definition at line 259 of file asn.cpp.
◆ BERDecode()
BER decode an OID.
- Parameters
-
Definition at line 271 of file asn.cpp.
◆ BERDecodeAndCheck()
◆ Empty()
bool OID::Empty |
( |
| ) |
const |
|
inline |
◆ GetValues()
const std::vector< word32 > & OID::GetValues |
( |
| ) |
const |
|
inline |
◆ operator==
bool operator== |
( |
const OID & |
lhs, |
|
|
const OID & |
rhs |
|
) |
| |
|
friend |
Compare two OIDs for equality.
- Parameters
-
lhs | the first OID |
rhs | the second OID |
- Returns
- true if the OIDs are equal, false otherwise
◆ operator!=
bool operator!= |
( |
const OID & |
lhs, |
|
|
const OID & |
rhs |
|
) |
| |
|
friend |
Compare two OIDs for inequality.
- Parameters
-
lhs | the first OID |
rhs | the second OID |
- Returns
- true if the OIDs are not equal, false otherwise
◆ operator<
bool operator< |
( |
const OID & |
lhs, |
|
|
const OID & |
rhs |
|
) |
| |
|
friend |
Compare two OIDs for ordering.
- Parameters
-
lhs | the first OID |
rhs | the second OID |
- Returns
- true if the first OID is less than the second OID, false otherwise
operator<() calls std::lexicographical_compare() on each element in the array of values.
The documentation for this class was generated from the following files: