Sleeping Wombat Common Library  0.50.0
swCommonLibrary
ICollection.h
1 #pragma once
2 
4 #include "swCommonLib/Common/Properties/IEnableProperty.h"
5 #include "swCommonLib/Common/RTTR.h"
6 
7 
8 template< typename ElementType = IEnableProperty* >
10 {
11 private:
12 public:
13 
14  virtual ~ICollection() = 0 {};
15 
16  virtual void Add ( ElementType object ) = 0;
17  virtual void Insert ( ElementType object, int32 index ) = 0;
18  virtual void Remove ( ElementType object ) = 0;
19  virtual void Remove ( int32 index ) = 0;
20  virtual void Move ( int32 srcIdx, int32 dstIdx ) = 0;
21 
22  virtual int32 Find ( ElementType object ) = 0;
23 
24  virtual void Clear () = 0;
25  virtual int32 Length () = 0;
26 
27  virtual ElementType& operator[]( int32 idx ) = 0;
28 };
29 RTTR_DECLARE_STANDARD_META_TYPE_VARIANTS( ICollection< IEnableProperty* > )
Definition: IEnableProperty.h:7
Plik zawiera definicje podstawowych typów zmiennych.
Definition: ICollection.h:9