Skip to content
  • This project
    • Loading...
  • Sign in

Barry / rf-depot

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • rf-depot
  • sw
  • n64os20l
  • tools
  • audio
  • AudioEditor
  • GStack.h
  • root's avatar
    initial commit · bc83a1ad
    bc83a1ad
    root committed 2020-05-02 05:58:04 +0000
GStack.h 403 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#ifndef __GStack__
#define __GStack__

#include "AeTypes.h"


template <class T> class GStack
{
public:
                        GStack (int size);
    virtual		~GStack (void);

    void		Push (const T&);
    Boolean		Pop (T&);
    
    int			GetNum (void);

private:

    T *			fBase;
    T *			fTop;
    int			fSize;

#ifndef NDEBUG
public:
    static Boolean	Test (void);
#endif
};

#endif __GStack__