/[marvin]/marvin/src/libsip/type/type.cc
ViewVC logotype

Diff of /marvin/src/libsip/type/type.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by exos, Thu Sep 11 03:39:25 2003 UTC revision 1.6 by exos, Thu Sep 11 22:45:21 2003 UTC
# Line 41  Line 41 
41  #include <iostream>  #include <iostream>
42  #include "type.hh"  #include "type.hh"
43    
 Type::Type()  
 {  
   _signal = new Signal();  
 }  
   
 Type::Type( double *data )  
 {  
   _signal = new Signal(data);  
 }  
   
44  Type::Type( double *data, int length )  Type::Type( double *data, int length )
45  {  {
46    _signal = new Signal(data, length);    _signal = new Signal(data, length);
# Line 66  double Type::operator [] ( int val ) con Line 56  double Type::operator [] ( int val ) con
56    return _signal->get_data()[val];    return _signal->get_data()[val];
57  }  }
58    
   
 void Type::operator = ( double *src )  
 {  
   _signal->set_data(src);  
 }  
   
   
59  void Type::print(std::ostream &str) const  void Type::print(std::ostream &str) const
60  {  {
61    for (unsigned i = 0; i < this->length(); i++)    for (unsigned i = 0; i < this->length(); i++)

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26