forked from stepcode/stepcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimplicitItemId.h
More file actions
51 lines (40 loc) · 1.19 KB
/
implicitItemId.h
File metadata and controls
51 lines (40 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef IMPLICITITEMID_H
#define IMPLICITITEMID_H
#include "interfacedItem.h"
class SC_CORE_EXPORT Implicit_item_id : public Interfaced_item {
protected:
Implicit_item_id();
Implicit_item_id( Implicit_item_id & );
virtual ~Implicit_item_id();
public:
const TypeDescriptor * _local_definition;
const TypeDescriptor * local_definition_() const {
return _local_definition;
}
// private:
void local_definition_( const TypeDescriptor * td ) {
_local_definition = td;
}
};
typedef Implicit_item_id * Implicit_item_id_ptr;
class SC_CORE_EXPORT Implicit_item_id__set {
public:
Implicit_item_id__set( int = 16 );
~Implicit_item_id__set();
Implicit_item_id_ptr & operator[]( int index );
void Insert( Implicit_item_id_ptr, int index );
void Append( Implicit_item_id_ptr );
void Remove( int index );
int Index( Implicit_item_id_ptr );
int Count();
void Clear();
private:
void Check( int index );
private:
Implicit_item_id_ptr * _buf;
int _bufsize;
int _count;
};
typedef Implicit_item_id__set * Implicit_item_id__set_ptr;
typedef Implicit_item_id__set_ptr Implicit_item_id__set_var;
#endif //IMPLICITITEMID_H