Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Derived type


  
  Ada 95 RM - 3.4 Derived Types and Classes
A type shall be completely defined (see 3.11.1) prior to being specified as the parent type in a derived_type_definition -- the full_type_declarations for the parent type and any of its subcomponents have to precede the derived_type_definition.
If the derived type has a new known_discriminant_part but is not a record extension, then the corresponding subtype is constrained to those values that when converted to the parent type belong to the given subtype (see 4.6).
Any type mismatch due to the systematic replacement of the parent type by the derived type is handled as part of the normal type conversion associated with parameter passing -- see 6.4.1.
www.csupomona.edu /reference/ada/rm95html-1.0/rm9x-03-04.html   (1275 words)

  
 Derived Integer Type Classes   (Site not responding. Last check: 2007-10-26)
Because all integer type classes differ only in their bounds a template is used to build up the required type classes automatically:
The template uses this class to query the actual bounds of the integer type.
Figure 5.3 shows the structure of a derived integer type class.
www.freehdl.seul.org /code/node82.html   (172 words)

  
 Derived Types and Classes
For a scalar type, the base range of the derived type is the same as that of the parent type.
Proof: This is a ramification of the fact that each class that includes the parent type also includes the derived type, and the fact that the set of predefined operators that is defined for a type, as described in 4.5, is determined by the classes to which it belongs.
When deriving from a type in the same visible part in which it is defined, the primitive subprograms declared prior to the derivation are inherited as primitive subprograms of the derived type.
www.adaic.org /standards/95aarm/html/AA-3-4.html   (2556 words)

  
 Derived Types
The size of a sequence derived type is equal to the number of bytes of storage needed to hold all of the components of that derived type.
The type and type parameters of each expression must be assignment-compatible with the type and type parameters of the corresponding component.
are components of the enclosing derived type, and are local entities of the enclosing structure's scoping unit.
www.ncsa.uiuc.edu /UserInfo/Resources/Hardware/IBMp690/IBM/usr/share/man/info/en_US/xlf/html/lr32.HTM   (4756 words)

  
 Derived Type Definition   (Site not responding. Last check: 2007-10-26)
Derived types are built of components of intrinsic or derived type; ultimately, the components are of intrinsic type.
A type name may be any legal Fortran name as long as it is not the same as an intrinsic type name or another local name in that scoping unit.
A type definition forms its own scoping unit, which means that the component names are not restricted by the occurrence of any names outside the type definition; the scoping unit has access to host objects by host association so that named constants and accessible types may be used in component declarations.
www.navo.hpc.mil /pet/Video/Courses/f90/Extra/dtdef.html   (615 words)

  
 The Haskell 1.3 Report: Derived Instances
The body of a derived instance declaration is derived syntacticly from the definition of the associated type.
Derived instances are possible only for classes known to the compiler: those defined in either the Prelude or a standard library.
For a type with a single constructor, the constructor is applied to the bounds for the constituent types.
www.haskell.org /haskell-report/derived.html   (1003 words)

  
 Tagged Types and Type Extensions
The tag of an operand of a class-wide tagged type T'Class controls which subprogram body is to be executed when a primitive subprogram of type T is applied to the operand (see 3.9.2); using a tag to control which body to execute is called dispatching.
The tag of a specific tagged type identifies the full_type_declaration of the type, and for a type extension, is sufficient to uniquely identify the type among all descendants of the same ancestor.
For a tagged type that is local to a generic package body and with all of its ancestors (if any) also local to the generic body, the language does not specify whether repeated instantiations of the generic body result in distinct tags.
www.adaic.org /standards/05rm/html/RM-3-9.html   (1448 words)

  
 7.2.3 Derived Types
After a derived type has been defined, it can be used to type variables by enclosing the type name in parenthesis and preceding it with the type name.
This type of reference allows individual components of the derived type to be processed as needed.
Define a derived type named quake_data that consists of the longitude and latitude of the recording instrument and the strength of the quake measured on the Richter scale.
www.aspire.cs.uah.edu /textbook/fortran8003.html   (1200 words)

  
 Reading C type declarations
A derived type always modifies something that follows, whether it be the basic type or another derived type, and to make a declaration read properly one must always include the preposition ("to", "of", "returning").
Interpreting the derived types is usually the sticking point when reading a complex declaration, but this is resolved with operator precedence in the next section.
Not all combinations of derived types are allowed, and it's possible to create a declaration that perfectly follows the syntax rules but is nevertheless not legal in C (e.g., syntactically valid but semantically invalid).
www.unixwiz.net /techtips/reading-cdecl.html   (1673 words)

  
 Type: System.Object   (Site not responding. Last check: 2007-10-26)
