Salome HOME
projects
/
modules
/
yacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated copyright comment
[modules/yacs.git]
/
src
/
engine
/
HomogeneousPoolContainer.cxx
diff --git
a/src/engine/HomogeneousPoolContainer.cxx
b/src/engine/HomogeneousPoolContainer.cxx
index 5f0ec2ddc23c0e62bedc1d7f6545865e481a11e1..7c996ef88fcedd1f646667b250991a673dc25bb6 100644
(file)
--- a/
src/engine/HomogeneousPoolContainer.cxx
+++ b/
src/engine/HomogeneousPoolContainer.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2006-20
19 CEA/DEN, EDF R&D
+// Copyright (C) 2006-20
24 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-40,6
+40,11
@@
void HomogeneousPoolContainer::setAttachOnCloningStatus(bool val) const
throw Exception("An HomogeneousPoolContainer cannot be detached on cloning #2 !");
}
throw Exception("An HomogeneousPoolContainer cannot be detached on cloning #2 !");
}
+void HomogeneousPoolContainer::assignPG(const PlayGround *pg)
+{
+ _pg.takeRef(pg);
+}
+
void HomogeneousPoolContainer::dettachOnCloning() const
{
_isAttachedOnCloning=true;
void HomogeneousPoolContainer::dettachOnCloning() const
{
_isAttachedOnCloning=true;
@@
-62,3
+67,10
@@
HomogeneousPoolContainer::HomogeneousPoolContainer()
HomogeneousPoolContainer::~HomogeneousPoolContainer()
{
}
HomogeneousPoolContainer::~HomogeneousPoolContainer()
{
}
+
+const PlayGround *HomogeneousPoolContainer::getPG() const
+{
+ if(_pg.isNull())
+ throw Exception("HomogeneousPoolContainer::getPG : PlayGround is nullptr !");
+ return _pg;
+}