/[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.6 by exos, Thu Sep 11 22:45:21 2003 UTC revision 1.7 by hannibal, Sat Sep 13 18:14:20 2003 UTC
# Line 41  Line 41 
41  #include <iostream>  #include <iostream>
42  #include "type.hh"  #include "type.hh"
43    
44    Type::Type()
45    {
46      _signal = new Signal();
47    }
48    
49    Type::Type( double *data )
50    {
51      _signal = new Signal(data);
52    }
53    
54  Type::Type( double *data, int length )  Type::Type( double *data, int length )
55  {  {
56    _signal = new Signal(data, length);    _signal = new Signal(data, length);
# Line 56  double Type::operator [] ( int val ) con Line 66  double Type::operator [] ( int val ) con
66    return _signal->get_data()[val];    return _signal->get_data()[val];
67  }  }
68    
69    
70    void Type::operator = ( double *src )
71    {
72      _signal->set_data(src);
73    }
74    
75    
76  void Type::print(std::ostream &str) const  void Type::print(std::ostream &str) const
77  {  {
78    for (unsigned i = 0; i < this->length(); i++)    for (unsigned i = 0; i < this->length(); i++)

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

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