libptpmgmt  1.4
libptpmgmt library that provides the functionality of linuxptp pmc
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ClockIdentity_t Struct Reference

#include <types.h>

Public Member Functions

std::string string () const
 
void clear (int val=0)
 
bool operator== (const ClockIdentity_t &rhs) const
 
bool eq (const ClockIdentity_t &rhs) const
 
bool operator< (const ClockIdentity_t &rhs) const
 
bool less (const ClockIdentity_t &rhs) const
 
bool operator== (const Binary &bin) const
 
bool eq (const Binary &bin) const
 

Static Public Member Functions

static size_t size ()
 

Public Attributes

Octet_t v [8]
 

Detailed Description

PTP clock ID

Member Function Documentation

◆ clear()

void ClockIdentity_t::clear ( int  val = 0)
inline

Clear clock ID and set all octets to val

Parameters
[in]valvalue to set all octets

◆ eq() [1/2]

bool ClockIdentity_t::eq ( const Binary bin) const
inline

Compare equal with a binary value

Parameters
[in]binanother clock id
Returns
true if binary is equal

◆ eq() [2/2]

bool ClockIdentity_t::eq ( const ClockIdentity_t rhs) const
inline

Compare to another clock ID

Parameters
[in]rhsanother clock id
Returns
true if IDs are indentical

◆ less()

bool ClockIdentity_t::less ( const ClockIdentity_t rhs) const
inline

Compare to another clock ID

Parameters
[in]rhsanother clock id
Returns
true if ID is smaller

◆ operator<()

bool ClockIdentity_t::operator< ( const ClockIdentity_t rhs) const
inline

Compare to another clock ID

Parameters
[in]rhsanother clock id
Returns
true if ID is smaller

◆ operator==() [1/2]

bool ClockIdentity_t::operator== ( const Binary bin) const
inline

Compare equal with a binary value

Parameters
[in]binanother clock id
Returns
true if binary is equal

◆ operator==() [2/2]

bool ClockIdentity_t::operator== ( const ClockIdentity_t rhs) const
inline

Compare to another clock ID

Parameters
[in]rhsanother clock id
Returns
true if IDs are indentical

◆ size()

static size_t ClockIdentity_t::size ( )
inlinestatic

Get object size

Returns
object size

◆ string()

std::string ClockIdentity_t::string ( ) const

Convert to string

Returns
string

Member Data Documentation

◆ v

Octet_t ClockIdentity_t::v[8]

value


The documentation for this struct was generated from the following file: