AMCAX Kernel 1.0.0.0
IndexDef.hpp File Reference

Defines index_t used in everywhere. More...

#include <cstddef>
Include dependency graph for IndexDef.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  AMCAX
 Namespace of all interface in the AMCAX kernel.
 
namespace  AMCAX::Meshing
 Namespace of all interface in the AMCAX Meshing module.
 

Typedefs

using AMCAX::Meshing::index_t = size_t
 Index unsed in mesh.
 

Functions

void AMCAX::Meshing::invalidate_idx (index_t &idx)
 Make an index invalid.
 
bool AMCAX::Meshing::is_valid_idx (index_t idx)
 Check if an index is valid.
 
template<typename integer_type >
bool AMCAX::Meshing::is_valid_idx (integer_type idx)
 Check if an index is valid.
 

Variables

constexpr index_t AMCAX::Meshing::InvalidIndex = index_t(-1)
 A value indicates invalid index. When index is unsigned type, -1 will be cast to the maximum unsigned value. More...
 
template<typename integer_type >
constexpr integer_type AMCAX::Meshing::AnyInvalidIndex = integer_type(-1)
 A value indicates invalid index. When index is integer type, -1 will be cast to the maximum unsigned value. More...
 

Detailed Description

Defines index_t used in everywhere.

This file is part of AMCAX kernel.