atlas::util::Topology class

Base classes

class Bitflags
Convenience class to modify and interpret bitflags.

Public types

enum (anonymous) { NONE = 0, GHOST = (1 << 1), PERIODIC = (1 << 2), BC = (1 << 3), WEST = (1 << 4), EAST = (1 << 5), NORTH = (1 << 6), SOUTH = (1 << 7), PATCH = (1 << 8), POLE = (1 << 9), LAND = (1 << 10), WATER = (1 << 11), INVALID = (1 << 12) }

Public static functions

static void reset(int& flags, int bit = 0)
static void set(int& flags, int bit)
static void unset(int& flags, int bit)
static void toggle(int& flags, int bit)
static auto check(int flags, int bits) -> bool
static auto check_all(int flags, int bits) -> bool
static auto check_any(int flags, int bits) -> bool
static auto bitstr(int flags) -> std::string
static auto view(int& flags) -> auto
Create convenience accessor to modify flags.
static auto view(const int& flags) -> auto
Create convenience accessor to modify flags.

Function documentation

static void atlas::util::Topology::reset(int& flags, int bit = 0)

static void atlas::util::Topology::set(int& flags, int bit)

static void atlas::util::Topology::unset(int& flags, int bit)

static void atlas::util::Topology::toggle(int& flags, int bit)

static bool atlas::util::Topology::check(int flags, int bits)

static bool atlas::util::Topology::check_all(int flags, int bits)

static bool atlas::util::Topology::check_any(int flags, int bits)

static std::string atlas::util::Topology::bitstr(int flags)

static auto atlas::util::Topology::view(int& flags)

Create convenience accessor to modify flags.

static auto atlas::util::Topology::view(const int& flags)

Create convenience accessor to modify flags.