diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/IObjectContainer.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'common/IObjectContainer.h')
| -rw-r--r-- | common/IObjectContainer.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/common/IObjectContainer.h b/common/IObjectContainer.h new file mode 100644 index 0000000..105d9b0 --- /dev/null +++ b/common/IObjectContainer.h @@ -0,0 +1,32 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: IObjectContainer.h: interface for the ObjectContainer class. +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef IOBJECTCONTAINER_H +#define IOBJECTCONTAINER_H + +#pragma once + +class IObjectContainer +{ +public: + virtual ~IObjectContainer() {}; + + virtual void Init() = 0; + + virtual bool Add(void * newObject) = 0; + virtual bool Remove(void * object) = 0; + virtual void Clear(bool freeElementsMemory) = 0; + + virtual void * GetFirst() = 0; + virtual void * GetNext() = 0; + + virtual int CountElements() = 0;; + virtual bool Contains(void * object) = 0; + virtual bool IsEmpty() = 0; +}; + +#endif // !defined IOBJECTCONTAINER_H |