COPASI API  4.16.103
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CBitPatternTree Class Reference

#include <CBitPatternTree.h>

Collaboration diagram for CBitPatternTree:
Collaboration graph
[legend]

Public Member Functions

 CBitPatternTree (const std::vector< CStepMatrixColumn * > &patterns)
 
const CBitPatternTreeNodegetRoot () const
 
bool isExtremeRay (const CZeroSet &ray) const
 
size_t size () const
 
 ~CBitPatternTree ()
 

Private Member Functions

 CBitPatternTree ()
 

Private Attributes

CBitPatternTreeNodempRoot
 

Detailed Description

Definition at line 20 of file CBitPatternTree.h.

Constructor & Destructor Documentation

CBitPatternTree::CBitPatternTree ( )
private

Definition at line 18 of file CBitPatternTree.cpp.

18  :
19  mpRoot(NULL)
20 {}
CBitPatternTreeNode * mpRoot
CBitPatternTree::CBitPatternTree ( const std::vector< CStepMatrixColumn * > &  patterns)

Definition at line 22 of file CBitPatternTree.cpp.

References mpRoot.

22  :
23  mpRoot(NULL)
24 {
25  if (!patterns.empty())
26  {
27  mpRoot = new CBitPatternTreeNode(0, patterns);
28  }
29 }
CBitPatternTreeNode * mpRoot
CBitPatternTree::~CBitPatternTree ( )

Definition at line 31 of file CBitPatternTree.cpp.

References mpRoot, and pdelete.

32 {
33  pdelete(mpRoot);
34 }
#define pdelete(p)
Definition: copasi.h:215
CBitPatternTreeNode * mpRoot

Member Function Documentation

const CBitPatternTreeNode * CBitPatternTree::getRoot ( ) const

Definition at line 36 of file CBitPatternTree.cpp.

References mpRoot.

Referenced by CBitPatternTreeMethod::calculate().

37 {
38  return mpRoot;
39 }
CBitPatternTreeNode * mpRoot
bool CBitPatternTree::isExtremeRay ( const CZeroSet ray) const

Definition at line 41 of file CBitPatternTree.cpp.

References CBitPatternTreeNode::hasSuperset(), and mpRoot.

Referenced by CBitPatternTreeMethod::combine(), and CBitPatternTreeMethod::findRemoveInvalidColumns().

42 {
43  if (mpRoot != NULL)
44  {
45  return !mpRoot->hasSuperset(set);
46  }
47 
48  return true;
49 }
bool hasSuperset(const CZeroSet &set) const
CBitPatternTreeNode * mpRoot
size_t CBitPatternTree::size ( ) const

Definition at line 51 of file CBitPatternTree.cpp.

References CBitPatternTreeNode::getChildrenCount(), and mpRoot.

Referenced by CBitPatternTreeMethod::calculate().

52 {
53  if (mpRoot != NULL)
54  {
55  return mpRoot->getChildrenCount();
56  }
57 
58  return 0;
59 }
CBitPatternTreeNode * mpRoot
size_t getChildrenCount() const

Member Data Documentation

CBitPatternTreeNode* CBitPatternTree::mpRoot
private

Definition at line 39 of file CBitPatternTree.h.

Referenced by CBitPatternTree(), getRoot(), isExtremeRay(), size(), and ~CBitPatternTree().


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