3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2010 Christian Schoenebeck * |
* Copyright (C) 2005 - 2019 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
92 |
return *this; |
return *this; |
93 |
} |
} |
94 |
|
|
95 |
|
bool operator ==(const optional& o) const { |
96 |
|
if (!initialized || !o.initialized) |
97 |
|
return initialized == o.initialized; |
98 |
|
return data == o.data; |
99 |
|
} |
100 |
|
|
101 |
|
bool operator !=(const optional& o) const { |
102 |
|
return !(*this == o); |
103 |
|
} |
104 |
|
|
105 |
const T& operator *() const throw (Exception) { return get(); } |
const T& operator *() const throw (Exception) { return get(); } |
106 |
T& operator *() throw (Exception) { return get(); } |
T& operator *() throw (Exception) { return get(); } |
107 |
|
|