Pointers in STL

Is it possible to use pointers in STL?
I tried to use pointers in STL queue.
It is giving compilation errors while linking.
Is it necessary to allocate and deallocate memory by us while doing a push and pop in queue?
Please suggest a way to solve the linking error problem
The error is as follows
Undefined first referenced
symbol in file
void std::deque<MsgBuf,std::allocator<MsgBuf> >::__allocate_at_end() ../sunlib/libMqApi.a(MQ_GuardedQueue.o)
void std::deque<MsgBuf,std::allocator<MsgBuf> >::__deallocate_at_begin() ../sunlib/libMqApi.a(MQ_GuardedQueue.
o

The official term is reference, but you can use reference and pointer interchangeably in mosts contexts.
What Java has is references--that is, [url http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html]the JLS defines that term for the types that are used to access objects and describes references as being "pointers to objects". They are pointers in a general sense--they point at something.
Java pointers are very much like C/C++ pointers in some ways, but they are much more tightly restricted in what you can do with them. You can't cast them willy-nilly to any old type, or give them arbitrary values, or do arithmetic on them, or see the values they hold. They are opaque.

Similar Messages

  • How do I apply a texture to an imported .stl file in 3D Picture Control?

    Hi, I'm trying to apply a 2D image as a texture to an imported .stl file in 3D picture control. It works fine if I'm using a standard shaped mesh created in LabVIEW, however is there a way in which a texture can be applied to an imported model that isn't a standard shape, in my case a balloon. I've attached the an image of the Sub vi where I apply the texture. The object just shows up as a flat colour. Do I need to define how the image is applied to the mesh due to it being a non-standard shape? If so, any pointers would be appreciated.
    Many thanks.
    Oh, I'm using LabVIEW 2009 SP1.
    Attachments:
    stl texture problem.jpg ‏60 KB

    Apologies, been trying all afternoon and then a couple of minutes after posting, I figured it out. Using a property node for the Scenemesh reference, I set the property TextureGenMode to Spherical and it appears to now display the texture on the mesh.

  • Java-pointers

    difference between null and void pointers.

    In the physical implementation I cannot tell you the difference, but programatically; void mean no return value and null is no object assigned to the variable.

  • In-Place Element Structures, References and Pointers, Compiler Optimization, and General Stupidity

    [The title of this forum is "Labview Ideas". Although this is NOT a direct suggestion for a change or addition to Labview, it seems appropriate to me to post it in this forum.]
    In-Place Element Structures, References and Pointers, Compiler Optimization, and General Stupidity
    I'd like to see NI actually start a round-table discussion about VI references, Data Value references, local variables, compiler optimizations, etc. I'm a C programmer; I'm used to pointers. They are simple, functional, and well defined. If you know the data type of an object and have a pointer to it, you have the object. I am used to compilers that optimize without the user having to go to weird lengths to arrange it. 
    The 'reference' you get when you right click and "Create Reference" on a control or indicator seems to be merely a shorthand read/write version of the Value property that can't be wired into a flow-of-control (like the error wire) and so causes synchronization issues and race conditions. I try not to use local variables.
    I use references a lot like C pointers; I pass items to SubVIs using references. But the use of references (as compared to C pointers) is really limited, and the implementation is insconsistent, not factorial in capabilites, and buggy. For instance, why can you pass an array by reference and NOT be able to determine the size of the array EXCEPT by dereferencing it and using the "Size Array" VI? I can even get references for all array elements; but I don't know how many there are...! Since arrays are represented internally in Labview as handles, and consist of basically a C-style pointer to the data, and array sizing information, why is the array handle opaque? Why doesn't the reference include operators to look at the referenced handle without instantiating a copy of the array? Why isn't there a "Size Array From Reference" VI in the library that doesn't instantiate a copy of the array locally, but just looks at the array handle?
    Data Value references seem to have been invented solely for the "In-Place Element Structure". Having to write the code to obtain the Data Value Reference before using the In-Place Element Structure simply points out how different a Labview reference is from a C pointer. The Labview help page for Data Value References simply says "Creates a reference to data that you can use to transfer and access the data in a serialized way.".  I've had programmers ask me if this means that the data must be accessed sequentially (serially)...!!!  What exactly does that mean? For those of use who can read between the lines, it means that Labview obtains a semaphore protecting the data references so that only one thread can modify it at a time. Is that the only reason for Data Value References? To provide something that implements the semaphore???
    The In-Place Element Structure talks about minimizing copying of data and compiler optimization. Those kind of optimizations are built in to the compiler in virtually every other language... with no special 'construct' needing to be placed around the code to identify that it can be performed without a local copy. Are you telling me that the Labview compiler is so stupid that it can't identify certain code threads as needing to be single-threaded when optimizing? That the USER has to wrap the code in semaphores before the compiler can figure out it should optimize??? That the compiler cannot implement single threading of parts of the user's code to improve execution efficiency?
    Instead of depending on the user base to send in suggestions one-at-a-time it would be nice if NI would actually host discussions aimed at coming up with a coherent and comprehensive way to handle pointers/references/optimization etc. One of the reasons Labview is so scattered is because individual ideas are evaluated and included without any group discussion about the total environment. How about a MODERATED group, available by invitation only (based on NI interactions with users in person, via support, and on the web) to try and get discussions about Labview evolution going?
    Based solely on the number of Labview bugs I've encountered and reported, I'd guess this has never been done, with the user community, or within NI itself.....

    Here are some articles that can help provide some insights into LabVIEW programming and the LabVIEW compiler. They are both interesting and recommended reading for all intermediate-to-advanced LabVIEW programmers.
    NI LabVIEW Compiler: Under the Hood
    VI Memory Usage
    The second article is a little out-of-date, as it doesn't discuss some of the newer technologies available such as the In-Place Element Structure you were referring to. However, many of the general concepts still apply. Some general notes from your post:
    1. I think part of your confusion is that you are trying to use control references and local variables like you would use variables in a C program. This is not a good analogy. Control references are references to user interface controls, and should almost always be used to control the behavior and appearance of those controls, not to store or transmit data like a pointer. LabVIEW is a dataflow language. Data is intended to be stored or transmitted through wires in most cases, not in references. It is admittedly difficult to make this transition for some text-based programmers. Programming efficiently in LabVIEW sometimes requires a different mindset.
    2. The LabVIEW compiler, while by no means perfect, is a complicated, feature-rich set of machinery that includes a large and growing set of optimizations. Many of these are described in the first link I posted. This includes optimizations you'd find in many programming environments, such as dead code elimination, inlining, and constant folding. One optimization in particular is called inplaceness, which is where LabVIEW determines when buffers can be reused. Contrary to your statement, the In-Place Element Structure is not always required for this optimization to take place. There are many circumstances (dating back years before the IPE structure) where LabVIEW can determine inplaceness and reuse buffers. The IPE structure simply helps users enforce inplaceness in some situations where it's not clear enough on the diagram for the LabVIEW compiler to make that determination.
    The more you learn about programming in LabVIEW, the more you realize that inplaceness itself is the closest analogy to pointers in C, not control references or data references or other such things. Those features have their place, but core, fundamental LabVIEW programming does not require them.
    Jarrod S.
    National Instruments

  • I am trying to rebuild my iPhoto library and noticed my backup contains aliases (pointers?) and not the actual file. What's the best way to rebuild my library?

    I am trying to rebuild my iPhoto library and noticed my backup contains aliases (pointers?) and not the actual file. What's the best way to rebuild my library?
    Facts:
    In moving to a new iMac, I copied the iPhoto library to an external HDD assuming that I would point the new iMac to the backed up iPhoto Library
    All worked fine when I pointed the new library but noticed that some folders contained aliases and not the original file. So when I attempt to open that photo it can't find it because the alias is pointing to another drive.
    I do have all original photos from a couple of external HDDs. In the folders titled, "Originals" (from older versions of iPhoto) and "Masters" (from current iPhoto)
    I'm thinking I can create a new folder and drop the original files and make that my new iPhoto library. Is there a better way to rebuild my library? I do not want to create any future aliases.
    Thanks in advance for any help!

    do you have a strongly recommended default "managed" library (the iPhoto preference to "copy imported items to the iPhoto library is in its checked state) or a referenced library - you have unchecked that option?
    It sounds like you have a referenced library and are now experiancing one of the very siginificant drawbacks of a referenced library and one of the many reasons they are strongly not recommended
    Also note that iPhoto '11 may use alises in the originals folder as part of the upgrade
    It is important that we understand exactly what you have and what is not sorking - what error messages you are getting
    You must NEVER make any changes of any sort to the structure of content of the iPhoto library - there are no user servicable parts in it  --  and you can not rebuild yoru librtary - only iPhoto ir iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  can rebuild a library unless you are a SQL programmer and understand the structure that iPhoto uses
    LN

  • Questions on 3D picture control and STL file

    Hi,
    I am currently working on a project in which I load an STL file to vizualise a 3D object (see attachment). I have several problems and questions.
    1) I would like to execute rotations (X,Y,Z) on this 3D object. Unfortunately, Labview executes only one rotation and I don't know why
    2) If I load several objects, is it possible to create links/joints between them? I saw the example with the robot arm provided in the Labview examples, but I don't understand where and how the joints are defined.
    3) Is it possible to import an image (png, jpeg,..) on a scene display? I would like to visualize a graduation to see the number of degrees of rotation of my object.
    Thank you for your answers
    Message Edited by kastillio on 10-23-2009 04:24 AM
    Attachments:
    load_stl_geom_8_6.zip ‏56 KB

    Thank you so much for your post on our forum.
    I created an example based on the VI You send Fact is that we need to use relative rotation. With absolute the previous rotation is cleared and the new rotation is done from the zero point. With your example this means that you first do the Y rotation and immediately the X rotation is done resetting the previous Y rotation. If you swap these two rotations you will notice that only the Y rotations works because the previous X will be reset.
    As said I made an example based on relative rotation so the rotation will be done from the current position. I used the rotate object.vi and used a event structure looking at the value change from the x or y control. The function will be executed when these value changes occur.
    Best regards,
    Martijn S
    Applications Engineer
    NI Netherlands
    Attachments:
    load_stl_geom_8_6.vi ‏18 KB

  • Error in linking C++ STL code  using CC 5.0 on Solaris 2.6

    Hi All,
    When building a shared dynamic library from C/C++ code using
    STL features, I get an a link error, referring to the STL objects in
    use.
    I use CC WorkShop C++ Compiler 5.0 running on Solaris 2.6.
    For example:
    using a vector<int> we get :
    Undefined Symbol
    __1cDstdGvector4Cin0AJallocator4Ci___M__insert_aux6Mpirki_v_
    In File aaa.o
    using a multimap<int,int> we get :
    Undefined Symbol
    __1cH__rwstdJ__rb_tree4CinDstdEpair4CkiCi__n0AL__select1st4n0C_Ci__n0BEless4Ci__n0BJallocator4n0C____U__deallocate_buffers6M_v_
    In File aaa.o
    etc.
    Switching (for testing) from shared lib to an exe does not seem
    to solve this issue.
    Same goes for toggling libCstd & libCrun's link mode (dyn/stat).
    Any suggestions would be appreciated!
    Thank you,
    Gilad

    Hi Gilad,
    I have a suggestion concerning the std::vector::__insert_aux error:
    http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5069680
    Some recommended link options are provided in:
    http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5104725
    Hope this is useful.
    Bye.

  • Change Pointers - adding a new field to existing Change Document

    Hi,
    We have a requirement to capture the changes made to the Material object through the transaction C223. The changes to field MKAL-PRFG_F have to be captured.
    There is an exisitng Change Document Object - MATERIAL. This is included in Message Type MATMAS. These are the steps we have done:
    1. In SCDO - added the Z structure to the Change Document Object - Material. [Z structure contains the field MKAL-PRFG_F. Change pointer option is checked for this Data element.
    2. Created a Z Message Type with reference as MATMAS.
    3. In BD52 - we have listed the fields for the new Z Message Type created.
    4. The Change Pointers - reactivated after the steps are done.
    The changes to the field MKAL-PRFG_F through C223 Tcode are not recorded in BDCPV table.
    Have we missed any steps here?
    Thanks,
    Pallavi

    HI,
    I don't think a new zmessage type is required in this case.. is the structure added to MARA table??The change document programs are there which triggers the iodcs... In SCDO transaction code , click on generation info for MATERIAL.. You will find the includes. The FM MATERIAL_WRITE_DOCUMENT creates entries in CDHDR and CDPOS, if we maintain entries in BD52 , the entries wil be written in BDCP and BDCPS tables.
    Try to add your structure in MARA table as append strucre and then you can debug the IDOC from WE19 and use the FM "MASTERIDOC_CREATE_SMD_MATMAS" and then you also need to switch on Update Debugging on, to debug the changes in update FM   MATERIAL_WRITE_DOCUMENT.
    Please see if the change is reflected or not....
    ELSE.
    may be you need to create a new entry in SCDO and do all the ALE configurations for change pointers.
    Please find the link for change pointers and also you can get lot of information on change pointers in SCN.
    http://help.sap.com/saphelp_nw70/helpdata/EN/12/83e03c19758e71e10000000a114084/content.htm
    Regards,
    Nagaraj

  • Change Pointers not being created for HR-PA Custom Infotype

    Problem Description:
    We have a custom Infotype in SAP to store the data for contingent employee - Infotype 9001. Change pointers is
    turned on. We are running the program RBDMIDOC to send changes to Oracle IDM using message HRMD_A. The change
    detected for all infotypes except 9001. For 9001, the change pointer is not created.
    The following are the current configuration details:
    IDOC Extension Created to Idoc type HRMD_A07 (ZHR_EXT)
    custom segment zhr_seg
    Change pointers are switched on.
    Change pointers switched on for message Type HRMD_A.
    IDOC configuration created for Port / Process code etc.
    Maintenance of view T777D - Added ZHR_SEG.
         If I add the segment ZHR_SEG as a 2nd segment to Infotype 0000, I dont get a syntax error. But the changes for Infotype 9001 are not picked up.
         If I add the segment ZHR_SEG as a segment to Infotype 9001, I get a syntax error - check EDI: Syntax error in IDoc (mandatory segment missing) below.
    EDI: Syntax error in IDoc (mandatory segment missing)
    Message no. E0072
    Diagnosis
    The segment ZHR9001 has the attribute 'Mandatory' in the syntax description of the basic type HRMD_A07 (customer enhancement ZHR_EXT). However, the segment is missing in the IDoc. The segment number logged in the status record identifies the item before which the segment is missing.
    This error may have been triggered by an unidentifiable segment before the expected mandatory segment.
    Procedure
    Please check the IDoc or the syntax description of the basic type HRMD_A07 (customer enhancement ZHR_EXT).

    Were you able to resolve the issue?
    If yes, could you please share what was done to resolve it.
    Your help will be greatly appreciated.

  • Pointers regarding consuming a external web-service from SAP

    Hi All,
            I am trying to consume a web-service from an external system using a URL.
    Our SAP system version is 4.7. I have created a custom program and calling up the web service using HTTP POST method.
    For this I referred the following weblog.
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/847. [original link is broken] [original link is broken] [original link is broken]
    I modified the program according to my requirements and called the web service, but I am facing certain issues.
    1. The if_http_client->send method executed successfully (sy-subrc eq 0). But the next call to the method
        if_http_client->receive the program shows error.The message is very long one and I am not able to see it fully in debugging mode.
    Please help me with the following questions.
    1. Is there any way I can read the message returned from the web-service to see what the error was? In 4.7 we don't have the recording function as in 6.0.
    2. I have disable the login prompt by calling if_http_client->propertytype_logon_popup = http_client->co_disabled.
    If I don't do that it shows me a SAP Web AS login screen. Shouldn't it show me the standard http login screen?
    3.In that login screen if I provide my ID password it returns the following message
    'Business Server Page (BSP) ErrorBSPexception:Access to URL :<Server>:<80>/ORABPEL/DEFAULT/READDATA1/1.0 is forbidden'
    Any pointers what does it mean?
    4. This method seems a very lengthy process to me. Is there any other approach to this issue?
    TIA
    Barada.

    The error for Authorization was because of the HTTP proxy settings for the system.
    I configured the proxy settings in the transaction SICF->Goto->Http Proxy and then the program worked fine.
    Regards
    Barada

  • Change pointers in case of purcahse order

    The scenario is to send data through idoc when i create/change delete certain fields in purchase order.
    I hace used change pointer scenario for it
    can u plz see what i have missed out in my configuration ..
    Here are the steps i followed .
    1) created a logical custom message us we81 .
    2) created custom idoc using we 30
    3) Linked custom mesage and idoc using we 82
    4) Activated my custom message using bd50 .
    5) Assigned fields to message using bd52 ie
    Einkbeleg EKKO waers , EKPO-netpr ..etc
    6) Assigned cutom message and custom function module
    (z...smd_custommsg) via bd60
    7) tried to execute the message using BD21 ..
    Now the issue is that entries are being created in change document table(cdhrd/cdpos)
    but no entry in BDCP/BDCPS..
    please give your valuable inputs to it
    Thanks In advance

    hi,
    You can acheive this by writing a custom program.
    in the program you need to use function module   'CHANGE_POINTERS_READ' for reading the change pointers.
    Give document object class as the object name in bd52 and give read_not_processed_pointers as 'X'.
    Looping at the output table and using function module CHANGE_POINTERS_CREATE_DIRECT you can create an entry in bdcp table for the respective purchase order.
    After this you can use   SUBMIT rbdmidoc WITH mestyp = message_type AND RETURN.
    Regards
    Sridevi S

  • What are the names of the cursors and mouse pointers in Win 8?

    I am writing a VBA program that is to work with pointers and cursors. 
    What would be the code to change them, where are they, and what are their names?
    Can I customize/import my own?
    (Forgive me if this is a duplicate.  They first one burped me out...)
    Everything I know I learned from my cat. No matter what the situation is, there is a napp for that.

    Hi
    Emerogork2,
    To develop a VBA program to work with pointers and cursors ,the following links may be helpful.
    About Cursors(This link shows us that we can custom a cursor )
    http://msdn.microsoft.com/en-us/library/windows/desktop/ms648379(v=vs.85).aspx
    Cursor Class(This is about cursor class and there is an example of custom cursor)
    http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor(v=vs.110).aspx
    Cursors.Hand Property(This includes an example of overriding
    Control.OnMouseHover method)
    http://msdn.microsoft.com/en-us/library/system.windows.forms.cursors.hand(v=vs.110).aspx
    Cursor.Position Property(This includes an example of creating a cursor from the current cursor`s handle)
    http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor.position(v=vs.110).aspx
    Considering this is a developing issue, it`s recommended to post it in our MSDN Forum .The people there are more experienced in this area.
    MSDN forum
    https://social.msdn.microsoft.com/Forums/en-US/home
    Best regards

  • Creation of Idocs from the change pointers by the program RBDMIDOC

    Hello,
    I'm Creating Idocs from the change pointers by the program RBDMIDOC.
    The IDOCS Created using the message type HRMD_A are Correct but when i try to RUN RBDMIDOC for message type HRMD_B no Data is selected for distribution.
    All the customizing are similar and i presume that all the change pointers are active (BD50 and IMG->Personnel Management -> Organizational Management  -> Basic Settings -> Activate change documents).
    Can anyone help me with the necessary steps to create this IDOC types.
    Do anyone know if the RBDMIDOC report is the Same for messages HRMD_A and HRMD_B.
    Thanks in Advance,
    Pedro Ferreira

    If the setting is fine, there may be some code in exit or badi for program RBMIDOC. Check the Exit and BADI.
    check the exit EXIT_SAPLBD11_001 and
    check the badi IDOC_CREATION_CHECK.
    Probably there may be some code on these exits which are stoping your code from getting generated.These are the two trigger happen once u execute the RBMIDOC program.for HR, we use RHALEINI program to generate the idoc. but even RBDMIDOC works. These 2 triggere will come with RHALEINI also.
    If there is no code here, Then there is problem in the setting only.

  • Need help On Triggers/Change pointers in SAP

    Hi Experts,
    I Need help On Triggers/Change pointers in SAP.
    I have a requirement  as soon as an entry is created in one of the  Standard SAP  table it should check against my Ztable and update and create the corresponding entry in another Ztable.
    Can some one help me out on this with the syntax and how to do it

    Hi,
    Check whether you have any enhancement option (BADI, user exit, Customer enhancement etc) in the program which is used to save the data in the SAP standard table. If so, then try to write your code in that appropriate enhancement.

  • Need to trigger change pointers for a change in std text

    I need to trigger an idoc via change pointers when any change in a std text occurs. I am doing this for changes in Customer Master. For example, if the std text obtained via tcode XD02 is changed, then I need to trigger an idoc. Is this possible? What is the object class used?
    Thanks,
    Keerthi

    Hi,
    All Standard text views are stored in V_E071.
    Use the View for V_E071 for checking standard text transport
    Give Object Filed Name = TEXT and check
    And search the standard object
    Go to se09 create workbench request and
    Double Click the request and go to program give R3TR and Object: TEXT and object Name: TEXT, Nike_FT_AB_4700, ZEPC, D
    Object: TEXT
    Where   Nike_FT_AB_4700 is Customized Name of Standard Text
    Text Id: ZEPC (Default: ST)
    Language: D (DE)
    Go to SE03  double click the Search for Objects in Requests/Tasks in the
    R3TR Object ; TEXT and do search.. with respective to that you will get change request.
    Do rewards points.

Maybe you are looking for

  • How can i transfer photos from my macbook to my camera in OSX Lion?

    I am having difficulty transferring some of my photos from my MacBook to my camera. When the camera is connected and i open the DCIM folder then the CASIO100 folder the photos are there. But when i eject the camera the photos aren't on the camera

  • Stuck parsing an InDesign document, extracting data to an XML file

    Hi, I have an indesign document of a newspaper page (1 spread + 1 page) with some articles (title, body, img, img caption) and ads (img). I need to parse this and create an XML file from which data can be stored into a mysql db. The db handling is al

  • Trigger email for exceeded budget

    Hi, I want to know how to trigger email (and also maintain the person name/userid) to the person resonsible if the budget is exceeded. There is a standard 'action' no. 2      Warning with MAIL to person responsible in 'Fund Management Availability Co

  • Using textarea in a blog

    Hi It might seem a bit strange but still i would go on and ask. Actually I am trying to use <textarea rows="20" cols="20">xyzasfg</textarea> in my Blog. I thought this tag would put the code enclosed inside it in a textarea. But nothing of the sort i

  • Inner and views

    hi,     i am using two inner joins in my select query ,will that affect my performance issue? or is it advisable to go for database views?   points are assured... ganesh