Liebe Gitlab-Nutzerin, lieber Gitlab-Nutzer,
es ist nun möglich sich mittels des ZIH-Logins/LDAP an unserem Dienst anzumelden. Die Konten der externen Nutzer:innen sind über den Reiter "Standard" erreichbar.
Die Administratoren


Dear Gitlab user,
it is now possible to log in to our service using the ZIH login/LDAP. The accounts of external users can be accessed via the "Standard" tab.
The administrators

VertexVector.h 1.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef AMDIS_VERTEXVECTOR_H
#define AMDIS_VERTEXVECTOR_H

#include "DOFVector.h"

namespace AMDiS {

  class VertexVector : public DOFVectorDOF
  {
  public:
    class Iterator : public DOFIterator<DegreeOfFreedom> {
    public:
      Iterator(VertexVector *c, DOFIteratorType type)
	: DOFIterator<DegreeOfFreedom>(const_cast<DOFAdmin*>(c->getAdmin()), 
				       dynamic_cast<DOFIndexed<DegreeOfFreedom>*>(c), 
				       type)
Thomas Witkowski's avatar
Thomas Witkowski committed
17
      {}   
18 19
    };

20
    VertexVector(const DOFAdmin *admin_, std::string name_);
21 22 23

    ~VertexVector();

Thomas Witkowski's avatar
Thomas Witkowski committed
24 25 26 27
    const DOFAdmin *getAdmin() 
    { 
      return admin; 
    }
28

Thomas Witkowski's avatar
Thomas Witkowski committed
29 30 31
    void resize(int size) 
    {
      int oldSize = static_cast<int>(vec.size());
32
      vec.resize(size);
Thomas Witkowski's avatar
Thomas Witkowski committed
33
      for (int i = oldSize; i < size; i++)
34
	vec[i] = i;
Thomas Witkowski's avatar
Thomas Witkowski committed
35
    }
36 37 38

    void set(DegreeOfFreedom val);

Thomas Witkowski's avatar
Thomas Witkowski committed
39 40
    void compressDOFContainer(int size, std::vector<DegreeOfFreedom> &newDOF) 
    {
41 42
      DOFContainer::compressDOFContainer(size, newDOF);
      int totalSize = getAdmin()->getSize();
Thomas Witkowski's avatar
Thomas Witkowski committed
43
      for(int i = size; i < totalSize; i++)
44
	vec[i] = i;
Thomas Witkowski's avatar
Thomas Witkowski committed
45
    }
46 47 48 49 50 51 52 53

  protected:
    const DOFAdmin *admin;
  };

}

#endif