Consider overriding Object.Equals on a reference type if the semantics of the type are based on the fact that the type represents some value(s).
A type should implement Object.Finalize when it uses unmanaged resources such as file handles or database connections that must be released when the managed object that uses them is reclaimed.
If the field is a reference type, the reference is copied but the referred object is not; therefore, the reference in the original object and the reference in the clone point to the same object.
www1.cs.columbia.edu /~lok/csharp/refdocs/System/types/Object.html   (3574 words)

  
 Thanks type and gentle class
User-defined types are the pragmatic extension of abstract data types from type theory.
Type operations restrict the permissible interaction with a user-defined type, thereby declaring the explicit boundaries of a system module.
Incompatible variable types prevent this attempt to attach a variable to the very object to which it is already attached.
www.javaworld.com /javaworld/jw-01-2001/jw-0119-type.html   (2121 words)

  
 Type Casting
While implicit type casting is legal when assigning a derived class object to a variable that is a reference to the base class type, it is strongly recommended that implicit type casting be avoided so that the programmer's intent is clearly expressed in the code.
The explicit type cast conveys visibly that the programmer was aware of the casting and deliberately chose to enact the cast.
A type cast is said to widen the type of an object when a derived class object is type cast to a base class object.
ei.cs.vt.edu /~kafura/java/Chapter6/type_casting.html   (3475 words)

  
 6.7 Type Casting
Type casting is the act of viewing an object of a derived class as an object of its base class.
The term type casting describes this technique because the exact "type" (i.e., class) of an object is "cast" away in favor of a more generic type (the base class of the object).
A type cast is said to narrow the type type of an object when a base class is type cast to a derived class object.
www.prenhall.com /divisions/esm/app/kafura/secure/chapter6/html/6.7_typecasting.htm   (2393 words)

  
 Derived Type Definition   (Site not responding. Last check: 2007-10-26)
A derived type definition specifies the name of the new derived type and the names and types of its components.
The TYPE statement establishes a prototype name for the class, and may further encapsulate the class by specifying a namespace.
The preferred way is to define the derived type in a module (see Module Program Units) and use the module wherever the derived type is needed.
www.lahey.com /docs/LFACADHELP/NLMLSDerivDef.htm   (393 words)

  
 TACC > Derived Data Types
Whether the data of the derived data type is actually packed into a system buffer area or is retrieved directly from its original location and sent directly to a process is implementation dependent.
Instead of packing each column element into a vector and sending the vector to another process, a column data type (coltype) can be defined in an MPI function and then used as the data type in a send function argument list.
The only difference in the MPI_Send call is that the count is in units of the derived data type and the data type is given by its Derived Data type variable, not as an intrinsic data type constant.
www.tacc.utexas.edu /resources/userguides/mpi.c/datatypes.php   (818 words)

  
 Circulation of a Type 2 Vaccine-Derived Poliovirus --- Egypt, 1982--1993
Although the precise duration and extent of vaccine-derived poliovirus circulation in Egypt is uncertain because of gaps in surveillance before 1990, regression analysis of the VP1 evolution rate suggested that all lineages derived from one OPV infection that occurred approximately during 1982, and that progeny from that initiating infection circulated in Egypt during 1982--1993.
During 2000, circulation of type 1 vaccine-derived poliovirus in the Dominican Republic and Haiti was associated with 19 suspected polio cases (5).
Molecular and antigenic characterization of a highly evolved derivative of the type 2 oral poliovaccine strain isolated from sewage in Israel.
www.cdc.gov /mmwr/preview/mmwrhtml/mm5003a3.htm   (1250 words)

  
 DERIVED DATA TYPE
Variables declared in a derived type are ordered according to user's placement.
Such would be important, for instance, for I/O. Furthermore, arrays declared in a derived type are stored contiguously in memory, which may be important for performance considerations.
However, two neighboring arrays declared in a derived type may not be stored adjacent to each other in physical memory.
scv.bu.edu /SCV/Tutorials/F90/constructs/DERIVED_TYPE.html   (289 words)

  
 Directly Derived Types (C/C++ Language and C++ Libraries)   (Site not responding. Last check: 2007-10-26)
New types derived directly from existing types are types that point to, refer to, or (in the case of functions) transform type data to return a new type.
Pointers to functions of a given type allow a program to defer selection of the function used on a particular object or objects until run time.
Such a pointer can be used by any object of the class type or any object of a type derived from the class type.
msdn.microsoft.com /library/en-us/vclang98/html/_pluslang_directly_derived_types.asp?frame=true   (1037 words)

  
 Derived-Type Definition
It must not be the same as the name of any intrinsic type, or the same as the name of a derived type that can be accessed from a module.
SEQUENCE cause the components of the derived type to be stored in the same sequence they are listed in the type definition.
Two data entities have the same type if they are both declared to be of the same derived type (the derived-type definition can be accessed from a module or a host scoping unit).
www.helsinki.fi /atk/unix/dec_manuals/df90au52/lrm0038.htm   (601 words)

  
 Math 60 -- Chapter 15
