/[svn]/linuxsampler/trunk/src/common/Pool.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/Pool.h

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

revision 3072 by schoenebeck, Thu Dec 15 12:47:45 2016 UTC revision 3073 by schoenebeck, Thu Jan 5 16:04:00 2017 UTC
# Line 3  Line 3 
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  *
# Line 648  class RTList : public RTListBase<T> { Line 648  class RTList : public RTListBase<T> {
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    
# Line 790  class Pool : public RTList<T> { Line 790  class Pool : public RTList<T> {
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    

Legend:
Removed from v.3072  
changed lines
  Added in v.3073

  ViewVC Help
Powered by ViewVC