t_spanmn.cpp File Reference

#include <basis/array.h>
#include <basis/function.h>
#include <basis/guards.h>
#include <data_struct/span_manager.h>
#include <loggers/file_logger.h>
#include <data_struct/static_memory_gremlin.h>

Include dependency graph for t_spanmn.cpp:

Go to the source code of this file.

Defines

#define DEBUG_SPAN_MANAGER
#define LOG(to_print)   { program_wide_logger().log(to_print); }
#define WHERE   __WHERE__.s()
#define MAX_SPANS   8
#define INIT_STUFF   int_array stuffer;
#define STUFF(a, b)
#define SEND(send_to)   send_to.update(stuffer); stuffer.reset(0);
#define COMP(to_compare, i)
 stuffer.number_of_spans = stuff_index / 2; \ old

Functions

int main (int formal(argc), char *formal(argv)[])

Variables

 HOOPLE_STARTUP_CODE


Define Documentation

#define COMP ( to_compare,
 ) 

Value:

if (to_compare != rec_list[i]) \
    deadly_error(WHERE, "comparison", istring(istring::SPRINTF, \
        "index %d incorrect", i).s())
stuffer.number_of_spans = stuff_index / 2; \ old

Definition at line 48 of file t_spanmn.cpp.

Referenced by main().

#define DEBUG_SPAN_MANAGER

Definition at line 22 of file t_spanmn.cpp.

#define INIT_STUFF   int_array stuffer;

Definition at line 34 of file t_spanmn.cpp.

Referenced by main().

#define LOG ( to_print   )     { program_wide_logger().log(to_print); }

Definition at line 25 of file t_spanmn.cpp.

#define MAX_SPANS   8

Definition at line 31 of file t_spanmn.cpp.

#define SEND ( send_to   )     send_to.update(stuffer); stuffer.reset(0);

Definition at line 43 of file t_spanmn.cpp.

Referenced by main().

#define STUFF ( a,
 ) 

Value:

if (stuffer.length() / 2 + 1 > MAX_SPANS) deadly_error(WHERE, "STUFF", "too many"); \
  stuffer.concatenate(a); stuffer.concatenate(b);

Definition at line 37 of file t_spanmn.cpp.

Referenced by main().

#define WHERE   __WHERE__.s()

Definition at line 29 of file t_spanmn.cpp.


Function Documentation

int main ( int   formal(argc),
char *  formal(argv)[] 
)

Definition at line 53 of file t_spanmn.cpp.

References guards::alert_message(), COMP, deadly_error, INIT_STUFF, array< contents >::length(), LOG, span_manager::make_missing_list(), span_manager::make_received_list(), span_manager::missing_sequence(), span_manager::print_missing_list(), span_manager::print_received_list(), span_manager::received_sequence(), SEND, istring::SPRINTF, STUFF, and WHERE.


Variable Documentation

HOOPLE_STARTUP_CODE

Definition at line 27 of file t_spanmn.cpp.


Generated on Fri Oct 10 04:29:51 2008 for HOOPLE Libraries by  doxygen 1.5.1