C++ TargetRTS
Loading...
Searching...
No Matches
RTSequenceOf.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 __RTSequenceOf_h__
11#define __RTSequenceOf_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#ifndef __RTDataObject_h__
18#include <RTDataObject.h>
19#endif
20
22{
23protected:
24 void spaceClean( void );
25
26public:
27 int size;
28 RTDataObject ** array;
29
30 explicit RTSequenceOf( int _size = 0 );
31 RTSequenceOf( const RTSequenceOf & );
32 RTSequenceOf( int _size,
33 const RTDataObject ** _contents );
34
35 virtual ~RTSequenceOf( void );
36
37 RTS_INLINE RTDataObject & at( int ) const;
38 RTDataObject & operator[]( int ) const;
39 RTSequenceOf & operator=( const RTSequenceOf & );
40
41 virtual int operator==( const RTDataObject & ) const override;
42
43 virtual const RTObject_class * getClassData( void ) const override;
44 static const RTObject_class classData;
45
46#define RTType_RTSequenceOf ( RTSequenceOf::classData )
47};
48
50{
51 const void * data;
52 const RTObject_class * type;
53
54 RTS_INLINE RTTypedValue_RTSequenceOf( const RTSequenceOf & ); //lint !e1931
55 RTS_INLINE RTTypedValue_RTSequenceOf( const RTSequenceOf &,
56 const RTObject_class * );
57}; //lint !e1712
58
59#if RTS_INLINES
60#include <RTSequenceOf.inl>
61#endif
62
63#endif // __RTSequenceOf_h__
Provides a common interface to certain data type implementations (e.g.
Definition: RTDataObject.h:33
Definition: RTSequenceOf.h:22
A type descriptor providing information about a type.
Definition: RTObject_class.h:64
Definition: RTSequenceOf.h:50