25 #ifndef __DOTS_ARRAY_CONTAINER_H__
26 #define __DOTS_ARRAY_CONTAINER_H__
61 typedef std::vector<T> Vector;
91 std::vector<T>(other),
113 std::vector<T>::operator=(other);
114 m_size = other.
size();
150 if (index < 0 || index >= m_size)
154 return Vector::operator[](index);
167 if (index < 0 || index >= m_size)
171 return Vector::operator[](index);
196 for (
iterator it = begin(); it!=e;++it)
198 it->SetChanged(changed);
ArrayContainer< WattContainer > WattContainerArray
An array of DOB-containers containing 64 bit Watt values.
Definition: ArrayContainer.h:375
ArrayContainer< PascalContainer > PascalContainerArray
An array of DOB-containers containing 64 bit Pascal values.
Definition: ArrayContainer.h:351
ArrayContainer< BooleanContainer > BooleanContainerArray
An array of DOB-containers containing booleans.
Definition: ArrayContainer.h:212
ArrayContainer(const ArrayContainer &other)
Copy Constructor.
Definition: ArrayContainer.h:90
void SetChanged(bool changed)
Set the change flag on all elements in the array.
Definition: ArrayContainer.h:193
ArrayContainer< NewtonContainer > NewtonContainerArray
An array of DOB-containers containing 64 bit Newton values.
Definition: ArrayContainer.h:348
ArrayContainer< RadianContainer > RadianContainerArray
An array of DOB-containers containing 64 bit Radian values.
Definition: ArrayContainer.h:354
ArrayContainer< JouleContainer > JouleContainerArray
An array of DOB-containers containing 64 bit Joule values.
Definition: ArrayContainer.h:330
ArrayContainer< SquareMeterContainer > SquareMeterContainerArray
An array of DOB-containers containing 32 bit SquareMeter values.
Definition: ArrayContainer.h:303
ArrayContainer< KelvinContainer > KelvinContainerArray
An array of DOB-containers containing 32 bit Kelvin values.
Definition: ArrayContainer.h:270
Vector::const_reference const_reference
Definition: ArrayContainer.h:122
ArrayContainer< TypeIdContainer > TypeIdContainerArray
An array of DOB-containers containing TypeIds.
Definition: ArrayContainer.h:227
ArrayContainer< VoltContainer > VoltContainerArray
An array of DOB-containers containing 32 bit Volt values.
Definition: ArrayContainer.h:309
bool IsChanged() const
Check if any element has a change flag set on it.
Definition: ArrayContainer.h:181
ArrayContainer< AmpereContainer > AmpereContainerArray
An array of DOB-containers containing 64 bit Ampere values.
Definition: ArrayContainer.h:321
ArrayContainer< RadianPerSecondSquaredContainer > RadianPerSecondSquaredContainerArray
An array of DOB-containers containing 32 bit RadianPerSecondSquared values.
Definition: ArrayContainer.h:297
ArrayContainer & operator=(const ArrayContainer &other)
Copy Assignment operator.
Definition: ArrayContainer.h:107
ArrayContainer< SecondContainer > SecondContainerArray
An array of DOB-containers containing 32 bit Second values.
Definition: ArrayContainer.h:300
Meant to be used when something goes very wrong.
Definition: Exceptions.h:360
ArrayContainer< SecondContainer > SecondContainerArray
An array of DOB-containers containing 64 bit Second values.
Definition: ArrayContainer.h:363
ArrayContainer< NewtonContainer > NewtonContainerArray
An array of DOB-containers containing 32 bit Newton values.
Definition: ArrayContainer.h:285
ArrayContainer< Int64Container > Int64ContainerArray
An array of DOB-containers containing 64 bit integers.
Definition: ArrayContainer.h:218
ArrayContainer< RadianPerSecondSquaredContainer > RadianPerSecondSquaredContainerArray
An array of DOB-containers containing 64 bit RadianPerSecondSquared values.
Definition: ArrayContainer.h:360
ArrayContainer< WattContainer > WattContainerArray
An array of DOB-containers containing 32 bit Watt values.
Definition: ArrayContainer.h:312
ArrayContainer< SteradianContainer > SteradianContainerArray
An array of DOB-containers containing 64 bit Steradian values.
Definition: ArrayContainer.h:369
ArrayContainer(const Int32 size)
Constructor with size.
Definition: ArrayContainer.h:73
ArrayContainer< MeterContainer > MeterContainerArray
An array of DOB-containers containing 32 bit Meter values.
Definition: ArrayContainer.h:276
ArrayContainer< MeterPerSecondContainer > MeterPerSecondContainerArray
An array of DOB-containers containing 32 bit MeterPerSecond values.
Definition: ArrayContainer.h:279
ArrayContainer< Float64Container > Float64ContainerArray
An array of DOB-containers containing 64 bit floats.
Definition: ArrayContainer.h:224
ArrayContainer< SteradianContainer > SteradianContainerArray
An array of DOB-containers containing 32 bit Steradian values.
Definition: ArrayContainer.h:306
ArrayContainer< MeterPerSecondSquaredContainer > MeterPerSecondSquaredContainerArray
An array of DOB-containers containing 64 bit MeterPerSecondSquared values.
Definition: ArrayContainer.h:345
ArrayContainer< AmpereContainer > AmpereContainerArray
An array of DOB-containers containing 32 bit Ampere values.
Definition: ArrayContainer.h:258
ArrayContainer< MeterPerSecondSquaredContainer > MeterPerSecondSquaredContainerArray
An array of DOB-containers containing 32 bit MeterPerSecondSquared values.
Definition: ArrayContainer.h:282
Vector::const_iterator const_iterator
Definition: ArrayContainer.h:120
#define __WFILE__
Definition: Exceptions.h:31
ArrayContainer< HertzContainer > HertzContainerArray
An array of DOB-containers containing 32 bit Hertz values.
Definition: ArrayContainer.h:264
A parameter in the call was invalid.
Definition: Exceptions.h:254
ArrayContainer< KilogramContainer > KilogramContainerArray
An array of DOB-containers containing 64 bit Kilogram values.
Definition: ArrayContainer.h:336
ArrayContainer< MeterPerSecondContainer > MeterPerSecondContainerArray
An array of DOB-containers containing 64 bit MeterPerSecond values.
Definition: ArrayContainer.h:342
ArrayContainer< MeterContainer > MeterContainerArray
An array of DOB-containers containing 64 bit Meter values.
Definition: ArrayContainer.h:339
Int32 size() const
Get the size of the array.
Definition: ArrayContainer.h:138
ArrayContainer< SquareMeterContainer > SquareMeterContainerArray
An array of DOB-containers containing 64 bit SquareMeter values.
Definition: ArrayContainer.h:366
ArrayContainer< ChannelIdContainer > ChannelIdContainerArray
An array of DOB-containers containing ChannelIds.
Definition: ArrayContainer.h:236
ArrayContainer< KelvinContainer > KelvinContainerArray
An array of DOB-containers containing 64 bit Kelvin values.
Definition: ArrayContainer.h:333
ArrayContainer< CubicMeterContainer > CubicMeterContainerArray
An array of DOB-containers containing 32 bit CubicMeter values.
Definition: ArrayContainer.h:261
ArrayContainer< HertzContainer > HertzContainerArray
An array of DOB-containers containing 64 bit Hertz values.
Definition: ArrayContainer.h:327
ArrayContainer< Float32Container > Float32ContainerArray
An array of DOB-containers containing 32 bit floats.
Definition: ArrayContainer.h:221
Vector::reference reference
Definition: ArrayContainer.h:121
ArrayContainer< RadianPerSecondContainer > RadianPerSecondContainerArray
An array of DOB-containers containing 64 bit RadianPerSecond values.
Definition: ArrayContainer.h:357
ArrayContainer< VoltContainer > VoltContainerArray
An array of DOB-containers containing 64 bit Volt values.
Definition: ArrayContainer.h:372
ArrayContainer< StringContainer > StringContainerArray
An array of DOB-containers containing strings.
Definition: ArrayContainer.h:242
Safir::Dob::Typesystem::ArrayContainer< ObjectContainer > ObjectContainerArray
An array of DOB-containers containing DOB-objects.
Definition: ArrayContainer.h:245
ArrayContainer< RadianPerSecondContainer > RadianPerSecondContainerArray
An array of DOB-containers containing 32 bit RadianPerSecond values.
Definition: ArrayContainer.h:294
reference operator[](const Int32 index)
Returns a reference to the vector element at a specified position.
Definition: ArrayContainer.h:148
ArrayContainer< EntityIdContainer > EntityIdContainerArray
An array of DOB-containers containing EntityIds.
Definition: ArrayContainer.h:233
ArrayContainer< HandlerIdContainer > HandlerIdContainerArray
An array of DOB-containers containing HandlerIds.
Definition: ArrayContainer.h:239
Safir::Dob::Typesystem::ArrayContainer< BinaryContainer > BinaryContainerArray
An array of DOB-containers containing Binaries.
Definition: ArrayContainer.h:248
ArrayContainer< InstanceIdContainer > InstanceIdContainerArray
An array of DOB-containers containing InstanceIds.
Definition: ArrayContainer.h:230
Vector::iterator iterator
Definition: ArrayContainer.h:119
ArrayContainer< PascalContainer > PascalContainerArray
An array of DOB-containers containing 32 bit Pascal values.
Definition: ArrayContainer.h:288
STL container for arrays of DOB-containers.
Definition: ArrayContainer.h:58
ArrayContainer< JouleContainer > JouleContainerArray
An array of DOB-containers containing 32 bit Joule values.
Definition: ArrayContainer.h:267
ArrayContainer< KilogramContainer > KilogramContainerArray
An array of DOB-containers containing 32 bit Kilogram values.
Definition: ArrayContainer.h:273
DotsC_Int32 Int32
32 bit integer type.
Definition: Defs.h:67
ArrayContainer< CubicMeterContainer > CubicMeterContainerArray
An array of DOB-containers containing 64 bit CubicMeter values.
Definition: ArrayContainer.h:324
ArrayContainer< Int32Container > Int32ContainerArray
An array of DOB-containers containing 32 bit integers.
Definition: ArrayContainer.h:215
const_reference operator[](const Int32 index) const
Returns a const reference to the vector element at a specified position.
Definition: ArrayContainer.h:165
static bool IsChanged(const ContainerBase &container)
Check if a container is changed.
Definition: ContainerBase.h:134
ArrayContainer< RadianContainer > RadianContainerArray
An array of DOB-containers containing 32 bit Radian values.
Definition: ArrayContainer.h:291