You.i Engine
YiStreamer.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_DEPRECATED_STREAMER_H_
3 #define _YI_DEPRECATED_STREAMER_H_
4 
6 #include "framework/YiPredef.h"
7 
8 #include <memory>
9 
10 namespace yi
11 {
17 namespace deprecated
18 {
19 class CYIStreamerPriv;
20 
28 {
29 public:
30  CYIStreamer();
31  virtual ~CYIStreamer();
32 
36  void AddItem(std::unique_ptr<CYIStreamedItem> pItem);
37 
42  size_t InsertItem(std::unique_ptr<CYIStreamedItem> pItem, size_t position);
43 
48  void RemoveItem(size_t position);
49 
54  void DeleteItem(size_t position);
55 
60  void Empty(bool deleteItemsLater = false);
61 
66  CYIStreamedItem *GetItem(size_t position);
67 
72 
77 
81  size_t Count();
82 
88  void SetRangeWidth(float range);
89 
93  float GetRangeWidth() const;
94 
100  void SetMaxStreamedItems(uint32_t maxItemCount);
101 
106  uint32_t GetMaxStreamedItems() const;
107 
111  virtual void CenterAt(float position);
112 
113 protected:
114  CYIStreamerPriv *m_pPriv;
115 
116 private:
117  CYIStreamer(const CYIStreamer &);
118  CYIStreamer &operator=(const CYIStreamer &);
119 };
120 
121 } // namespace deprecated
122 
125 } // namespace yi
126 
127 #endif // _YI_DEPRECATED_STREAMER_H_
Definition: YiAutoProfiler.h:7
CYIStreamedItem * GetItem(size_t position)
CYIStreamedItem * GetLast()
Definition: YiStreamedItem.h:16
void SetMaxStreamedItems(uint32_t maxItemCount)
virtual void CenterAt(float position)
void RemoveItem(size_t position)
uint32_t GetMaxStreamedItems() const
CYIStreamerPriv * m_pPriv
Definition: YiStreamer.h:114
size_t InsertItem(std::unique_ptr< CYIStreamedItem > pItem, size_t position)
CYIStreamedItem * GetFirst()
void AddItem(std::unique_ptr< CYIStreamedItem > pItem)
void DeleteItem(size_t position)
void SetRangeWidth(float range)
This class provides a mechanism whereby items in a list can be removed and inserted back into the lis...
Definition: YiStreamer.h:27
void Empty(bool deleteItemsLater=false)