/[escript]/trunk/dataexporter/src/NodeData.h
ViewVC logotype

Diff of /trunk/dataexporter/src/NodeData.h

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

revision 2879 by caltinay, Fri Jan 15 03:16:08 2010 UTC revision 2880 by caltinay, Thu Jan 28 01:21:30 2010 UTC
# Line 80  public: Line 80  public:
80      ESCRIPTEXPORT_DLL_API      ESCRIPTEXPORT_DLL_API
81      const IntVec& getNodeIDs() const { return nodeID; }      const IntVec& getNodeIDs() const { return nodeID; }
82    
     /// \brief Returns a node ID to index mapping for this mesh.  
     ESCRIPTEXPORT_DLL_API  
     IndexMap getIndexMap() const;  
   
83      /// \brief Returns the coordinates of the mesh nodes.      /// \brief Returns the coordinates of the mesh nodes.
84      ESCRIPTEXPORT_DLL_API      ESCRIPTEXPORT_DLL_API
85      const CoordArray& getCoords() const { return coords; }      const CoordArray& getCoords() const { return coords; }
# Line 108  protected: Line 104  protected:
104  };  };
105    
106    
 inline IndexMap NodeData::getIndexMap() const  
 {  
     IndexMap nodeID2idx;  
     int idx = 0;  
     IntVec::const_iterator idIt;  
     for (idIt = nodeID.begin(); idIt != nodeID.end(); idIt++, idx++)  
         nodeID2idx[*idIt] = idx;  
     return nodeID2idx;  
 }  
   
107  inline std::string NodeData::getFullSiloName() const  inline std::string NodeData::getFullSiloName() const
108  {  {
109      std::string result(siloPath);      std::string result(siloPath);

Legend:
Removed from v.2879  
changed lines
  Added in v.2880

  ViewVC Help
Powered by ViewVC 1.1.26