GADGET-4
idstorage.h File Reference

defines a class that we use to store and manipulate the particle IDs More...

#include <climits>

Go to the source code of this file.

Classes

struct  approxlen
 
struct  compactrank_t
 
class  MyIDStorage
 
class  MyHaloNrType
 

Macros

#define ID_MSB   ((MyIDType)(~((MyIDType)(~((MyIDType)0)) >> ((MyIDType)1))))
 
#define ID_MSK   ((MyIDType)(((MyIDType)(~((MyIDType)0)) >> ((MyIDType)1))))
 
#define HALONR_MAX   ((MyIDType)(((MyIDType)(~((MyIDType)0)) >> ((MyIDType)1))))
 
#define ALEN_MAX   1000000000.0
 
#define ALEN_MIN   10.0
 

Functions

bool operator< (const MyHaloNrType &left, const MyHaloNrType &right)
 
bool operator> (const MyHaloNrType &left, const MyHaloNrType &right)
 
bool operator!= (const MyHaloNrType &left, const MyHaloNrType &right)
 
bool operator== (const MyHaloNrType &left, const MyHaloNrType &right)
 

Detailed Description

defines a class that we use to store and manipulate the particle IDs

Definition in file idstorage.h.

Macro Definition Documentation

◆ ALEN_MAX

#define ALEN_MAX   1000000000.0

Definition at line 30 of file idstorage.h.

◆ ALEN_MIN

#define ALEN_MIN   10.0

Definition at line 31 of file idstorage.h.

◆ HALONR_MAX

#define HALONR_MAX   ((MyIDType)(((MyIDType)(~((MyIDType)0)) >> ((MyIDType)1))))

Definition at line 20 of file idstorage.h.

◆ ID_MSB

#define ID_MSB   ((MyIDType)(~((MyIDType)(~((MyIDType)0)) >> ((MyIDType)1))))

Definition at line 18 of file idstorage.h.

◆ ID_MSK

#define ID_MSK   ((MyIDType)(((MyIDType)(~((MyIDType)0)) >> ((MyIDType)1))))

Definition at line 19 of file idstorage.h.

Function Documentation

◆ operator!=()

bool operator!= ( const MyHaloNrType left,
const MyHaloNrType right 
)
inline

Definition at line 145 of file idstorage.h.

◆ operator<()

bool operator< ( const MyHaloNrType left,
const MyHaloNrType right 
)
inline

Definition at line 141 of file idstorage.h.

◆ operator==()

bool operator== ( const MyHaloNrType left,
const MyHaloNrType right 
)
inline

Definition at line 147 of file idstorage.h.

◆ operator>()

bool operator> ( const MyHaloNrType left,
const MyHaloNrType right 
)
inline

Definition at line 143 of file idstorage.h.