ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 


Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ns-2/lib/int.Vec.cc File Reference

#include <stdlib.h>
#include "lib/builtin.h"
#include "lib/int.Vec.h"

Defines

#define BYTES_PER_WORD   8
#define BYTES_PER_LONG   4
#define STACK_SIZE   (BYTES_PER_WORD * BYTES_PER_LONG)
#define PUSH(LOW, HIGH)   do {top->lo = LOW;top++->hi = HIGH;} while (0)
#define POP(LOW, HIGH)   do {LOW = (--top)->lo;HIGH = top->hi;} while (0)
#define STACK_NOT_EMPTY   (stack < top)
#define MAX_THRESH   4

Functions

void default_intVec_error_handler (const char *msg)
one_arg_error_handler_t set_intVec_error_handler (one_arg_error_handler_t f)
intVec concat (intVec &a, intVec &b)
intVec combine (intCombiner f, intVec &a, intVec &b)
intVec reverse (intVec &a)
intVec map (intMapper f, intVec &a)
int operator== (intVec &a, intVec &b)
intVec merge (intVec &a, intVec &b, intComparator f)
int gsort (int *, int, intComparator)
void SWAP (int *A, int *B)

Variables

one_arg_error_handler_t intVec_error_handler = default_intVec_error_handler

Define Documentation

#define BYTES_PER_LONG   4
 

#define BYTES_PER_WORD   8
 

#define MAX_THRESH   4
 

#define POP LOW,
HIGH       do {LOW = (--top)->lo;HIGH = top->hi;} while (0)
 

#define PUSH LOW,
HIGH       do {top->lo = LOW;top++->hi = HIGH;} while (0)
 

#define STACK_NOT_EMPTY   (stack < top)
 

#define STACK_SIZE   (BYTES_PER_WORD * BYTES_PER_LONG)
 


Function Documentation

intVec combine intCombiner    f,
intVec   a,
intVec   b
 

intVec concat intVec   a,
intVec   b
 

void default_intVec_error_handler const char *    msg
 

int gsort int *   ,
int   ,
intComparator   
[static]
 

intVec map intMapper    f,
intVec   a
 

intVec merge intVec   a,
intVec   b,
intComparator    f
 

int operator== intVec   a,
intVec   b
 

intVec reverse intVec   a
 

one_arg_error_handler_t set_intVec_error_handler one_arg_error_handler_t    f
 

void SWAP int *    A,
int *    B
[inline, static]
 


Variable Documentation

one_arg_error_handler_t intVec_error_handler = default_intVec_error_handler
 


This document is generated by doxygen.