The OpenD Programming Language

pythonBufferFormat

Returns python format (type) string. For example, "O" for PyObject and "B" for ubyte.

template pythonBufferFormat (
T
) {
static if(is(T == struct) && __traits(identifier, A) == "PyObject")
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(is(Unqual!T == short))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(is(Unqual!T == ushort))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(is(Unqual!T == int))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(is(Unqual!T == uint))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(is(Unqual!T == float))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(is(Unqual!T == double))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(is(Unqual!T == long))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(is(Unqual!T == ulong))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(is(Unqual!T == ubyte))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(is(Unqual!T == byte))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(is(Unqual!T == char))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(is(Unqual!T == char*))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(!(is(Unqual!T == char*)))
static if(is(Unqual!T == void*))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(!(is(Unqual!T == char*)))
static if(!(is(Unqual!T == void*)))
static if(is(Unqual!T == bool))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(!(is(Unqual!T == char*)))
static if(!(is(Unqual!T == void*)))
static if(!(is(Unqual!T == bool)))
static if(is(Unqual!T == wchar*))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(!(is(Unqual!T == char*)))
static if(!(is(Unqual!T == void*)))
static if(!(is(Unqual!T == bool)))
static if(!(is(Unqual!T == wchar*)))
static if(is(Unqual!T == wchar))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(!(is(Unqual!T == char*)))
static if(!(is(Unqual!T == void*)))
static if(!(is(Unqual!T == bool)))
static if(!(is(Unqual!T == wchar*)))
static if(!(is(Unqual!T == wchar)))
static if(is(cpp_long))
static if(is(Unqual!T == cpp_long))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(!(is(Unqual!T == char*)))
static if(!(is(Unqual!T == void*)))
static if(!(is(Unqual!T == bool)))
static if(!(is(Unqual!T == wchar*)))
static if(!(is(Unqual!T == wchar)))
static if(is(cpp_long))
static if(!(is(Unqual!T == cpp_long)))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(!(is(Unqual!T == char*)))
static if(!(is(Unqual!T == void*)))
static if(!(is(Unqual!T == bool)))
static if(!(is(Unqual!T == wchar*)))
static if(!(is(Unqual!T == wchar)))
static if(!(is(cpp_long)))
static if(is(cpp_ulong))
static if(is(Unqual!T == cpp_ulong))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(!(is(Unqual!T == char*)))
static if(!(is(Unqual!T == void*)))
static if(!(is(Unqual!T == bool)))
static if(!(is(Unqual!T == wchar*)))
static if(!(is(Unqual!T == wchar)))
static if(!(is(cpp_long)))
static if(is(cpp_ulong))
static if(!(is(Unqual!T == cpp_ulong)))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(!(is(Unqual!T == char*)))
static if(!(is(Unqual!T == void*)))
static if(!(is(Unqual!T == bool)))
static if(!(is(Unqual!T == wchar*)))
static if(!(is(Unqual!T == wchar)))
static if(!(is(cpp_long)))
static if(!(is(cpp_ulong)))
static if(is(c_long_double))
static if(is(Unqual!T == c_long_double))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(!(is(Unqual!T == char*)))
static if(!(is(Unqual!T == void*)))
static if(!(is(Unqual!T == bool)))
static if(!(is(Unqual!T == wchar*)))
static if(!(is(Unqual!T == wchar)))
static if(!(is(cpp_long)))
static if(!(is(cpp_ulong)))
static if(is(c_long_double))
static if(!(is(Unqual!T == c_long_double)))
enum pythonBufferFormat;
static if(!(is(T == struct) && __traits(identifier, A) == "PyObject"))
static if(!(is(Unqual!T == short)))
static if(!(is(Unqual!T == ushort)))
static if(!(is(Unqual!T == int)))
static if(!(is(Unqual!T == uint)))
static if(!(is(Unqual!T == float)))
static if(!(is(Unqual!T == double)))
static if(!(is(Unqual!T == long)))
static if(!(is(Unqual!T == ulong)))
static if(!(is(Unqual!T == ubyte)))
static if(!(is(Unqual!T == byte)))
static if(!(is(Unqual!T == char)))
static if(!(is(Unqual!T == char*)))
static if(!(is(Unqual!T == void*)))
static if(!(is(Unqual!T == bool)))
static if(!(is(Unqual!T == wchar*)))
static if(!(is(Unqual!T == wchar)))
static if(!(is(cpp_long)))
static if(!(is(cpp_ulong)))
static if(!(is(c_long_double)))
enum pythonBufferFormat;
}

Meta