BioDynaMo  v1.05.119-a4ff3934
database.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 //
3 // Copyright (C) 2021 CERN & University of Surrey for the benefit of the
4 // BioDynaMo collaboration. All Rights Reserved.
5 //
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // See the LICENSE file distributed with this work for details.
10 // See the NOTICE file distributed with this work for additional information
11 // regarding copyright ownership.
12 //
13 // -----------------------------------------------------------------------------
14 
15 #ifndef CORE_MULTI_SIMULATION_DATABASE_H_
16 #define CORE_MULTI_SIMULATION_DATABASE_H_
17 
19 
20 namespace bdm {
21 namespace experimental {
22 
23 using experimental::TimeSeries;
24 
27 class Database {
28  public:
29  TimeSeries* data_ = nullptr;
30 
31  static Database* GetInstance() {
32  static Database kDatabase;
33  return &kDatabase;
34  }
35 
36  private:
37  Database() = default;
38 };
39 
40 } // namespace experimental
41 } // namespace bdm
42 
43 #endif // CORE_MULTI_SIMULATION_DATABASE_H_
bdm
Definition: agent.cc:39
bdm::experimental::Database::GetInstance
static Database * GetInstance()
Definition: database.h:31
time_series.h
bdm::experimental::Database::data_
TimeSeries * data_
Definition: database.h:29
bdm::experimental::Database
Definition: database.h:27
bdm::experimental::TimeSeries
Definition: time_series.h:123
bdm::experimental::Database::Database
Database()=default