Changeset c6b849 in git


Ignore:
Timestamp:
Jun 5, 2009, 7:18:27 AM (14 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
85e8301c6c2971f2ff4fde7f029f56cd5042b206
Parents:
6dccbc5e8c728811407cb76468333f90ed59ee31
Message:
*motsak: copy


git-svn-id: file:///usr/local/Singular/svn/trunk@11881 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/intvec.h

    r6dccbc rc6b849  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: intvec.h,v 1.7 2009-05-15 13:20:05 motsak Exp $ */
     6/* $Id: intvec.h,v 1.8 2009-06-05 05:18:27 motsak Exp $ */
    77/*
    88* ABSTRACT: class intvec: lists/vectors of integers
     
    3131  intvec(int s, int e);
    3232  intvec(int r, int c, int init);
    33   intvec(intvec* iv)
     33  intvec(const intvec* iv)
    3434  {
     35    assume( iv != NULL );
    3536    row = iv->rows();
    3637    col = iv->cols();
     
    111112  }
    112113  void operator delete ( void* block )
    113   { //omfree( block ); 
     114  { //omfree( block );
    114115    omFreeBin((ADDRESS)block, intvec_bin);
    115116  }
     
    118119  inline int * ivGetVec() { return v; }
    119120};
    120 inline intvec * ivCopy(intvec * o)
     121inline intvec * ivCopy(const intvec * o)
    121122{
    122   intvec * iv=new intvec(o);
    123   return iv;
     123  if( o != NULL )
     124    return new intvec(o);
     125
     126  return NULL;
    124127}
    125128
Note: See TracChangeset for help on using the changeset viewer.