// File generated by CPPExt (Value) // Copyright (C) 1991,1995 by // // MATRA DATAVISION, FRANCE // // This software is furnished in accordance with the terms and conditions // of the contract and with the inclusion of the above copyright notice. // This software or any other copy thereof may not be provided or otherwise // be made available to any other person. No title to an ownership of the // software is hereby transferred. // // At the termination of the contract, the software and all copies of this // software must be deleted. #ifndef _NMTDS_IndexRange_HeaderFile #define _NMTDS_IndexRange_HeaderFile #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif class NMTDS_IndexRange { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } // Methods PUBLIC // Standard_EXPORT NMTDS_IndexRange(); Standard_EXPORT void SetFirst(const Standard_Integer aFirst) ; Standard_EXPORT void SetLast(const Standard_Integer aLast) ; Standard_EXPORT Standard_Integer First() const; Standard_EXPORT Standard_Integer Last() const; Standard_EXPORT Standard_Boolean IsInRange(const Standard_Integer aIndex) const; protected: // Methods PROTECTED // // Fields PROTECTED // Standard_Integer myFirst; Standard_Integer myLast; private: // Methods PRIVATE // // Fields PRIVATE // }; // other Inline functions and methods (like "C++: function call" methods) // #endif