COPASI API  4.16.103
Public Member Functions | Public Attributes | Friends | List of all members
CMath::CAllocationStack::CAllocation Class Reference

#include <CMathEnum.h>

Collaboration diagram for CMath::CAllocationStack::CAllocation:
Collaboration graph
[legend]

Public Member Functions

 CAllocation ()
 
 CAllocation (const CAllocation &src)
 
CAllocationoperator+= (const CAllocation &rhs)
 
CAllocationoperator= (const CAllocation &rhs)
 
 ~CAllocation ()
 

Public Attributes

size_t nDiscontinuous
 
std::vector< size_t > nRootsPerDiscontinuity
 
size_t nTotalRoots
 

Friends

std::ostream & operator<< (std::ostream &os, const CAllocation &s)
 

Detailed Description

Definition at line 271 of file CMathEnum.h.

Constructor & Destructor Documentation

CMath::CAllocationStack::CAllocation::CAllocation ( )

Definition at line 99 of file CMathEnum.cpp.

99  :
100  nDiscontinuous(0),
101  nTotalRoots(0),
103 {}
std::vector< size_t > nRootsPerDiscontinuity
Definition: CMathEnum.h:290
CMath::CAllocationStack::CAllocation::CAllocation ( const CAllocation src)

Definition at line 105 of file CMathEnum.cpp.

105  :
106  nDiscontinuous(src.nDiscontinuous),
107  nTotalRoots(src.nTotalRoots),
108  nRootsPerDiscontinuity(src.nRootsPerDiscontinuity)
109 {}
std::vector< size_t > nRootsPerDiscontinuity
Definition: CMathEnum.h:290
CMath::CAllocationStack::CAllocation::~CAllocation ( )

Definition at line 111 of file CMathEnum.cpp.

112 {}

Member Function Documentation

CMath::CAllocationStack::CAllocation & CMath::CAllocationStack::CAllocation::operator+= ( const CAllocation rhs)

Definition at line 125 of file CMathEnum.cpp.

References nDiscontinuous, nRootsPerDiscontinuity, and nTotalRoots.

126 {
127  nDiscontinuous += rhs.nDiscontinuous;
128  nTotalRoots += rhs.nTotalRoots;
130  rhs.nRootsPerDiscontinuity.begin(),
131  rhs.nRootsPerDiscontinuity.end());
132 
133  return *this;
134 }
std::vector< size_t > nRootsPerDiscontinuity
Definition: CMathEnum.h:290
CMath::CAllocationStack::CAllocation & CMath::CAllocationStack::CAllocation::operator= ( const CAllocation rhs)

Definition at line 115 of file CMathEnum.cpp.

References nDiscontinuous, nRootsPerDiscontinuity, and nTotalRoots.

116 {
117  nDiscontinuous = rhs.nDiscontinuous;
118  nTotalRoots = rhs.nTotalRoots;
119  nRootsPerDiscontinuity = rhs.nRootsPerDiscontinuity;
120 
121  return *this;
122 }
std::vector< size_t > nRootsPerDiscontinuity
Definition: CMathEnum.h:290

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CAllocation s 
)
friend

Definition at line 200 of file CMathEnum.cpp.

201 {
202  os << "Discontinuities: " << s.nDiscontinuous;
203  return os;
204 }

Member Data Documentation

size_t CMath::CAllocationStack::CAllocation::nDiscontinuous

Definition at line 286 of file CMathEnum.h.

Referenced by operator+=(), operator<<(), and operator=().

std::vector< size_t > CMath::CAllocationStack::CAllocation::nRootsPerDiscontinuity

Definition at line 290 of file CMathEnum.h.

Referenced by operator+=(), and operator=().

size_t CMath::CAllocationStack::CAllocation::nTotalRoots

Definition at line 288 of file CMathEnum.h.

Referenced by operator+=(), and operator=().


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