COPASI API
4.40.278
|
#include <CFlags.h>
Public Types | |
typedef std::bitset< static_cast< size_t >Enum::__SIZE) > | bitset |
Public Member Functions | |
CFlags () | |
CFlags (const bitset &flags) | |
CFlags (const CFlags &src) | |
CFlags (const Enum &flag) | |
CFlags (const std::string &str) | |
template<typename AType > | |
std::vector< AType > | getAnnotations (const CEnumAnnotation< AType, Enum > &annotation, const CFlags &filter=All) const |
bool | isSet (const Enum &flag) const |
operator bitset () | |
operator bool () const | |
bool | operator!= (const CFlags< Enum > &rhs) const |
CFlags & | operator&= (const CFlags &flags) |
CFlags & | operator&= (const Enum &flag) |
bool | operator== (const CFlags< Enum > &rhs) const |
CFlags & | operator^= (const CFlags &flags) |
CFlags & | operator^= (const Enum &flag) |
CFlags & | operator|= (const CFlags &flags) |
CFlags & | operator|= (const Enum &flag) |
~CFlags () | |
Static Public Attributes | |
static const CFlags | All |
static const CFlags | None |
typedef std::bitset< static_cast< size_t >Enum::__SIZE) > CFlags< Enum >::bitset |
Default constructor
Referenced by CFlags< Enum >::operator&=(), CFlags< Enum >::operator^=(), and CFlags< Enum >::operator|=().
Copy constructor
const | CFlags & src |
Enum constructor
const | Enum & flag |
Bitset constructor
const | bitset & flags |
String constructor
const | std::string & str |
|
inline |
Create the subset of the provided annotations for the flags which are set
const | CEnumAnnotation< AType, Enum > & annotation |
const | CFlags & filter (Default: All) |
Referenced by CValidity::getIssueMessages().
|
inline |
Check whether a the given flag is set
const | Enum & flag |
Referenced by CMathDependencyNode::buildUpdateSequence(), SBMLUnitSupport::checkElementUnits(), CValidity::getHighestSeverity(), CValidity::getIssueMessages(), CDataObject::hasFlag(), SBMLUnitSupport::importUnitsFromSBMLDocument(), CCopasiParameter::isBasic(), CCopasiParameter::isEditable(), CTotalNumberReference::isPrerequisiteForContext(), CDependentNumberReference::isPrerequisiteForContext(), CMathObject::isPrerequisiteForContext(), CCopasiParameter::isUnsupported(), CMathDependencyNodeIterator::next(), CNodeContextIterator< Node, Context >::next(), CValidity::remove(), and CStochasticRungeKuttaRI5::stateChange().
|
inline |
Cast to bool
References CFlags< Enum >::None, and CFlags< Enum >::operator!=().
Inequality comparison operator
const | CFlags< Enum > & rhs |
Referenced by CFlags< Enum >::operator bool().
Bitwise AND assignment operator
const | CFlags & flags |
Referenced by CFlags< Enum >::operator&=().
Bitwise AND assignment operator
const | Enum & flag |
References CFlags< Enum >::CFlags(), and CFlags< Enum >::operator&=().
Equality comparison operator
const | CFlags< Enum > & rhs |
References operator==().
Bitwise XOR assignment operator
const | CFlags & flags |
Referenced by CFlags< Enum >::operator^=().
Bitwise XOR assignment operator
const | Enum & flag |
References CFlags< Enum >::CFlags(), and CFlags< Enum >::operator^=().
Bitwise OR assignment operator
const | CFlags & flags |
Referenced by CFlags< Enum >::operator|=().
Bitwise OR assignment operator
const | Enum & flag |
References CFlags< Enum >::CFlags(), and CFlags< Enum >::operator|=().
Static member where all flags are set
Referenced by CReaction::compile(), CExpression::compile(), CReaction::compileFunctionParameters(), CEvaluationTree::compileNodes(), CEvaluationTree::parse(), CModelEntity::setExpression(), CUnitDefinition::setExpression(), CModelEntity::setInitialExpression(), CModelEntity::setUnitExpression(), and CEvaluationTree::updateTree().
Static member where no flag is set
Referenced by CFlags< Enum >::operator bool().