COPASI API  4.16.103
Public Member Functions | Private Attributes | List of all members
CMathFlags< Enum > Class Template Reference

#include <CMathEnum.h>

Inheritance diagram for CMathFlags< Enum >:
Inheritance graph
[legend]

Public Member Functions

 CMathFlags ()
 
 CMathFlags (const CMathFlags &src)
 
 CMathFlags (const Enum &flag)
 
 CMathFlags (const int &flag)
 
 operator int () const
 
Enum operator& (const Enum &flag) const
 
CMathFlags operator& (const CMathFlags &mask) const
 
CMathFlags operator& (const int &mask) const
 
CMathFlagsoperator= (const CMathFlags &rhs)
 
CMathFlags operator| (const Enum &flag) const
 
CMathFlags operator| (const CMathFlags &other) const
 
CMathFlagsoperator|= (const CMathFlags &other)
 
 ~CMathFlags ()
 

Private Attributes

int mFlags
 

Detailed Description

template<class Enum>
class CMathFlags< Enum >

Definition at line 16 of file CMathEnum.h.

Constructor & Destructor Documentation

template<class Enum>
CMathFlags< Enum >::CMathFlags ( )
inline

Definition at line 19 of file CMathEnum.h.

19  :
20  mFlags(0)
21  {}
int mFlags
Definition: CMathEnum.h:80
template<class Enum>
CMathFlags< Enum >::CMathFlags ( const CMathFlags< Enum > &  src)
inline

Definition at line 23 of file CMathEnum.h.

23  :
24  mFlags(src.mFlags)
25  {}
int mFlags
Definition: CMathEnum.h:80
template<class Enum>
CMathFlags< Enum >::CMathFlags ( const Enum &  flag)
inline

Definition at line 27 of file CMathEnum.h.

27  :
28  mFlags((int) flag)
29  {}
long int flag
Definition: f2c.h:52
int mFlags
Definition: CMathEnum.h:80
template<class Enum>
CMathFlags< Enum >::CMathFlags ( const int &  flag)
inline

Definition at line 31 of file CMathEnum.h.

31  :
32  mFlags(flag)
33  {}
long int flag
Definition: f2c.h:52
int mFlags
Definition: CMathEnum.h:80
template<class Enum>
CMathFlags< Enum >::~CMathFlags ( )
inline

Definition at line 35 of file CMathEnum.h.

35 {}

Member Function Documentation

template<class Enum>
CMathFlags< Enum >::operator int ( ) const
inline

Definition at line 37 of file CMathEnum.h.

38  {
39  return mFlags;
40  }
int mFlags
Definition: CMathEnum.h:80
template<class Enum>
Enum CMathFlags< Enum >::operator& ( const Enum &  flag) const
inline

Definition at line 42 of file CMathEnum.h.

43  {
44  return (Enum)(mFlags & flag);
45  }
long int flag
Definition: f2c.h:52
int mFlags
Definition: CMathEnum.h:80
template<class Enum>
CMathFlags CMathFlags< Enum >::operator& ( const CMathFlags< Enum > &  mask) const
inline

Definition at line 47 of file CMathEnum.h.

48  {
49  return (mFlags & mask);
50  }
int mFlags
Definition: CMathEnum.h:80
template<class Enum>
CMathFlags CMathFlags< Enum >::operator& ( const int &  mask) const
inline

Definition at line 52 of file CMathEnum.h.

53  {
54  return (mFlags & mask);
55  }
int mFlags
Definition: CMathEnum.h:80
template<class Enum>
CMathFlags& CMathFlags< Enum >::operator= ( const CMathFlags< Enum > &  rhs)
inline

Definition at line 57 of file CMathEnum.h.

58  {
59  mFlags = rhs.mFlags;
60  return *this;
61  }
int mFlags
Definition: CMathEnum.h:80
template<class Enum>
CMathFlags CMathFlags< Enum >::operator| ( const Enum &  flag) const
inline

Definition at line 63 of file CMathEnum.h.

64  {
65  return (mFlags | flag);
66  }
long int flag
Definition: f2c.h:52
int mFlags
Definition: CMathEnum.h:80
template<class Enum>
CMathFlags CMathFlags< Enum >::operator| ( const CMathFlags< Enum > &  other) const
inline

Definition at line 68 of file CMathEnum.h.

69  {
70  return (mFlags | other);
71  }
int mFlags
Definition: CMathEnum.h:80
template<class Enum>
CMathFlags& CMathFlags< Enum >::operator|= ( const CMathFlags< Enum > &  other)
inline

Definition at line 73 of file CMathEnum.h.

74  {
75  mFlags |= other.mFlags;
76  return *this;
77  }
int mFlags
Definition: CMathEnum.h:80

Member Data Documentation

template<class Enum>
int CMathFlags< Enum >::mFlags
private

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