X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fhla%2FHLADataType.cxx;h=ec3359338c81e3cc5f36db6e75ed9b5cc3beccdc;hb=d4db4fcac304c44e97d8db51f94cd25117b3956d;hp=b22fb218be97f16a72140e0ea6d7b31696ac5b52;hpb=252a539e69bda7cf8cf0c5198f25f38b0a710ee2;p=simgear.git diff --git a/simgear/hla/HLADataType.cxx b/simgear/hla/HLADataType.cxx index b22fb218..ec335933 100644 --- a/simgear/hla/HLADataType.cxx +++ b/simgear/hla/HLADataType.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2009 - 2010 Mathias Froehlich - Mathias.Froehlich@web.de +// Copyright (C) 2009 - 2012 Mathias Froehlich - Mathias.Froehlich@web.de // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -15,6 +15,12 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // +#ifdef HAVE_CONFIG_H +# include +#endif + +#include + #include "HLADataType.hxx" #include "HLADataElement.hxx" @@ -39,12 +45,6 @@ HLADataType::accept(HLADataTypeVisitor& visitor) const visitor.apply(*this); } -const HLADataTypeReference* -HLADataType::toDataTypeReference() const -{ - return 0; -} - const HLABasicDataType* HLADataType::toBasicDataType() const { @@ -69,12 +69,25 @@ HLADataType::toFixedRecordDataType() const return 0; } -const HLAVariantDataType* -HLADataType::toVariantDataType() const +const HLAVariantRecordDataType* +HLADataType::toVariantRecordDataType() const { return 0; } +bool +HLADataType::recomputeAlignment() +{ + unsigned alignment = getAlignment(); + _recomputeAlignmentImplementation(); + return alignment != getAlignment(); +} + +void +HLADataType::releaseDataTypeReferences() +{ +} + void HLADataType::setAlignment(unsigned alignment) { @@ -85,20 +98,9 @@ HLADataType::setAlignment(unsigned alignment) _alignment = alignment; } -HLADataTypeReference::~HLADataTypeReference() -{ -} - void -HLADataTypeReference::accept(HLADataTypeVisitor& visitor) const -{ - visitor.apply(*this); -} - -const HLADataTypeReference* -HLADataTypeReference::toDataTypeReference() const +HLADataType::_recomputeAlignmentImplementation() { - return this; } }