MFEM  v3.2
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Public Attributes | List of all members
mfem::Hashed2< Derived > Struct Template Reference

#include <hash.hpp>

Collaboration diagram for mfem::Hashed2< Derived >:
[legend]

Public Member Functions

 Hashed2 ()
 
 Hashed2 (int id)
 

Public Attributes

int id
 
int p1
 
int p2
 
Derived * next
 

Detailed Description

template<typename Derived>
struct mfem::Hashed2< Derived >

A concept for items that should be used in HashTable and be accessible by hashing two IDs.

NOTE: the CRTP pattern is needed for correct pointer arithmetic if the derived class uses multiple inheritance.

Definition at line 64 of file hash.hpp.

Constructor & Destructor Documentation

template<typename Derived>
mfem::Hashed2< Derived >::Hashed2 ( )
inline

Definition at line 70 of file hash.hpp.

template<typename Derived>
mfem::Hashed2< Derived >::Hashed2 ( int  id)
inline

Definition at line 71 of file hash.hpp.

Member Data Documentation

template<typename Derived>
int mfem::Hashed2< Derived >::id

Definition at line 66 of file hash.hpp.

template<typename Derived>
Derived* mfem::Hashed2< Derived >::next

Definition at line 68 of file hash.hpp.

template<typename Derived>
int mfem::Hashed2< Derived >::p1

Definition at line 67 of file hash.hpp.

template<typename Derived>
int mfem::Hashed2< Derived >::p2

Definition at line 67 of file hash.hpp.


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