In computer science, a reference is a value that enables a program to directly access a particular data item, such as a variable or a record, in the computer's memory or in some other storage device. The reference is said to refer to the data item, and accessing that data is called dereferencing the reference. A reference is distinct from the data itself. Typically, a reference is the physical address of where the data is stored in memory or in the storage device.

PropertyValue
dbpprop:abstract
  • In computer science, a reference is a value that enables a program to directly access a particular data item, such as a variable or a record, in the computer's memory or in some other storage device. The reference is said to refer to the data item, and accessing that data is called dereferencing the reference. A reference is distinct from the data itself. Typically, a reference is the physical address of where the data is stored in memory or in the storage device. For this reason, a reference is often called a pointer or address, and is said to point to the data. However a reference may also be the offset (difference) between the datum's address and some fixed "base" address, or an index into an array. The concept of reference must not be confused with other values that uniquely identify the data item, but give access to it only through a non-trivial lookup operation in some table data structure. References are widely used in programming, especially to efficiently pass large or mutable data as arguments to procedures, or to share such data among various uses. In particular, a reference may point to a variable or record that contains references to other data. This idea is the basis of indirect addressing and of many linked data structures, such as linked lists. A reference may be compared to a street address, such as "12 Main Street" or "three houses down the road on the left side". Going to the building with that address is analogous to dereferencing the reference. The name "Bob and Joe's Car Shop" might be a unique identifier for the same building, but cannot be compared to a data reference, because finding the building with that name requires a non-trivial search or a lookup in some directory. A reference stored in a data record can be compared to a sign on that shop saying "For tire service please go to 20 Cross Street". Passing a reference to a subroutine, instead of the data, is like giving your friends the address of that shop, instead of taking Bob and Joe and all their tools to your friend's home.
  • Eine Referenz repräsentiert einen Verweis auf ein Objekt. Wie der Zeiger stellt eine Referenz damit einen Aliasnamen für eine Entität dar, d. h. eine Variable, die die Speicheradresse einer anderen Variablen enthält. Im Gegensatz zu expliziten Zeigern ist die Adresse selbst nicht mehr änderbar und verborgen, insbesondere sind Operationen auf der Adresse, die oft fehlerträchtig sind, nicht möglich. Referenzen werden häufig zur Parameterübergabe genutzt, wenn durch eine Unterfunktion die Werte eines Objektes dauerhaft geändert werden sollen, siehe auch Call by reference. In der Programmiersprache Java unterscheidet man zwischen starken und schwachen Referenzen. Da Objekte dort nicht explizit zerstört und an den verfügbaren Speicher zurückgegeben werden, übernimmt dies ein sogenannter Garbage-Collector (deutsch Müllabfuhr) implizit, also ohne dass der Programmierer etwas dafür tun muss. Ein Objekt, das nicht stark referenziert ist, kann vom Garbage-Collector vernichtet werden, auch wenn noch schwache Referenzen darauf existieren. Schwache Referenzen sind z. B. für die Implementierung von Puffern nützlich.
  • En programmation, une référence est une valeur qui permet l'accès en lecture et/ou écriture à une donnée située soit en mémoire principale soit ailleurs. Une référence n'est pas la donnée elle même mais seulement une information de localisation. La plupart des langages de programmation permettent l'utilisation de références, que ce soit de façon explicite ou implicite. Généralement, les références sont utilisables via des types de données disjoints du type de la donnée référencée (quand le langage dispose d'un système de typage). Le typage des références permet de manipuler les données référencées de manière abstraite tout en respectant leurs propres contraintes de type. Le type de référence le plus simple, mais aussi le moins encadré, est le pointeur. Il s'agit simplement d'une adresse mémoire. Les références sont souvent vues comme de simples noms identifiant une donnée. Plusieurs noms peuvent référencer la même donnée, ce qui peut provoquer des effets de bords indésirés. Le plus classique consistant à libérer l'objet sans invalider ses références, entraînant souvent lors de leur future utilisation une erreur de segmentation. De la même manière les références peuvent être supprimées, l'objet non référencé devient alors inaccessible (quel que soit son type). On parle alors de fuite de mémoire dans le cas où le langage n'offre pas un mécanisme de type ramasse-miettes. En conception de base de données, une référence est une contrainte statique qui assure qu'un attribut X d'une relation A référence (pointe vers) un attribut Y d'une relation B, ce qui revient à dire que X ne peut prendre une valeur V que si au moins un des attributs Y a pour valeur V. On appelle ça une contrainte de référence, et X est alors une clé étrangère dans la relation A.
  • 情報工学における参照(さんしょう、英: reference、リファレンス)は、他の場所にあるデータを指している情報を含む小さなオブジェクトであり、それ自身の中に(指している)データ自体を含まない。参照の指す値を取り出すことをデリファレンス (dereference)と呼ぶ。参照は様々なデータ構造を構成する基本要素であり、プログラム内の各部で情報をやり取りするための基本でもある。
  • En referanse er innen informatikk et lite objekt som inneholder informasjon som refererer til data et annet sted, i motsetning til at objektet inneholder dataene selv. Å aksessere data som en referanse refererer til kalles å dereferere referansen. Referanser brukes til å representere mange datastrukturer og for å utveksle informasjon mellom de forskjellige delene av et dataprogram.
  • Referencja w informatyce oznacza dane, które zawierają informację o położeniu innych danych. Określenie "X jest referencją do Y" oznacza, że na obiekcie X można wykonać każdą operację, którą potencjalnie można wykonać na obiekcie Y. W tym wypadku operacje na X w rzeczywistości są operacjami na Y. W odróżnieniu do wskaźnika, użycie referencji nie wymaga specjalnej składni. Referencje występują w większości języków programowania, jednak szczególne znaczenie mają w języku C++.
  • Em ciência da computação, uma referência é um objeto que contém informação que indica dados armazenados em algum outro local ao invés de conter o próprio dado. Acessar o valor referenciado pela referência chama-se "dereferenciar". Referências são fundamentais para construir várias estruturas de dados, e para transportar informação entre diferentes partes de um programa de computador. Genericamente, uma referência pode ser considerada como um pedaço de dado que permite a obtenção de outro pedaço de dado. Isso inclui uma chave primária de um banco de dados e as chaves de mapa (um vetor associativo chave → valor).
  • void square(int x, int& result) result = x*x; void main square(3, y);
  • Referenser är inom datavetenskap ett sätt att indirekt hänvisa till en variabel eller annat objekt i ett program. Referensen kan vara explicit (en pekare eller adress) eller implicit (någon mer transparent mekanism). På implementeringsnivå är det dock alltid fråga om en pekare eller ett index som adresserar objektets (variablens) minnesutymme. Precis som för många andra datalogi-termer, så kan nomenklaturen tyvärr vara något vacklande (på svenska såväl som på engelska).
  • Посилання — у звичайному вжитку в мережі Інтернет це виділений елемент гіпертексту, що дозволяє переміщення до іншої частини документа, а також процедура з'єднання з комп'ютерними системами, що зберігають гіпертекстові документи, на серверах мережі Інтернет, розміщених по всій території земної кулі. У індустрії комп'ютерного програмування лінком називають створення готової до виконання програми шляхом об'єднання (компоновки) окремо скомпільованих об'єктних програмних модулів. У деяких файлових системах — альтернативна назва файлу. Так, наприклад, у системі UNIX із файлом може бути пов'язано декілька імен. У галузі телекомунікацій, іноді вживається в значенні ланки зв'язку — засіб зв'язку між суміжними вузлами мережі.
