Resolve/C++ Catalog
AT/Fixed_Length_Bit_String/To_Integer.h
Copyright © 2010, Reusable Software Research Group, The Ohio State University

//  /*-------------------------------------------------------------------*\
//  |   Abstract Template : Fixed_Length_Bit_String_To_Integer
//  \*-------------------------------------------------------------------*/

#ifndef AT_FIXED_LENGTH_BIT_STRING_TO_INTEGER
#define AT_FIXED_LENGTH_BIT_STRING_TO_INTEGER 1

///------------------------------------------------------------------------
/// Global Context --------------------------------------------------------
///------------------------------------------------------------------------

#include "AT/Fixed_Length_Bit_String/Kernel.h"

///------------------------------------------------------------------------
/// Interface -------------------------------------------------------------
///------------------------------------------------------------------------

abstract_template <
	Integer_constant String_Length
        /*!
	    satisfies restriction
	        String_Length > 0
        !*/
    >
class Fixed_Length_Bit_String_To_Integer :
    extends
	abstract_instance Fixed_Length_Bit_String_Kernel <String_Length>
{
public:

    function Integer To_Integer () is_abstract;
    /*!
	requires
	    String_Length <= BITS_FOR_INTEGER
	ensures
	    To_Integer = SIMPLE_BINARY_DECODING (self)
    !*/

};

#endif // AT_FIXED_LENGTH_BIT_STRING_TO_INTEGER

Last modified: Wed Aug 27 14:43:39 EDT 2008