Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

ElementGroup.h

Go to the documentation of this file.
00001 // Copyright (C) 2004 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __ELEMENT_GROUP_H
00005 #define __ELEMENT_GROUP_H
00006 
00007 #include <dolfin/ElementIterator.h>
00008 #include <dolfin/NewArray.h>
00009 
00010 namespace dolfin
00011 {
00012 
00013   class Element;
00014 
00017 
00018   class ElementGroup
00019   {
00020   public:
00021     
00023     ElementGroup();
00024 
00026     ~ElementGroup();
00027 
00029     void add(Element& element);
00030 
00032     unsigned int size() const;
00033     
00034     // Friends
00035     friend class ElementIterator::ElementGroupElementIterator;
00036     friend class ElementIterator::ElementGroupListElementIterator;
00037 
00038   private:
00039 
00040     // The list of elements
00041     NewArray<Element*> elements;
00042     
00043   };
00044 
00045 }
00046 
00047 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.