MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
MathParser::MathArg_t Class Referenceabstract

#include <mathp.h>

Inheritance diagram for MathParser::MathArg_t:
Collaboration diagram for MathParser::MathArg_t:

Public Member Functions

 MathArg_t (unsigned f=AF_NONE)
 
virtual ~MathArg_t (void)
 
void SetFlag (const MathParser::ArgFlag &f)
 
void ClearFlag (const MathParser::ArgFlag &f)
 
bool IsFlag (const MathParser::ArgFlag f) const
 
unsigned GetFlags (void) const
 
virtual ArgType Type (void) const =0
 
virtual MathArg_tCopy (void) const =0
 

Private Attributes

unsigned m_flags
 

Detailed Description

Definition at line 88 of file mathp.h.

Constructor & Destructor Documentation

MathParser::MathArg_t::MathArg_t ( unsigned  f = AF_NONE)
inline

Definition at line 93 of file mathp.h.

93 : m_flags(f) {};
unsigned m_flags
Definition: mathp.h:90
virtual MathParser::MathArg_t::~MathArg_t ( void  )
inlinevirtual

Definition at line 94 of file mathp.h.

References NO_OP.

94 { NO_OP; };
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

void MathParser::MathArg_t::ClearFlag ( const MathParser::ArgFlag f)
inline

Definition at line 97 of file mathp.h.

References m_flags.

97 { m_flags &= ~unsigned(f); };
unsigned m_flags
Definition: mathp.h:90
virtual MathArg_t* MathParser::MathArg_t::Copy ( void  ) const
pure virtual
unsigned MathParser::MathArg_t::GetFlags ( void  ) const
inline

Definition at line 99 of file mathp.h.

References m_flags.

Referenced by MathParser::MathArgPriv_t< T, TT >::Copy().

99 { return m_flags; };
unsigned m_flags
Definition: mathp.h:90
bool MathParser::MathArg_t::IsFlag ( const MathParser::ArgFlag  f) const
inline

Definition at line 98 of file mathp.h.

References m_flags.

Referenced by drive(), model_elem(), model_node(), and unit_convert().

98 { return (m_flags & unsigned(f)) == unsigned(f); };
unsigned m_flags
Definition: mathp.h:90
void MathParser::MathArg_t::SetFlag ( const MathParser::ArgFlag f)
inline

Definition at line 96 of file mathp.h.

References m_flags.

96 { m_flags |= unsigned(f); };
unsigned m_flags
Definition: mathp.h:90
virtual ArgType MathParser::MathArg_t::Type ( void  ) const
pure virtual

Member Data Documentation

unsigned MathParser::MathArg_t::m_flags
private

Definition at line 90 of file mathp.h.

Referenced by ClearFlag(), GetFlags(), IsFlag(), and SetFlag().


The documentation for this class was generated from the following file: