• Main Page
  • Classes
  • Files
  • File List

/Users/yzchen/ns/ns-allinone-2.33/ns-2.33/lib/int.defs.h

00001 // -*- C++ -*-
00002 
00003 #define DEFAULT_INITIAL_CAPACITY 8
00004 //     The initial capacity for containers (e.g., hash tables) that
00005 //     require an initial capacity argument for constructors.  Default:
00006 //     100
00007 
00008 #define intEQ(a, b) ((a)==(b))
00009 //     return true if a is considered equal to b for the purposes of
00010 //     locating, etc., an element in a container.  Default: (a == b)
00011 
00012 #define intLE(a, b) ((a)<=(b))
00013 //     return true if a is less than or equal to b Default: (a <= b)
00014 
00015 #define intCMP(a, b) (((a) <= (b))? ((a)==(b))? 0 : -1 : 1)
00016 //     return an integer < 0 if a<b, 0 if a==b, or > 0 if a>b.  Default:
00017 //     (a <= b)? (a==b)? 0 : -1 : 1
00018 
00019 #define intHASH(a) (a)
00020 //     return an unsigned integer representing the hash of a.  Default:
00021 //     hash(a) ; where extern unsigned int hash(<T&>).  (note: several
00022 //     useful hash functions are declared in builtin.h and defined in
00023 //     hash.cc)

Generated on Tue Aug 10 2010 16:16:07 for ns-2.33 by  doxygen 1.7.1