Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



What is a POD- Plain Old Data ?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 10-11-2009
Member
 
Join Date: Sep 2009
Posts: 143
What is a POD- Plain Old Data ?
  

While studying C++ I have come accross a term called POD - Plain Old Data. But even after reading it I am not getting what exactly is POD type ? I have started learning C++ very recently. I am already confused with many other topics of C++ and now I am assigned to get the information of POD type. Please help me.

Reply With Quote
  #2  
Old 10-11-2009
Member
 
Join Date: Oct 2005
Posts: 2,388
Re: What is a POD- Plain Old Data ?

Well to give a proper definition of POD(Plain Old Data) type will be quite confusing. First lets describe a POD class. A POD class has no user-defined destructor, no user-defined copy assignment operator and no non-static data members. A POD type in C++ is thus said to be as either a scalar type or a POD class. A POD type's non-static data members must always be public.
Reply With Quote
  #3  
Old 10-11-2009
Member
 
Join Date: Apr 2008
Posts: 1,999
Re: What is a POD- Plain Old Data ?

"POD" is an acronym for Plain Old Data in C++. This usually indicates the areas of substantive compatibility between comparable data types of C++ and C. POD types in C++ are POD class types and Scalar types. The terms POD and POD objects are often used interchangeably refering to the C++. Scalar types iclude: enumeration types, arithmetic types, pointer types and pointer-to-member types. POD class types relates to the aggregate classes, i.e. POD-struct types and aggregate unions, i.e. POD-union types, which should not contain these following as members: non-static data (including arrays) of any pointer-to-member type, non-static data of any reference type, non-static data (including arrays) of any non-POD class type, user-defined destructor and user-defined copy assignment operator.

Last edited by kelfro : 10-11-2009 at 05:15 PM.
Reply With Quote
  #4  
Old 10-11-2009
Member
 
Join Date: May 2008
Posts: 2,379
Re: What is a POD- Plain Old Data ?

I can understand how confusing and difficult is this POD concept for a new user. I too faced similar issue when I started C++. POD is simply a short form for Plain Old Data which is sometimes also referred as POD type. POD is said to be a struct or class with no members except for the data members. To simply we can say a POD class is a structure that is compatible with C.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "What is a POD- Plain Old Data ?"
Thread Thread Starter Forum Replies Last Post
How to print plain text using C++ program Gangeya Software Development 5 19-08-2011 09:42 PM
How to paste plain-text from table Indrayan Windows Software 4 20-07-2011 07:24 PM
Is Maemo 6 loosing compatibility with plain Qt and Symbian4 Satchel Operating Systems 4 15-01-2011 03:43 AM
Emails being converted to plain text since AVG 8.0 Muhammad Waqar Networking & Security 3 05-09-2009 10:49 AM
How to Send a Message in Plain Text in Outlook Chain-SmokeR Windows Software 3 02-07-2009 11:18 PM


All times are GMT +5.5. The time now is 08:45 AM.