Back to index

salome-med  6.5.0
Public Member Functions
MEDMEM::MEDMEM_EXPORT< ARRAY_ELEMENT_TYPE, INTERLACE_TAG, GAUSS_TAG, CHECKING_POLICY >::myHashFn Class Reference

List of all members.

Public Member Functions

size_t operator() (const std::vector< int > &key) const

Detailed Description

template<class ARRAY_ELEMENT_TYPE, class INTERLACE_TAG, class GAUSS_TAG, class CHECKING_POLICY = IndexCheckPolicy>
class MEDMEM::MEDMEM_EXPORT< ARRAY_ELEMENT_TYPE, INTERLACE_TAG, GAUSS_TAG, CHECKING_POLICY >::myHashFn

Definition at line 56 of file MEDMEM_Connectivity.hxx.


Member Function Documentation

template<class ARRAY_ELEMENT_TYPE , class INTERLACE_TAG , class GAUSS_TAG , class CHECKING_POLICY = IndexCheckPolicy>
size_t MEDMEM::MEDMEM_EXPORT< ARRAY_ELEMENT_TYPE, INTERLACE_TAG, GAUSS_TAG, CHECKING_POLICY >::myHashFn::operator() ( const std::vector< int > &  key) const [inline]

Definition at line 59 of file MEDMEM_Connectivity.hxx.

    {
      size_t sum=0;
      for (int i=0; i<(int)key.size(); i++)
        //sum+=key[i]; -- KO for conn of edges of face [1,6,5,2] since 1+6==2+5
        sum+=key[i]*(i+key.size());
      return sum;
    }

The documentation for this class was generated from the following file: