Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
780 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: IObjectContainer.h: interface for the ObjectContainer class.
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef IOBJECTCONTAINER_H
  8. #define IOBJECTCONTAINER_H
  9. #pragma once
  10. class IObjectContainer
  11. {
  12. public:
  13. virtual ~IObjectContainer() {};
  14. virtual void Init() = 0;
  15. virtual bool Add(void * newObject) = 0;
  16. virtual bool Remove(void * object) = 0;
  17. virtual void Clear(bool freeElementsMemory) = 0;
  18. virtual void * GetFirst() = 0;
  19. virtual void * GetNext() = 0;
  20. virtual int CountElements() = 0;;
  21. virtual bool Contains(void * object) = 0;
  22. virtual bool IsEmpty() = 0;
  23. };
  24. #endif // !defined IOBJECTCONTAINER_H