/[libvob]/libvob/include/vob/util/ObjectStorer.hxx
ViewVC logotype

Diff of /libvob/include/vob/util/ObjectStorer.hxx

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

revision 1.2 by tjl, Wed Mar 12 13:37:57 2003 UTC revision 1.3 by tjl, Mon Jun 9 15:04:36 2003 UTC
# Line 103  namespace Vob { Line 103  namespace Vob {
103              }              }
104              return vec[p];              return vec[p];
105          }          }
106            
107            /** Get the pointer corresponding to the given id.
108             */
109            T *get_allowNull(int p) {
110                if(p == 0) return 0;
111                if(p < 0 || (unsigned)p >= vec.size()) {
112                    cerr << name<<
113                        ": Trying to get element past end "<<p<<"\n";
114                    return 0;
115                }
116                return vec[p];
117            }
118    
119    
120          /** Alias to get().          /** Alias to get().
121           */           */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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