- Timestamp:
- 08/26/10 20:21:08 (21 months ago)
- Children:
- 6c86e7ccc32f1c99d204262844a52b1b06359145
- Parents:
- 7ccc366e52cc1e51e123b39fccaf56267361ca58
- git-committer:
- Antti-Juhani Kaijanaho <antti-juhani@…> (08/26/10 20:21:08)
- Files:
-
- 1 modified
-
tlate/thread_value.hh (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tlate/thread_value.hh
r868b365 r43f5212 1 1 /* This file is part of Alue, the multiprotocol Internet discussion daemon 2 2 3 Copyright © 2009 Antti-Juhani Kaijanaho3 Copyright © 2009, 2010 Antti-Juhani Kaijanaho 4 4 5 5 Alue is free software: you can redistribute it and/or modify it … … 26 26 #include "../db/threaded.hh" 27 27 28 #include < list>28 #include <vector> 29 29 30 30 namespace db { class user; } … … 34 34 class thread_value : public sequential_value 35 35 { 36 typedef std::list<db::thread_node::const_ptr> tl; 37 typedef std::list<db::thread_node::ptr> tlnc; 36 typedef std::vector<db::thread_node::const_ptr> tl; 38 37 tl tnl; 39 38 boost::shared_ptr<const db::user> u; … … 69 68 70 69 public: 70 typedef boost::shared_ptr<thread_value> ptr; 71 typedef boost::shared_ptr<const thread_value> const_ptr; 72 71 73 const_iterator begin() const { return new vit(tnl.begin(), u); } 72 74 const_iterator end() const { return new vit(tnl.end(), u); } … … 74 76 thread_value(db::thread_node::const_ptr tn, 75 77 boost::shared_ptr<const db::user> u); 78 void slice_window(size_t start, size_t length); 79 size_t size() const { return tnl.size(); } 76 80 }; 77 81 }
