2 #ifndef CCorrelationBit_H
3 #define CCorrelationBit_H
40 #error This is a C++ include file and cannot be used from plain C
50 #include <almaEnumerations_IFC.h>
54 namespace CorrelationBitMod
59 const char *
const revision =
"-1";
60 const int version = 1;
71 typedef CorrelationBit &CorrelationBit_out;
75 namespace CorrelationBitMod {
117 static unsigned int size() ;
125 static std::string
name(
const CorrelationBitMod::CorrelationBit&
e);
130 static std::string
toString(
const CorrelationBitMod::CorrelationBit& f) {
return name(f); }
137 static const std::vector<std::string>
names();
148 static CorrelationBitMod::CorrelationBit
literal(
const std::string&
name);
155 static CorrelationBitMod::CorrelationBit
from_int(
unsigned int i);
165 static std::string
badInt(
unsigned int i) ;
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static unsigned int size()
Return the number of enumerators declared in CorrelationBitMod::CorrelationBit.
static CorrelationBitMod::CorrelationBit from_int(unsigned int i)
std::ostream & operator<<(std::ostream &out, const CorrelationBit &value)
static const std::string & sBITS_3x3
static std::string badString(const std::string &name)
static std::string toString(const CorrelationBitMod::CorrelationBit &f)
Equivalent to the name method.
A helper class for the enumeration CorrelationBit.
static const std::string & sBITS_2x2
Enumerators as strings.
static CorrelationBitMod::CorrelationBit newCorrelationBit(const std::string &name)
Create a CorrelationBit enumeration object by specifying its name.
static std::string name(const CorrelationBitMod::CorrelationBit &e)
Returns an enumerator as a string.
static CorrelationBitMod::CorrelationBit literal(const std::string &name)
static int version()
Return the major version number as an int.
static std::string revision()
Return the revision as a string.
const Double e
e and functions thereof:
static const std::string & sBITS_4x4
static std::string badInt(unsigned int i)
CCorrelationBit & operator=(const CCorrelationBit &)
std::istream & operator>>(std::istream &in, CorrelationBit &value)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.