To access a field of a derived type variable, in general, the principles are the same as with C++ or Pascal, except that, instead of using the period (dot),.
It is possible to use modules to define a derived type and also encapsulate the key components of the new type, protecting these componenets from unintended changes.
This is most easily done by defining a derived type with private data components within a module, and also including within the module local subprograms which automatically have access to the private data components of the derived type.
math.scu.edu /~dsmolars/ma60/nchpt15.html   (1214 words)

  
 Circulation of Vaccine-derived Poliovirus Type 2 in Egypt, 1982-1993
During the year 2000, circulation of type 1 vaccine-derived poliovirus in the Dominican Republic and Haiti was associated with 19 suspected polio cases.
The isolates were not related (less than 81% nucleotide sequence identity) to the wild type 2 poliovirus that had been indigenous to Egypt (last isolated in 1979) or to any other wild type 2 polioviruses.
The outbreak in the [the island of Hispaniola] involved circulating poliovirus type 1; the cases in China and Egypt (and possibly infections detected by environmental surveillance in Israel [9]) involved circulating type 2 vaccine-derived viruses.
www.vaccinationnews.com /rally/circvaxpol.htm   (1274 words)

  
 The Haskell 98 Report: Derived Instances
A derived instance is an instance declaration that is generated automatically in conjunction with a
The body of a derived instance declaration is derived syntactically from the definition of the associated type.
In this chapter, we describe the derivation of classes defined by the Prelude.
www.haskell.org /onlinereport/derived.html   (1034 words)

  
 Derived Enumeration Type Classes   (Site not responding. Last check: 2007-10-26)
Similar to integer type classes a template is used to build up the required type classes automatically (see Figure 5.4).
template class enum_type : public enum_base { public: // Note, ``R'' is the type info class of the enumeration type and // R::low() is a static method which returns the low bound // of the enumeration type.
However, // if the current enumeration type is a subtype of another // enumeration type, then the values are taken from these // type.
www.freehdl.seul.org /code/node86.html   (146 words)

  
 Getting derived type from base class constructor
You have to override the constructor and pass on each derived class the class type using typeof.
Keep in mind that the derived type constructor isn't yet executed at this point, so you're potentially limited in what you can do with it.
My intention is to pass string based on the derived type to framework base class.
channel9.msdn.com /ShowPost.aspx?PostID=29121   (990 words)

  
 7.1.3 Derived Types
This program uses a derived type to store 3 sets of 4 reaction times.
A derived data type called student could be defined to contain all the needed information.
Declare four variables to be complex number types.
www.krellinst.org /AiS/textbook/unit8/fortran8.4.html   (1213 words)

  
 10.14 Run-time Type Information (RTTI)
When working with an object variable (as opposed to a pointer to an object), the type of that object is obvious: it's the variable's declared type.
If you have a pointer to an object and that pointer's type is some base class, at run-time the pointer could point at an object of the base class or any derived type.
Run-time type information, or RTTI, gives you the capability of determining an object's type at run-time, even if you are referencing that object using a pointer to some base class of that object.
webster.cs.ucr.edu /AoA/Linux/HTML/ClassesAndObjectsa5.html   (1126 words)

  
 EquivClass & Derived Type
At the moment there exists equivClass and derived type, but I do not see why both are necessary as derived type could do the same job.
By separating equivalence from inheritance, are we saying that even elements of the same type or subtypes of the same type are not necessarily substitutable by one another in every context.
For instance, even if elements "name" and "account number" are both of type string, they could not be used in place of one another in most context.
www.stylusstudio.com /xmldev/200002/post70340.html   (355 words)

  
 Characterization of a Highly Evolved Vaccine-Derived Poliovirus Type 3 Isolated from Sewage in Estonia -- Blomqvist et ...
Circulation of a type 2 vaccine-derived poliovirus—Egypt, 1982-1993.
Prolonged replication of a type 1 vaccine-derived poliovirus in an immunodeficient patient.
Circulation of endemic type 2 vaccine-derived poliovirus in Egypt from 1983 to 1993.
jvi.asm.org /cgi/content/full/78/9/4876   (4636 words)

  
 Two C++ questions - GameDev.Net Discussion Forums   (Site not responding. Last check: 2007-10-26)
You can accomplish that by having a member variable of type *X instead of just X. Then polymorphism allows you to put something of type Y or any other derived type in there.
Class derived is built on top of class base which therefore needs to be made first.
Another way as someone mentioned is to use runtime casting and type checking but more often than not that's a workaround for a bad design.
www.gamedev.net /community/forums/topic.asp?topic_id=147339&whichpage=1󊋷   (1126 words)

  
 7.1.1 Active derived type (real_type_module)   (Site not responding. Last check: 2007-10-26)
In this module the active data type real_type is defined.
All operators and the accepted types of operands are summarized in table 6.1.
Besides providing the active data type some basic routines are defined for marking the active section and for bookkeeping purposes.
w3g.gkss.de /G/imashome/manual/node67.html   (774 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.