/[escript]/branches/arrexp_2137_win/escript/src/DataAbstract.h
ViewVC logotype

Diff of /branches/arrexp_2137_win/escript/src/DataAbstract.h

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

revision 2211 by jfenwick, Fri Jan 9 01:28:32 2009 UTC revision 2212 by jfenwick, Wed Jan 14 00:15:00 2009 UTC
# Line 63  class DataAbstract : public REFCOUNT_BAS Line 63  class DataAbstract : public REFCOUNT_BAS
63    typedef DataTypes::ValueType ValueType;    typedef DataTypes::ValueType ValueType;
64    typedef DataTypes::ShapeType ShapeType;    typedef DataTypes::ShapeType ShapeType;
65    
66       /**
67       \brief Return shared pointer managing this object.
68    
69       If there is not already a shared pointer managing this object then create one.
70       Once a shared pointer is created for an object, the deallocation of the object
71       must be handled by shared_ptr.
72    
73       \warning So, do not call this on an automatic object.
74       Do not call this in a method where you do not pass the shared_pointer out and
75       you need the object to outlast the method.
76    
77       Note: This is _not_ equivalent to weak_ptr::lock.
78    
79       */
80     ESCRIPT_DLL_API     ESCRIPT_DLL_API
81     DataAbstract_ptr getPtr();     DataAbstract_ptr getPtr();
82     ESCRIPT_DLL_API     ESCRIPT_DLL_API
83     const_DataAbstract_ptr getPtr() const;     const_DataAbstract_ptr getPtr() const;
84    
85    
86    
87    /**    /**
88       \brief       \brief
89       Constructor for DataAbstract.       Constructor for DataAbstract.
# Line 433  class DataAbstract : public REFCOUNT_BAS Line 449  class DataAbstract : public REFCOUNT_BAS
449    getNoValues() const;    getNoValues() const;
450    
451    
   
 //  /**  
 //      \brief get a reference to the beginning of a data point  
 //  */  
 //   ESCRIPT_DLL_API  
 //   DataTypes::ValueType::const_reference  
 //   getDataAtOffset(DataTypes::ValueType::size_type i) const;  
 //  
 //  
 //   ESCRIPT_DLL_API  
 //   DataTypes::ValueType::reference  
 //   getDataAtOffset(DataTypes::ValueType::size_type i);  
   
   
 //  /**  
 //  \brief Provide access to underlying storage. Internal use only!  
 //  */  
 //   ESCRIPT_DLL_API  
 //   virtual DataTypes::ValueType&  
 //   getVector()=0;  
 //  
 //   ESCRIPT_DLL_API  
 //   virtual const DataTypes::ValueType&  
 //   getVector() const=0;  
   
452    ESCRIPT_DLL_API    ESCRIPT_DLL_API
453    bool isLazy() const;  // a test to determine if this object is an instance of DataLazy    bool isLazy() const;  // a test to determine if this object is an instance of DataLazy
454    
# Line 490  class DataAbstract : public REFCOUNT_BAS Line 481  class DataAbstract : public REFCOUNT_BAS
481    
482   protected:   protected:
483    
484       /**
485       \brief Returns true if this object is not shared.
486       For internal use only. - It may not be particularly fast
487       */
488       ESCRIPT_DLL_API
489       bool checkNoSharing() const;
490    
491   private:   private:
492    

Legend:
Removed from v.2211  
changed lines
  Added in v.2212

  ViewVC Help
Powered by ViewVC 1.1.26