/[escript]/trunk/escript/src/AbstractDomain.cpp
ViewVC logotype

Diff of /trunk/escript/src/AbstractDomain.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1811 by ksteube, Thu Sep 25 23:11:13 2008 UTC revision 1872 by jfenwick, Mon Oct 13 00:18:55 2008 UTC
# Line 21  using namespace std; Line 21  using namespace std;
21    
22  namespace escript {  namespace escript {
23    
24    
25    Domain_ptr AbstractDomain::getPtr()
26    {
27      if (_internal_weak_this.expired())
28      {
29        return Domain_ptr(this);    
30      }
31      else
32      {
33        return shared_from_this();
34      }
35    }
36    
37    const_Domain_ptr AbstractDomain::getPtr() const
38    {
39      if (_internal_weak_this.expired())
40      {
41        return const_Domain_ptr(this);
42      }
43      else
44      {
45        return shared_from_this();
46      }
47    }
48    
49  AbstractDomain::AbstractDomain() {  AbstractDomain::AbstractDomain() {
50  }  }
51    

Legend:
Removed from v.1811  
changed lines
  Added in v.1872

  ViewVC Help
Powered by ViewVC 1.1.26