BioDynaMo  v1.03.58-27764645
param_group.cc
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 #include "core/param/param_group.h"
16 #include <memory>
17 
18 namespace bdm {
19 
21  static ParamGroupUidGenerator kInstance;
22  return &kInstance;
23 }
24 
26 
28 
29 ParamGroup::~ParamGroup() = default;
30 
31 void ParamGroup::AssignFromConfig(const std::shared_ptr<cpptoml::table>&) {}
32 
33 } // namespace bdm
bdm::ParamGroup::AssignFromConfig
virtual void AssignFromConfig(const std::shared_ptr< cpptoml::table > &)
Definition: param_group.cc:31
bdm::ParamGroupUidGenerator::counter_
std::atomic< ParamGroupUid > counter_
Definition: param_group.h:41
bdm
Definition: agent.cc:39
param_group.h
bdm::ParamGroupUid
uint64_t ParamGroupUid
Definition: param_group.h:26
bdm::ParamGroup::~ParamGroup
virtual ~ParamGroup()
bdm::ParamGroupUidGenerator::Get
static ParamGroupUidGenerator * Get()
Definition: param_group.cc:20
bdm::ParamGroupUidGenerator::NewUid
ParamGroupUid NewUid()
Definition: param_group.cc:27
bdm::ParamGroupUidGenerator::ParamGroupUidGenerator
ParamGroupUidGenerator()
Definition: param_group.cc:25
bdm::ParamGroupUidGenerator
This class generates unique ids for parameter groups. Thread safe.
Definition: param_group.h:30