From 5c592b18ce9c309625bfcb2aeebe17d6ff9954f5 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Tue, 16 Mar 2010 12:28:32 +0000 Subject: [PATCH] Transient commit. Kite is not in a stable state, juste doing so to allow working on automated build script. --- kite/src/GCell.cpp | 20 ++++++++++++++++++++ kite/src/kite/GCell.h | 18 ++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/kite/src/GCell.cpp b/kite/src/GCell.cpp index 8df83b5d..44ecc3ba 100644 --- a/kite/src/GCell.cpp +++ b/kite/src/GCell.cpp @@ -566,4 +566,24 @@ namespace Kite { { return _base->_getRecord(); } +// ------------------------------------------------------------------- +// Class : "Kite::DyKeyQueue". + + + DyKeyQueue::DyKeyQueue () + : _map () + , _requests() + { } + + + DyKeyQueue::~DyKeyQueue () + { + if ( (not _map.empty()) or (not _requests.empty()) ) { + cerr << Warning("~DyKeyQueue(): Still contains %d elements and %d requests." + ,_map.size(),_requests.size()) << endl; + } + } + + + } // End of Kite namespace. diff --git a/kite/src/kite/GCell.h b/kite/src/kite/GCell.h index 521d82cc..aaa10d95 100644 --- a/kite/src/kite/GCell.h +++ b/kite/src/kite/GCell.h @@ -208,6 +208,24 @@ namespace Kite { typedef GenericFilter GCellFilter; +// ------------------------------------------------------------------- +// Class : "DyKeyQueue". + + + class DyKeyQueue { + public: + DyKeyQueue (); + ~DyKeyQueue (); + GCell* pop (); + void push ( GCell* ); + void invalidate ( GCell* ); + void revalidate (); + private: + set _map; + set _requests; + }; + + } // End of Kite namespace.