AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
SizePolicies.hpp File Reference

Size policies for SLAM. More...

#include "axom/core/Macros.hpp"
#include "axom/slic.hpp"

Classes

struct  axom::slam::policies::RuntimeSize< IntType >
 A policy class for the size of a set whose value can be set at runtime. More...
 
struct  axom::slam::policies::DynamicRuntimeSize< IntType >
 A policy class for the size of a set that can be modified at runtime. More...
 
struct  axom::slam::policies::CompileTimeSize< IntType, INT_VAL >
 A policy class for a compile-time known set size. More...
 
struct  axom::slam::policies::ZeroSize< IntType >
 A policy class for an empty set (no size) More...
 

Namespaces

 axom
 
 axom::slam
 
 axom::slam::policies
 

Detailed Description

Size policies for SLAM.

Size policies are meant to represent the size of a SLAM entity (e.g. the size of a set). A valid size policy must support the following interface:

  • [required]
  • DEFAULT_VALUE is a public static constant of type IntType
  • size() : IntType – returns the underlying integer size
  • empty() : bool – returns whether the size is zero
  • isValid() : bool – indicates whether the Size policy of the set is valid
  • [optional]
    • operator(): IntType – alternate accessor for the size value