stack 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Filename: stack
  2. // Created by: drose (12May00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. // This file, and all the other files in this directory, aren't
  19. // intended to be compiled--they're just parsed by CPPParser (and
  20. // interrogate) in lieu of the actual system headers, to generate the
  21. // interrogate database.
  22. #ifndef STACK_H
  23. #define STACK_H
  24. #include <stdtypedefs.h>
  25. template<class element>
  26. class stack {
  27. public:
  28. typedef element value_type;
  29. typedef element *pointer;
  30. typedef const element *const_pointer;
  31. typedef element &reference;
  32. typedef const element &const_reference;
  33. class iterator;
  34. class const_iterator;
  35. class reverse_iterator;
  36. class const_reverse_iterator;
  37. typedef size_t size_type;
  38. class difference_type;
  39. };
  40. #endif