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 - 2016 Christian Schoenebeck * |
* Copyright (C) 2005 - 2017 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 * |
648 |
} |
} |
649 |
} |
} |
650 |
|
|
651 |
inline int getID(const T* obj) const { |
inline pool_element_id_t getID(const T* obj) const { |
652 |
return pPool->getID(obj); |
return pPool->getID(obj); |
653 |
} |
} |
654 |
|
|
655 |
inline int getID(const Iterator& it) const { |
inline pool_element_id_t getID(const Iterator& it) const { |
656 |
return pPool->getID(&*it); |
return pPool->getID(&*it); |
657 |
} |
} |
658 |
|
|
790 |
/** |
/** |
791 |
* Overridden convenience method, behaves like the method above. |
* Overridden convenience method, behaves like the method above. |
792 |
*/ |
*/ |
793 |
int getID(const Iterator& it) const { |
pool_element_id_t getID(const Iterator& it) const { |
794 |
return getID(&*it); |
return getID(&*it); |
795 |
} |
} |
796 |
|
|