.. _f-customcontainerpythoncpython-39-x8664-linux-gnu: module ``examples.custom_container_python`` =========================================== Short summary +++++++++++++ module ``cpyquickhelper.examples.custom_container_python`` Implements a custom container which may contain everything. :githublink:`%|py|0` Classes +++++++ +----------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +========================================================================================+===================================================================================================================+ | :class:`ContainerType ` | Type enumeration, similar to dtype. Members: VOID : untyped pointer BYTE : byte pointer FLOAT : float pointer ... | +----------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :class:`PyCContainer ` | Custom container, may contain almost everything. | +----------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ Properties ++++++++++ +-------------------------------------------------------------------------------------+------------------------------------------------------+ | property | truncated documentation | +=====================================================================================+======================================================+ | :meth:`dtype ` | Returns the type of every elements of the container. | +-------------------------------------------------------------------------------------+------------------------------------------------------+ | :meth:`name ` | name(self: handle) -> str | +-------------------------------------------------------------------------------------+------------------------------------------------------+ | :meth:`size ` | Returns the size in bytes of the container. | +-------------------------------------------------------------------------------------+------------------------------------------------------+ | :meth:`value ` | | +-------------------------------------------------------------------------------------+------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: cpyquickhelper.examples.custom_container_python :members: :special-members: __init__ :show-inheritance: .. _custom_container_python.cpython-39-x86_64-linux-gnu_literal: Code ---- .. literalinclude:: custom_container_python.cpython-39-x86_64-linux-gnu.so