C++ TargetRTS
Loading...
Searching...
No Matches
RTElasticArray.h
1/*
2 * Licensed Materials - Property of HCL and/or IBM
3 * Copyright HCL Technologies Ltd. 2016, 2021. All Rights Reserved.
4 * Copyright IBM Corporation 1999, 2016. All Rights Reserved.
5 *
6 * U.S. Government Users Restricted Rights - Use, duplication or
7 * disclosure restricted by GSA ADP Schedule.
8 */
9
10#ifndef __RTElasticArray_h__
11#define __RTElasticArray_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#ifndef __RTConfig_h__
18#include <RTConfig.h>
19#endif
20
22{
23protected:
24 int _size;
25 void ** _contents;
26
27public:
28 explicit RTElasticArray( int initial_size = 0 );
30 ~RTElasticArray( void );
31
32 RTS_INLINE int size( void ) const;
33 int compact( void );
34 void resize( int min_size );
35 int unusedIndex( void );
36 int unusedIndex( int minimum );
37
38 RTS_INLINE void *& operator[]( int );
39
40 RTElasticArray & operator=( const RTElasticArray & );
41};
42
43#if RTS_INLINES
44#include <RTElasticArray.inl>
45#endif
46
47#endif // __RTElasticArray_h__
Definition: RTElasticArray.h:22