[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] r4809 - in /trunk/getfem/src: getfem/getfem_context.h g
From: |
andriy . andreykiv |
Subject: |
[Getfem-commits] r4809 - in /trunk/getfem/src: getfem/getfem_context.h getfem_context.cc |
Date: |
Tue, 11 Nov 2014 09:56:41 -0000 |
Author: andrico
Date: Tue Nov 11 10:56:41 2014
New Revision: 4809
URL: http://svn.gna.org/viewcvs/getfem?rev=4809&view=rev
Log:
assignment operator for context_dependencies
Modified:
trunk/getfem/src/getfem/getfem_context.h
trunk/getfem/src/getfem_context.cc
Modified: trunk/getfem/src/getfem/getfem_context.h
URL:
http://svn.gna.org/viewcvs/getfem/trunk/getfem/src/getfem/getfem_context.h?rev=4809&r1=4808&r2=4809&view=diff
==============================================================================
--- trunk/getfem/src/getfem/getfem_context.h (original)
+++ trunk/getfem/src/getfem/getfem_context.h Tue Nov 11 10:56:41 2014
@@ -130,7 +130,7 @@
virtual ~context_dependencies();
context_dependencies() : state(CONTEXT_NORMAL), touched( ) {touched =
false;}
context_dependencies(const context_dependencies& cd);
-
+ context_dependencies& operator=(const context_dependencies& cd);
};
} /* end of namespace getfem. */
Modified: trunk/getfem/src/getfem_context.cc
URL:
http://svn.gna.org/viewcvs/getfem/trunk/getfem/src/getfem_context.cc?rev=4809&r1=4808&r2=4809&view=diff
==============================================================================
--- trunk/getfem/src/getfem_context.cc (original)
+++ trunk/getfem/src/getfem_context.cc Tue Nov 11 10:56:41 2014
@@ -32,6 +32,15 @@
dependent(cd.dependent),
locks_( )
{}
+
+ context_dependencies& context_dependencies::operator=(const
context_dependencies& cd)
+ {
+ state = cd.state;
+ touched = static_cast<bool>(cd.touched);
+ dependencies = cd.dependencies;
+ dependent = cd.dependent;
+ return *this;
+ }
void context_dependencies::sup_dependent_
(const context_dependencies &cd) const {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Getfem-commits] r4809 - in /trunk/getfem/src: getfem/getfem_context.h getfem_context.cc,
andriy . andreykiv <=