/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
// reference to a SystemDependentDataManager, probably // a single, globally used one, but not necessarily
SystemDependentDataManager& mrSystemDependentDataManager;
// Type identifier
SDD_Type maSystemDependentDataType;
// Buffered CalculatedCycles, result of estimations using // getHoldCyclesInSeconds and estimateUsageInBytes, executed // using getHoldCyclesInSeconds. StartValue is 0 to detect // not-yet-calculated state
sal_uInt32 mnCalculatedCycles;
// Calculate HoldCyclesInSeconds based on using // getHoldCyclesInSeconds and estimateUsageInBytes, the // result is created once on-demand and buffered in // mnCalculatedCycles
sal_uInt32 calculateCombinedHoldCyclesInSeconds() const;
// Allow read access to the calculated cycles in seconds, this // can be e.g. used to determine if this instance got added
sal_uInt32 getCombinedHoldCyclesInSeconds() const { return mnCalculatedCycles; }
// Size estimation of the entry in bytes - does not have to // be used, but should be. Default returns zero what // means there is no size estimation available. Override to // offer useful data if you want to have better caching. virtual sal_Int64 estimateUsageInBytes() const;
};
class BASEGFX_DLLPUBLIC SystemDependentDataHolder
{ private: // Possibility to hold System-Dependent B2DPolygon-Representations
std::unordered_map< SDD_Type, SystemDependentData_WeakPtr > maSystemDependentReferences;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.