mirror of
https://github.com/overte-org/overte.git
synced 2025-07-15 09:36:41 +02:00
- Now need a call to DependencyManager::set(...) that support variable arguments number and type - Now support destroy operation via DependencyManager::destroy() - Now support inheritance. All inheritance relationship need to be specified via DependencyManager::registerInheritance<Base, Derived>() before any call to the DepedencyManager involving Base. - Dependencies should now inherit from the class Dependency as well as using SINGLETON_DEPENDENCY
18 lines
No EOL
461 B
C++
18 lines
No EOL
461 B
C++
//
|
|
// DependencyManager.cpp
|
|
//
|
|
//
|
|
// Created by Clément Brisset on 12/10/14.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#include "DependencyManager.h"
|
|
|
|
DependencyManager DependencyManager::_manager;
|
|
|
|
QSharedPointer<Dependency>& DependencyManager::safeGet(size_t hashCode) {
|
|
return _instanceHash[hashCode];
|
|
} |