channel::IdTrait< int > Class Template Reference

trait class for integer ids More...

#include <LinearIdTrait.h>

List of all members.

Public Types

typedef int IdType
enum  {
  CHANNEL_CONN_MSG = 1000, CHANNEL_DISCONN_MSG, INIT_SUBSCRIPTION_INFO_MSG, INIT_PUBLICATION_INFO_MSG,
  SUBSCRIPTION_INFO_MSG, UNSUBSCRIPTION_INFO_MSG, PUBLICATION_INFO_MSG, UNPUBLICATION_INFO_MSG,
  APP_MSG_BEGIN = 2000
}
 define system msgs More...

Static Public Member Functions

static bool eq (const IdType &id1, const IdType &id2)
 need the comparisons for msg matching and map
static bool lt (const IdType &id1, const IdType &id2)
static bool match (const IdType id1, const IdType id2)
static std::string idToString (const IdType &id)
 string representation of ids, for debugging
static int size (const int &id2)
 memory size the id will take
static int marshal (ACE_OutputCDR &cdr, const int &id)
 Id marshalling code; CDR...
static int demarshal (ACE_InputCDR &cdr, int &id)


Detailed Description

template<>
class channel::IdTrait< int >

trait class for integer ids

Definition at line 32 of file LinearIdTrait.h.


Member Typedef Documentation

typedef int channel::IdTrait< int >::IdType
 

Definition at line 49 of file LinearIdTrait.h.


Member Enumeration Documentation

anonymous enum
 

define system msgs

Enumerator:
CHANNEL_CONN_MSG  --- sys msg starts at 1000 ---
CHANNEL_DISCONN_MSG 
INIT_SUBSCRIPTION_INFO_MSG 
INIT_PUBLICATION_INFO_MSG 
SUBSCRIPTION_INFO_MSG 
UNSUBSCRIPTION_INFO_MSG 
PUBLICATION_INFO_MSG 
UNPUBLICATION_INFO_MSG 
APP_MSG_BEGIN  --- app msg starts at 2000 ---

Definition at line 35 of file LinearIdTrait.h.


Member Function Documentation

static int channel::IdTrait< int >::demarshal ACE_InputCDR &  cdr,
int &  id
[inline, static]
 

Definition at line 81 of file LinearIdTrait.h.

static bool channel::IdTrait< int >::eq const IdType id1,
const IdType id2
[inline, static]
 

need the comparisons for msg matching and map

Definition at line 52 of file LinearIdTrait.h.

static std::string channel::IdTrait< int >::idToString const IdType id  )  [inline, static]
 

string representation of ids, for debugging

Definition at line 63 of file LinearIdTrait.h.

static bool channel::IdTrait< int >::lt const IdType id1,
const IdType id2
[inline, static]
 

Definition at line 54 of file LinearIdTrait.h.

static int channel::IdTrait< int >::marshal ACE_OutputCDR &  cdr,
const int &  id
[inline, static]
 

Id marshalling code; CDR...

Definition at line 76 of file LinearIdTrait.h.

static bool channel::IdTrait< int >::match const IdType  id1,
const IdType  id2
[inline, static]
 

Definition at line 59 of file LinearIdTrait.h.

static int channel::IdTrait< int >::size const int &  id2  )  [inline, static]
 

memory size the id will take

Definition at line 70 of file LinearIdTrait.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 19:59:23 2006 for channel by  doxygen 1.4.6-NO