ACE_Utils::UUID_Node Class Reference

Class to hold a MAC address. More...

#include <UUID.h>

List of all members.

Public Types

typedef u_char Node_ID [NODE_ID_SIZE]
 NODE_ID_SIZE = 6
enum  { NODE_ID_SIZE = 6 }

Public Member Functions

 UUID_Node (void)
 Constructor.
Node_IDnode_ID (void)
void node_ID (Node_ID &)
bool operator== (const UUID_Node &right) const
bool operator!= (const UUID_Node &right) const

Private Attributes

Node_ID node_ID_


Detailed Description

Class to hold a MAC address.

Definition at line 33 of file UUID.h.


Member Typedef Documentation

typedef u_char ACE_Utils::UUID_Node::Node_ID[NODE_ID_SIZE]

Definition at line 41 of file UUID.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
NODE_ID_SIZE 

Definition at line 40 of file UUID.h.

00040 {NODE_ID_SIZE = 6};


Constructor & Destructor Documentation

ACE_Utils::UUID_Node::UUID_Node ( void   ) 

Constructor.

Definition at line 27 of file UUID.cpp.

References node_ID_, and NODE_ID_SIZE.

00028   {
00029     for (int i = 0; i < UUID_Node::NODE_ID_SIZE; ++i)
00030       node_ID_[i] = 0;
00031   }


Member Function Documentation

void ACE_Utils::UUID_Node::node_ID ( Node_ID  ) 

Definition at line 40 of file UUID.cpp.

References node_ID_, and NODE_ID_SIZE.

00041   {
00042     for (int i = 0; i < UUID_Node::NODE_ID_SIZE; ++i)
00043       node_ID_[i] = node_ID[i];
00044   }

UUID_Node::Node_ID & ACE_Utils::UUID_Node::node_ID ( void   ) 

Definition at line 34 of file UUID.cpp.

References node_ID_.

Referenced by ACE_Utils::UUID::from_string_i(), and ACE_Utils::UUID_Generator::init().

00035   {
00036     return node_ID_;
00037   }

ACE_INLINE bool ACE_Utils::UUID_Node::operator!= ( const UUID_Node right  )  const

Definition at line 183 of file UUID.inl.

00184   {
00185     return !(*this == right);
00186   }

ACE_INLINE bool ACE_Utils::UUID_Node::operator== ( const UUID_Node right  )  const

Definition at line 173 of file UUID.inl.

References node_ID_, and NODE_ID_SIZE.

00174   {
00175     for (size_t i = 0; i < NODE_ID_SIZE; ++i)
00176       if (node_ID_ [i] != rt.node_ID_ [i])
00177         return false;
00178 
00179     return true;
00180   }


Member Data Documentation

Node_ID ACE_Utils::UUID_Node::node_ID_ [private]

Definition at line 54 of file UUID.h.

Referenced by node_ID(), operator==(), and UUID_Node().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:36:07 2010 for ACE by  doxygen 1.4.7