Difference between revisions of "Template:Data types"

From blackwiki
Jump to navigation Jump to search
imported>Uzume
(/doc)
 
(38 intermediate revisions by 25 users not shown)
Line 2: Line 2:
 
| name      = Data types
 
| name      = Data types
 
| title    = [[Data type]]s
 
| title    = [[Data type]]s
 +
| state = {{{state|autocollapse}}}
 
| bodyclass = hlist
 
| bodyclass = hlist
  
| group1 = Uninterpreted
+
| group1 = [[Units of information|Uninterpreted]]
 
| list1  =  
 
| list1  =  
 
*[[Bit]]
 
*[[Bit]]
Line 11: Line 12:
 
*[[Ternary numeral system#Tryte|Tryte]]
 
*[[Ternary numeral system#Tryte|Tryte]]
 
*[[Word (computer architecture)|Word]]
 
*[[Word (computer architecture)|Word]]
 +
*[[Bit array]]
  
 
| group2 = Numeric
 
| group2 = Numeric
 
| list2  =  
 
| list2  =  
 +
*[[Arbitrary-precision arithmetic|Arbitrary-precision or bignum]]
 +
*[[complex data type|Complex]]
 +
*[[Decimal data type|Decimal]]
 +
*[[Fixed-point arithmetic|Fixed point]]
 +
*[[Floating-point arithmetic|Floating point]]
 +
**[[Double-precision floating-point format|Double precision]]
 +
**[[Extended precision]]
 +
**[[Long double]]
 +
**[[Octuple-precision floating-point format|Octuple precision]]
 +
**[[Quadruple-precision floating-point format|Quadruple precision]]
 +
**[[Single-precision floating-point format|Single precision]]
 +
**Reduced precision
 +
***[[Minifloat]]
 +
***[[Half-precision floating-point format|Half precision]]
 +
***[[bfloat16 floating-point format|bfloat16]]
 
*[[integer (computer science)|Integer]]
 
*[[integer (computer science)|Integer]]
 
**[[signedness]]
 
**[[signedness]]
*[[Fixed-point arithmetic|Fixed-point]]
+
*[[Interval_arithmetic#Implementations|Interval]]
*[[floating point|Floating-point]]
 
 
*[[Rational data type|Rational]]
 
*[[Rational data type|Rational]]
*[[complex data type|Complex]]
 
*[[Arbitrary-precision arithmetic|Bignum]]
 
*[[interval arithmetic|Interval]]
 
*[[Decimal data type|Decimal]]
 
  
| group3 = [[plain text|Text]]
+
| group3 = [[Pointer (computer programming)|Pointer]]
 
| list3  =  
 
| list3  =  
*[[Character (computing)|Character]]
 
*[[string (computer science)|String]]
 
**[[Null-terminated string|null-terminated]]
 
 
| group4 = [[Pointer (computer programming)|Pointer]]
 
| list4  =
 
 
*[[memory address|Address]]
 
*[[memory address|Address]]
 
**[[physical address|physical]]
 
**[[physical address|physical]]
 
**[[virtual address space|virtual]]
 
**[[virtual address space|virtual]]
 
*[[reference (computer science)|Reference]]
 
*[[reference (computer science)|Reference]]
 +
 +
| group4 = [[plain text|Text]]
 +
| list4  =
 +
*[[Character (computing)|Character]]
 +
*[[string (computer science)|String]]
 +
**[[Null-terminated string|null-terminated]]
  
 
| group5 = [[Composite data type|Composite]]
 
| group5 = [[Composite data type|Composite]]
Line 44: Line 56:
 
*[[Associative array]]
 
*[[Associative array]]
 
*[[class (computer programming)|Class]]
 
*[[class (computer programming)|Class]]
*[[list (computing)|List]]
+
*[[Dependent type|Dependent]]
 +
*[[Intuitionistic type theory#Equality type|Equality]]
 +
*[[Inductive type|Inductive]]
 +
*[[Intersection type|Intersection]]
 +
*[[List (abstract data type)|List]]
 
*[[object (computer science)|Object]]
 
*[[object (computer science)|Object]]
 +
**[[metaobject]]
 
*[[Option type]]
 
*[[Option type]]
 
*[[Product type|Product]]<!--since we have both union and tagged union listed here-->
 
*[[Product type|Product]]<!--since we have both union and tagged union listed here-->
*[[record (computer science)|Record]]
+
*[[Record (computer science)|Record or Struct]]
*[[set (computer science)|Set]]
+
*[[Refinement type|Refinement]]
*[[Union (computer science)|Union]]
+
*[[Set (abstract data type)|Set]]
 +
*[[Union type|Union]]
 
**[[Tagged union|tagged]]
 
**[[Tagged union|tagged]]
  
Line 57: Line 75:
 
*[[Boolean data type|Boolean]]
 
*[[Boolean data type|Boolean]]
 
*[[Bottom type]]
 
*[[Bottom type]]
*[[container (data structure)|Collection]]
+
*[[Container (abstract data type)|Collection]]
 
*[[Enumerated type]]
 
*[[Enumerated type]]
 
*[[exception handling|Exception]]
 
*[[exception handling|Exception]]
Line 70: Line 88:
 
*[[void type|Void]]
 
*[[void type|Void]]
  
| group7 = Related topics
+
| group7 = Related<br />topics
 
| list7  =  
 
| list7  =  
 
*[[Abstract data type]]
 
*[[Abstract data type]]
 
*[[Data structure]]
 
*[[Data structure]]
 +
*[[Generic programming|Generic]]
 +
*[[Kind (type theory)|Kind]]
 +
**[[metaclass]]<!-- These last two should be listed under "composite" somehow, but that would need two rows there, one for concepts, and one for instances of composite types, YMMV -->
 +
*[[Object type (object-oriented programming)|Object type]]
 +
*[[Parametric polymorphism]]
 +
*[[Primitive data type]]
 
*[[Protocol (object-oriented programming)|Protocol]]
 
*[[Protocol (object-oriented programming)|Protocol]]
**[[Interface (computing)#Software interfaces in object-oriented languages|Interface]]
+
**[[Interface (computing)#Software interfaces in object-oriented languages|interface]]
*[[Kind (type theory)|Kind]]<!-- These last two should be listed under "composite" somehow, but that would need two rows there, one for concepts, and one for instances of composite types, YMMV -->
+
*[[Subtyping]]
*[[Primitive data type]]
 
*[[subtype polymorphism|Subtyping]]
 
*[[template (programming)|Template]]
 
 
*[[Type constructor]]
 
*[[Type constructor]]
 
*[[Type conversion]]
 
*[[Type conversion]]
*[[Parametric polymorphism]]
+
*[[Type system]]
 
+
*[[Type theory]]
| below =
+
*[[Variable (computer science)|Variable]]
 
 
 
 
}}<noinclude>
 
[[Category:Computer science navigational boxes]]
 
[[bn:টেমপ্লেট:Data types]]
 
[[el:Πρότυπο:Τύποι δεδομένων]]
 
[[ru:Шаблон:Типы данных]]
 
[[vi:Bản mẫu:Các kiểu dữ liệu]]
 
[[zh:Template:数据类型]]
 
</noinclude><!--
 
 
 
Some of many special data types are listed below. These are best accessed through the parent articles, e.g., [[double precision]] from [[floating point]], etc.  Please do not add them to the template without good reason. Use {{:Category:Data types}} instead.
 
 
 
{{flatlist|
 
*[[signed byte]]
 
*[[unsigned byte]]
 
*[[short integer]]
 
*[[long integer]]
 
*[[quad integer]]
 
}}
 
 
 
Already covered by {{Floating-point}}:{{flatlist|
 
*[[half precision]]
 
*[[single precision]]
 
*[[double precision]]
 
*[[quadruple precision]]
 
}}
 
 
 
Specific representations of the abstract "character" type:{{flatlist|
 
*[[ASCII]]
 
*[[Unicode]]
 
*[[wide char]]
 
}}
 
 
 
{{flatlist|
 
*[[opaque pointer]]
 
}}
 
 
 
{{flatlist|
 
*[[function type]]
 
*[[procedural parameter]]
 
}}
 
 
 
These are mathematical concepts, not NOT data types:{{flatlist|
 
*[[complex number]]
 
*[[rational number]]
 
*[[interval (mathematics)]]
 
*[[matrix (mathematics)]]
 
*[[vector (mathematics)]]
 
*[[tuple]]
 
}}
 
 
 
These are data STRUCTURES, NOT data TYPES:{{flatlist|
 
*[[tree (data structure)|tree]]
 
*[[graph (data structure)|graph]]
 
*[[hash table]]
 
*[[linked list]]
 
*...
 
}}
 
  
-->
+
}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 16:59, 28 May 2020

Template documentation[view] [edit] [history] [purge]

This template generates a navigation box for data types.

Usage

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Data types|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Data types|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Data types|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.

Examples

Some of many special data types are listed below. These are best accessed through the parent articles, e.g., double precision from floating point, etc. Please do not add them to the template without good reason. Use Category:Data types instead.

Specific representations of the abstract integer type:

Already covered by {{Floating-point}}: Specific representations of the abstract floating-point number or numeric type:

Specific representations of the abstract "character" type:

Specific representations of the abstract "pointer" type:

Specific representations of the abstract executable "subroutine"/"function"/"procedure" type:

These are mathematical concepts, not NOT data types:

These are data STRUCTURES, NOT data TYPES:

See also