Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] View of /trunk/paramin-beta/datastructure.h
[mareframe] / trunk / paramin-beta / datastructure.h Repository:
ViewVC logotype

View of /trunk/paramin-beta/datastructure.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Mon Feb 10 17:09:07 2014 UTC (10 years, 3 months ago) by agomez
File size: 548 byte(s)
Initial version based on Gadget 2.2.00
#ifndef datastructure_h
#define datastructure_h

#include "paramin.h"

class Link {
public:
  Link* l;
  int tid;
};

/**
 * \class Queue 
 * \brief class Queue stores data items of type integer. Items can be added to the end or front of the queue and removed from the end or the front 
*/

class Queue {
private:
  int numberInQueue;
  Link* first;
  Link* last;
public:
  Queue();
  ~Queue();
  void put(int tid);
  int get();
  int isEmpty();
  int getNumItems();
  int getLast();
  void putFirst(int dataID);
  int contains(int id);
};

#endif

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge