COPASI API  4.16.103
Classes | Functions
CVector.h File Reference
#include <algorithm>
#include <iostream>
#include <string.h>
#include <limits>
#include "copasi.h"
#include "utilities/CCopasiMessage.h"
Include dependency graph for CVector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CVector< CType >
 
class  CVectorCore< CType >
 
class  CVectorCore< CType >
 

Functions

template<typename CType >
std::ostream & operator<< (std::ostream &os, const CVectorCore< CType > &A)
 

Function Documentation

template<typename CType >
std::ostream & operator<< ( std::ostream &  os,
const CVectorCore< CType > &  A 
)

Output stream operator

Parameters
ostream& os
constCVector< CType > & A
Returns
ostream & os

Definition at line 380 of file CVector.h.

381 {
382  os << "(\t";
383 
384  if (A.mSize)
385  {
386  size_t i;
387  CType * tmp = A.mVector;
388  os << *(tmp++);
389 
390  for (i = 1; i < A.mSize; i++)
391  os << "\t" << *(tmp++);
392  }
393 
394  os << "\t)";
395  return os;
396 }
CType * mVector
Definition: CVector.h:49
size_t mSize
Definition: CVector.h:44