COPASI API  4.16.103
Public Member Functions | Private Member Functions | List of all members
CKeyFactory::CDecisionVector Class Reference
Inheritance diagram for CKeyFactory::CDecisionVector:
Inheritance graph
[legend]
Collaboration diagram for CKeyFactory::CDecisionVector:
Collaboration graph
[legend]

Public Member Functions

 CDecisionVector (const std::string &str)
 
const bool & operator() (const unsigned char &c) const
 
virtual ~CDecisionVector ()
 

Private Member Functions

 CDecisionVector ()
 
- Private Member Functions inherited from CVector< bool >
 CVector (size_t size=0)
 
 CVector (const CVector< bool > &src)
 
CVector< bool > & operator= (const CVectorCore< bool > &rhs)
 
CVector< bool > & operator= (const CVector< bool > &rhs)
 
CVector< bool > & operator= (const bool &value)
 
void resize (size_t size, const bool &copy=false)
 
 ~CVector ()
 
void copy (const CVectorCore< bool > &rhs)
 
- Private Member Functions inherited from CVectorCore< bool >
bool applyPivot (const CVectorCore< size_t > &pivot)
 
bool * array ()
 
const bool * array () const
 
 CVectorCore (const size_t &size=0, bool *vector=NULL)
 
 CVectorCore (const CVectorCore< bool > &src)
 
bool & operator() (const size_t &row)
 
const bool & operator() (const size_t &row) const
 
CVectorCore< bool > & operator= (const bool &value)
 
bool & operator[] (const size_t &row)
 
const bool & operator[] (const size_t &row) const
 
size_t size () const
 
 ~CVectorCore ()
 

Additional Inherited Members

- Private Types inherited from CVectorCore< bool >
typedef bool elementType
 
- Private Attributes inherited from CVectorCore< bool >
size_t mSize
 
bool * mVector
 

Detailed Description

Definition at line 56 of file CKeyFactory.h.

Constructor & Destructor Documentation

CKeyFactory::CDecisionVector::CDecisionVector ( )
private

Definition at line 54 of file CKeyFactory.cpp.

54  :
56 {}
CKeyFactory::CDecisionVector::CDecisionVector ( const std::string &  str)

Definition at line 58 of file CKeyFactory.cpp.

References CVectorCore< bool >::size().

58  :
59  CVector< bool >(256)
60 {
61  size_t i, imax;
62 
63  for (i = 0, imax = size(); i < imax; i++)
64  (*(CVector< bool > *) this)[i] = false;
65 
66  for (i = 0, imax = str.length(); i < imax; i++)
67  (*(CVector< bool > *) this)[(size_t) str[i]] = true;
68 }
size_t size() const
Definition: CVector.h:100
CKeyFactory::CDecisionVector::~CDecisionVector ( )
virtual

Definition at line 70 of file CKeyFactory.cpp.

70 {}

Member Function Documentation

const bool & CKeyFactory::CDecisionVector::operator() ( const unsigned char &  c) const

Definition at line 72 of file CKeyFactory.cpp.

73 {return (*(CVector< bool > *) this)[(size_t) c];}

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