dbpprop:hasPhotoCollection
dbpprop:otheruses4Property
  • Reference (C++)
  • a general notion of reference in computing
  • the more specific notion of reference used in C++
dbpprop:reference
dbpprop:wikiPageUsesTemplate
rdfs:comment
  • In computer science, a reference is a value that enables a program to directly access a particular data item, such as a variable or a record, in the computer's memory or in some other storage device. The reference is said to refer to the data item, and accessing that data is called dereferencing the reference. A reference is distinct from the data itself. Typically, a reference is the physical address of where the data is stored in memory or in the storage device.
  • Eine Referenz repräsentiert einen Verweis auf ein Objekt. Wie der Zeiger stellt eine Referenz damit einen Aliasnamen für eine Entität dar, d. h. eine Variable, die die Speicheradresse einer anderen Variablen enthält. Im Gegensatz zu expliziten Zeigern ist die Adresse selbst nicht mehr änderbar und verborgen, insbesondere sind Operationen auf der Adresse, die oft fehlerträchtig sind, nicht möglich.
  • En programmation, une référence est une valeur qui permet l'accès en lecture et/ou écriture à une donnée située soit en mémoire principale soit ailleurs. Une référence n'est pas la donnée elle même mais seulement une information de localisation. La plupart des langages de programmation permettent l'utilisation de références, que ce soit de façon explicite ou implicite.
  • En referanse er innen informatikk et lite objekt som inneholder informasjon som refererer til data et annet sted, i motsetning til at objektet inneholder dataene selv. Å aksessere data som en referanse refererer til kalles å dereferere referansen. Referanser brukes til å representere mange datastrukturer og for å utveksle informasjon mellom de forskjellige delene av et dataprogram.
  • Referencja w informatyce oznacza dane, które zawierają informację o położeniu innych danych. Określenie "X jest referencją do Y" oznacza, że na obiekcie X można wykonać każdą operację, którą potencjalnie można wykonać na obiekcie Y. W tym wypadku operacje na X w rzeczywistości są operacjami na Y. W odróżnieniu do wskaźnika, użycie referencji nie wymaga specjalnej składni.
  • Em ciência da computação, uma referência é um objeto que contém informação que indica dados armazenados em algum outro local ao invés de conter o próprio dado. Acessar o valor referenciado pela referência chama-se "dereferenciar". Referências são fundamentais para construir várias estruturas de dados, e para transportar informação entre diferentes partes de um programa de computador.
  • void square(int x, int& result) result = x*x; void main square(3, y);
  • Referenser är inom datavetenskap ett sätt att indirekt hänvisa till en variabel eller annat objekt i ett program. Referensen kan vara explicit (en pekare eller adress) eller implicit (någon mer transparent mekanism). På implementeringsnivå är det dock alltid fråga om en pekare eller ett index som adresserar objektets (variablens) minnesutymme. Precis som för många andra datalogi-termer, så kan nomenklaturen tyvärr vara något vacklande (på svenska såväl som på engelska).
rdfs:label
  • Reference (computer science)
  • Referenz (Programmierung)
  • Référence (informatique)
  • 参照 (情報工学)
  • Referanse (informatikk)
  • Referencja (informatyka)
  • Referência (ciência da computação)
  • Ссылка (программирование)
  • Referens (datateknik)
  • Посилання
owl:sameAs
skos:subject
foaf:page
is dbpprop:disambiguates of
is dbpprop:redirect of