To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Passive data structure

From Wikipedia, the free encyclopedia

In computer science and object-oriented programming, a passive data structure (PDS), also termed a plain old data structure or plain old data (POD), is a record, in contrast with objects. It is a data structure that is represented only as passive collections of field values (instance variables), without using object-oriented features.[1]

YouTube Encyclopedic

  • 1/3
    Views:
    1 125 949
    1 396 983
    4 874 817
  • Types of immune responses: Innate and adaptive, humoral vs. cell-mediated | NCLEX-RN | Khan Academy
  • Diffusion and osmosis | Membranes and transport | Biology | Khan Academy
  • British vs American | English Pronunciation Lesson

Transcription

In the last video, we talked a little bit about the immune system. In that video, we focused on the nonspecific or the innate immune system. So let me write that. And even in the nonspecific immune system, we subdivided that into kind of the first line barriers. And those were things like the skin, or the stomach acid, or the acidity of the oils on the outside of your skin. These are just natural barriers to not allowing things inside of your body, but then once they get in-- so you can almost imagine these were the first line of defense. And then you had your second line of defense, but these are still nonspecific-- and when we say nonspecific, it means that they don't necessarily know what type of virus, what type of protein, what type of bacteria. They just know that this thing looks shady. Let me eat it up. Let me kill it. Let me have an inflammatory response. So in there, we said, well, there's an inflammatory response, which I'm actually going to talk about after we do videos on the specific immune system. You have your inflammatory response, which really just gets things to where the action is at and then you also have your phagocytes, which are these cells that are engulfing things. And just so you know, all the phagocytes that we talked about in the last video, these are all instances of white blood cells or leukocytes. These phagocytes right here, these are all-- I talk about dendritic cells and macrophages and neutrophils. These were all white blood cells. These weren't all the kinds of white blood cells. We're about to talk about more-- and the other word for white blood cell is also leukocyte. So that is nonspecific. Well, one, it just doesn't let you in, but then when you're in, it says, hey, you're just shady. I'm going to eat you up. I have receptors. You have some double stranded DNA floating around. Only viruses have double strand DNA. I'm going to eat you up. I don't know what type of virus you are. I don't know if I've seen you before or not. That's why it's nonspecific. Now the really interesting thing about our immune system-- and this nonspecific, this exists across many, many, many species and types of organisms. But the specific is kind of a-- it's thought to be a newer adaptation. What I'm going to talk about is the specific immune system that's particular to humans. That's our other classification. Let me do it like that. So then you have your specific-- or you can imagine it's an adaptive immune system. You've probably heard of things like that. I have resistance to that bacteria or that virus. So this is adaptive. And it's really all based on having exposure to things. And within the specific immune system, we talked a little-- when we talked about the antigen presenting molecules that phagocytes do-- that plays a role in this. We're going to go into more detail, but I don't want to confuse you. But the main actors here are called lymphocytes, not to be confused with leukocytes-- because they still are leukocytes. So let me write this down. These are specific. Phagocytes, for the most part, are nonspecific, but both of these are white blood cells. Lymphocytes are another type of white blood cell or leukocyte. Don't want to confuse you with this convoluted diagram, but I just want to make the terminology clear. When someone talks about a white blood cell, they're really just talking about a set of cells that when people first tried to separate the components of blood-- you'd have your red blood cells that would kind of settle in the bottom, then you'd have this layer of white frothy stuff in the middle that was really made of white blood cells, and then on the top, you had the fluid, the plasma from your blood, kind of the watery part. So that's where the name came from, but they have different roles, but they interact with each other. Now lymphocytes can be divided into B lymphocytes, usually referred to as B cells-- and T lymphocytes. And the B and T just come from where they're developed. B lymphocytes were first recognized in the bursa of Fabricius. That's why it's called B. That's actually a part of birds that participate in the immune system. And so the B came from bursa, but B also applies to the human immune system because it's produced in bone marrow. So that might be an easier way to remember. It's produced in bone marrow. It's developed in bone marrow, but historically, the B came from the bursa of Fabricius, just in case you want to know. But it's easy to remember. The B could also stand for bone marrow because that's where it's produced. T lymphocytes actually do start off in the bone marrow, but they mature and become what they are in the thymus. So that's where the T comes from. Now in this video, I'm going to focus just on the B lymphocytes-- because frankly, if I focused on everything, it would be an hour-long video. But the B lymphocytes frankly on some level-- well, I don't want to pick and choose favorites, but something in my brain-- I just really like the B lymphocytes. So the B lymphocytes participate in what's called the humoral response. And I'll tell you what humoral means in a second. You'll see that T lymphocytes participate in what's called the cell mediated response and we're going to do that in a future video. They actually do certain classes of T lymphocytes. We'll see that there are helper T cells and there are cytotoxic T cells. I know it's all very confusing the first time you see it, but that's why I just want to focus on just this part right here. We're going to see in the future that the helper T cells play a role in amplifying and really activating this humoral response. But a simple way to think about the difference between the humoral response and the cell mediated response is, when I get infected-- let's say I get infected by a virus, right? At first, when a virus comes into my system, it's just floating around in the fluids in my system. The fluids of our system-- that's really what humoral responds to, into the humoral fluids of your body. So you have your viruses. These are little viruses floating around. So while they're floating around and they're not sitting inside of cells, that's where the humoral response can come into play. Same thing if we have little bacteria floating around and they haven't infiltrated cells yet. They're just floating around in the fluid, then the humoral response can be useful for that. Now if all of a sudden, these guys have infiltrated cells-- so if the cells are now infected with the virus and they're producing the viruses using the mechanisms of the cell to produce more, then all of a sudden we have to be a little bit more sophisticated in how we deal with these cells and how we deal with the viruses because they're not just going to be floating around anymore. We probably want to just kill this cell even though it was one of our own, but now it's helping to make viruses. Or maybe it's been colonized by bacteria. So in either case, you want to kill this. And we'll talk more about that in the cell mediating.

