X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fhla%2FRTIData.hxx;h=94971d0f6c96a9591331324e9b714c250ebc1eeb;hb=2c1fbd558b355cbe9f8902962cbeb492915236f3;hp=dff66dbf53a091e352cbccc1abf0dabc8d53c5e1;hpb=252a539e69bda7cf8cf0c5198f25f38b0a710ee2;p=simgear.git diff --git a/simgear/hla/RTIData.hxx b/simgear/hla/RTIData.hxx index dff66dbf..94971d0f 100644 --- a/simgear/hla/RTIData.hxx +++ b/simgear/hla/RTIData.hxx @@ -115,6 +115,13 @@ public: ensureCapacity(capacity); } + void swap(RTIData& data) + { + std::swap(_data, data._data); + std::swap(_size, data._size); + std::swap(_capacity, data._capacity); + } + void setData(char* data, unsigned size) { if (_capacity) @@ -424,12 +431,6 @@ private: unsigned _capacity; }; -// A single attribute/parameter update blob -typedef std::pair RTIIndexDataPair; - -// A complete set of updates we received in one reflect/receive call -typedef std::list RTIIndexDataPairList; - /// Gets an own header at some time class RTIBasicDataStream {