71 |
if (!arg.initialized) throw LinuxSamplerException("optional variable not initialized"); |
if (!arg.initialized) throw LinuxSamplerException("optional variable not initialized"); |
72 |
this->data = arg.data; |
this->data = arg.data; |
73 |
initialized = true; |
initialized = true; |
74 |
|
return *this; |
75 |
} |
} |
76 |
|
|
77 |
optional& operator =(const T& arg) { |
optional& operator =(const T& arg) { |
78 |
this->data = arg; |
this->data = arg; |
79 |
initialized = true; |
initialized = true; |
80 |
|
return *this; |
81 |
} |
} |
82 |
|
|
83 |
const T& operator *() const throw (LinuxSamplerException) { return get(); } |
const T& operator *() const throw (LinuxSamplerException) { return get(); } |