- Timestamp:
- Feb 25, 2006, 8:39:36 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mesh/element.h
r211 r218 12 12 class RpElement { 13 13 public: 14 // constructors15 RpElement()16 {17 // default18 m_nodes.resize(10);19 };20 14 21 RpElement(int numNodes, int id) 22 { 23 m_id = id; 24 if (m_nodes.capacity() < (unsigned)numNodes) 25 m_nodes.resize(numNodes); 26 }; 15 // constructor, set number of nodes and/or element id 16 RpElement(int numNodes, int id=0); 27 17 28 18 // instantiate from byte stream: … … 42 32 void id(int id) { m_id = id; }; 43 33 34 int numNodes() { return m_nodes.size(); }; 44 35 45 36 // serialize … … 49 40 RP_ERROR deserialize(const char* buf); 50 41 42 // serialize RpElement object into xml text 43 void xmlString(std::string& xmlText); 51 44 void print(); 52 45 … … 56 49 // void xmlPut(); 57 50 // void xmlGet(); 51 52 protected: 53 // constructors, default to 8 nodes 54 RpElement(); 58 55 59 56 private:
Note: See TracChangeset
for help on using the changeset viewer.