Rationale

Passive data structures are appropriate when there is a part of a system where it should be clearly indicated that the detailed logic for data manipulation and integrity are elsewhere. PDSs are often found at the boundaries of a system, where information is being moved to and from other systems or persistent storage and the problem domain logic that is found in other parts of the system is irrelevant. For example, PDS would be convenient for representing the field values of objects that are being constructed from external data, in a part of the system where the semantic checks and interpretations needed for valid objects are not applied yet.

In C++

A PDS type in C++, or Plain Old C++ Object, is defined as either a scalar type or a PDS class.[2] A PDS class has no user-defined copy assignment operator, no user-defined destructor, and no non-static data members that are not themselves PDS. Moreover, a PDS class must be an aggregate, meaning it has no user-declared constructors, no private nor protected non-static data, no virtual base classes[a] and no virtual functions.[4] The standard includes statements about how PDS must behave in C++. The type_traits library in the C++ Standard Library provides a template named is_pod that can be used to determine whether a given type is a POD.[5] In C++20 the notion of “plain old data” (POD) and by that is_pod is deprecated and replaced with the concept of “trivial” and “standard-layout” types.[6]

In some contexts, C++ allows only PDS types to be used. For example, a union in C++98 cannot contain a class that has virtual functions or nontrivial constructors or destructors. This restriction is imposed because the compiler cannot determine which constructor or destructor should be called for a union. PDS types can also be used for interfacing with C, which supports only PDS.

In Java

In Java, some developers consider that the PDS concept corresponds to a class with public data members and no methods (Java Code Conventions 10.1),[7] i.e., a data transfer object.[8] Others would also include Plain old Java objects (POJOs), a class that has methods but only getters and setters, with no logic, and JavaBeans to fall under the PDS concept if they do not use event handling and do not implement added methods beyond getters and setters.[citation needed] However, POJOs and Java Beans have encapsulation, and so violate the fundamental definition of PDS.

Records (introduced in Java 16, in 2021) are shallowly immutable carriers of data without encapsulation, and therefore they can also be considered PDS.

In other languages

In PHP, associative arrays and stdClass objects can be considered PDS.[citation needed]

Other structured data representations such as XML or JSON can also be used as a PDS if no significant semantic restrictions are used.

In Python, dataclass module provides dataclasses - often used as behaviourless containers for holding data, with options for data validation. The dataclasses in python, introduced in version 3.7, that provide a convenient way to create a class and store data values. The data classes use to save our repetitive code and provide better readability.[9]

In C, structs are used in the same manner.

See also

Notes

  1. ^ A PDS class can have a base class whose first non-static data members differs.[3]

References

  1. ^ Black, Paul E.; Vreda Pieterse (2007). "passive data structure". Dictionary of Algorithms and Data Structures. Retrieved 11 September 2014.
  2. ^ Information Technology Industry Council (2003-10-15). Programming languages — C++ (Second ed.). Geneva: ISO/IEC. 14882:2003(E).
  3. ^ Bjarne Stroustrup (June 2013). The C++ programming language (Fourth ed.). United States of America: Pearson Education, Inc. ISBN 978-0-321-56384-2.
  4. ^ Walter E. Brown (September 29, 1999). "C++ Language Note: POD Types". Fermi National Accelerator Laboratory. Archived from the original on 3 December 2016. Retrieved 6 December 2016.
  5. ^ "is_pod C++ Reference". cplusplus.com. Retrieved 6 December 2016.
  6. ^ "P0767R1: Deprecate POD". www.open-std.org. Retrieved 2020-01-20.
  7. ^ "Java Code Conventions 10.1". Oracle. Retrieved 6 December 2016.
  8. ^ "Java Language Data Structures". Sun/Oracle Code Conventions. April 20, 1999. Retrieved 6 December 2016.
  9. ^ https://djtechnews.in/what-are-dataclasses-in-python/
This page was last edited on 11 October 2023, at 11:45
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.