Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C++ Class Library Definition - #ifndef __bag_h http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
#ifndef __BAG_H
#define __BAG_H

//
// This file contains proprietary information of Borland International.
// Copying or reproduction without prior written approval is prohibited.
//
// Copyright (c) 1990
// Borland International
// 1800 Scotts Valley Dr.
// Scotts Valley, CA 95066
// (408) 438-8400
//

// Contents ----------------------------------------------------------------
//
//      Bag
//      Bag::Bag
//
// Description
//
//  Defines the class Bag.  A bag is a collection of objects which
//      can contain more than one of the same object.
//
// End ---------------------------------------------------------------------

// Interface Dependencies ---------------------------------------------------

#ifndef __IOSTREAM_H
#include <iostream.h>
#define __IOSTREAM_H
#endif

#ifndef __CLSTYPES_H
#include "clstypes.h"
#endif

#ifndef __RESOURCE_H
#include "resource.h"
#endif

#ifndef __OBJECT_H
#include "object.h"
#endif

#ifndef __HASHTBL_H
#include "hashtbl.h"
#endif

// End Interface Dependencies ------------------------------------------------


// Class //

class Bag:  public HashTable
{
public:
            Bag( sizeType bagSize = DEFAULT_BAG_SIZE ) : HashTable( bagSize ) {}

    virtual ~Bag();

    virtual classType       isA() const;
    virtual char           *nameOf() const;
};



// Description -------------------------------------------------------------
//
//  Defines the class Bag.  A bag is a collection of objects which
//      can contain more than one of the same object.
//
// Constructors
//
//      Bag( sizeType )
//
//      Constructs a bag of the given size.
//
// Public Members
//
//  isA
//
//  Inherited from Object.
//
//  nameOf
//
//  Inherited from Object.
//
// Inherited Members
//
//      add
//
//      Inherited from HashTable
//
//      destroy
//
//      Inherited from HashTable
//
//  detach
//
//      Inherited from HashTable
//
//      hasMember
//
//      Inherited from HashTable
//
//  isEmpty
//
//      Inherited from HashTable
//
//      firstThat
//
//      Inherited from HashTable
//
//      lastThat
//
//      Inherited from HashTable
//
//  hashValue
//
//  Inherited from Object.
//
//  operator ==
//
//  Inherited from Object.
//
//  printOn
//
//  Inherited from Object.
//


// End ---------------------------------------------------------------------


#endif // ifndef __BAG_H //

See Also: hashtbl.h object.h resource.h clstypes.h Bag

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson