Sponsored Content
Top Forums Programming Created a wrapper for a function in a class. Post 302598881 by DGPickett on Wednesday 15th of February 2012 03:49:26 PM
Old 02-15-2012
If it is just a synonym, have GetReal call GetFloat(). The compiler can inline it, saving the extra call, just like you do for char*/String&.

Last edited by DGPickett; 02-15-2012 at 05:44 PM..
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Passing a variable name to be created within a function

Is it possible to pass a variable name, as a parameter to a function, so it can be created within this function ? Something like this: func_uppercase abcdefgh var_name where the 1st parameter is the string I want to convert and the 2nd is the desired variable name... $2=`echo "$1" |... (2 Replies)
Discussion started by: 435 Gavea
2 Replies

2. Programming

how to write a wrapper c code to return uid using getuid() function

And how to use setuid() ? thanks (4 Replies)
Discussion started by: pwd
4 Replies

3. Programming

How to make a function friend to both base and derived class

Hi, I have a base class and derived a class from the base class, i want to print & read the data for the object created for the derived class,so i have overloaded both the << and >> operators and also have done the foward declaration. Below is the code snippet, #include <iostream> class... (3 Replies)
Discussion started by: ennstate
3 Replies

4. Shell Programming and Scripting

Function loading in a shell scripting like class loading in java

Like class loader in java, can we make a function loader in shell script, for this can someone throw some light on how internally bash runs a shell script , what happenes in runtime ... thanks in advance.. (1 Reply)
Discussion started by: mpsc_sela
1 Replies

5. Programming

Handling a signal with a class member function

Hello, i am using the sigaction function to handle the SIGCHLD signal.Is it possible to use a class member function as the handler function (the sa_handler member of the sigaction structure)? The function's signature is: void (*sa_handler)(int);so i don't think i can use a static member function... (2 Replies)
Discussion started by: Zipi
2 Replies

6. Programming

passing object to function, columns class

I am working on a small columns class, since I use allot of tabular data. I am trying to set up code to allow me to efficiently read in tabular data, manipulate it, and write to output files. I more or less know what I need to do, but there are many options to sort through. I have the beginnings... (14 Replies)
Discussion started by: LMHmedchem
14 Replies

7. Programming

C++ : Base class member function not accessible from derived class

Hello All, I am a learner in C++. I was testing my inheritance knowledge with following piece of code. #include <iostream> using namespace std; class base { public : void display() { cout << "In base display()" << endl; } void display(int k) {... (2 Replies)
Discussion started by: anand.shah
2 Replies

8. Programming

Local variable in a C function is not getting created in stack when its compiled with GCC

Hi, I am working in UEFI EDK2 Bios source. We created a platform related new package in the EDK2 source. I find a strange issue with the platform related code we added. When I did source level debugging I noticed the local variable in a C function is not getting created in stack when its... (6 Replies)
Discussion started by: Divya R
6 Replies
Advanced I/O object traversal helpers(3)		     Hardware Locality (hwloc)			  Advanced I/O object traversal helpers(3)

NAME
Advanced I/O object traversal helpers - Functions static inline hwloc_obj_t hwloc_get_non_io_ancestor_obj (hwloc_topology_t topology , hwloc_obj_t ioobj) static inline hwloc_obj_t hwloc_get_next_pcidev (hwloc_topology_t topology, hwloc_obj_t prev) static inline hwloc_obj_t hwloc_get_pcidev_by_busid (hwloc_topology_t topology, unsigned domain, unsigned bus, unsigned dev, unsigned func) static inline hwloc_obj_t hwloc_get_pcidev_by_busidstring (hwloc_topology_t topology, const char *busid) static inline hwloc_obj_t hwloc_get_next_osdev (hwloc_topology_t topology, hwloc_obj_t prev) static inline hwloc_obj_t hwloc_get_next_bridge (hwloc_topology_t topology, hwloc_obj_t prev) static inline int hwloc_bridge_covers_pcibus (hwloc_obj_t bridge, unsigned domain, unsigned bus) static inline hwloc_obj_t hwloc_get_hostbridge_by_pcibus (hwloc_topology_t topology, unsigned domain, unsigned bus) Function Documentation static inline int hwloc_bridge_covers_pcibus (hwloc_obj_tbridge, unsigneddomain, unsignedbus) [static] static inline hwloc_obj_t hwloc_get_hostbridge_by_pcibus (hwloc_topology_ttopology, unsigneddomain, unsignedbus) [static] Find the hostbridge that covers the given PCI bus. This is useful for finding the locality of a bus because it is the hostbridge parent cpuset. static inline hwloc_obj_t hwloc_get_next_bridge (hwloc_topology_ttopology, hwloc_obj_tprev) [static] Get the next bridge in the system. Returns: the first bridge if prev is NULL. static inline hwloc_obj_t hwloc_get_next_osdev (hwloc_topology_ttopology, hwloc_obj_tprev) [static] Get the next OS device in the system. Returns: the first OS device if prev is NULL. static inline hwloc_obj_t hwloc_get_next_pcidev (hwloc_topology_ttopology, hwloc_obj_tprev) [static] Get the next PCI device in the system. Returns: the first PCI device if prev is NULL. static inline hwloc_obj_t hwloc_get_non_io_ancestor_obj (hwloc_topology_t topology, hwloc_obj_tioobj) [static] Get the first non-I/O ancestor object. Given the I/O object ioobj, find the smallest non-I/O ancestor object. This regular object may then be used for binding because its locality is the same as ioobj. static inline hwloc_obj_t hwloc_get_pcidev_by_busid (hwloc_topology_ttopology, unsigneddomain, unsignedbus, unsigneddev, unsignedfunc) [static] Find the PCI device object matching the PCI bus id given domain, bus device and function PCI bus id. static inline hwloc_obj_t hwloc_get_pcidev_by_busidstring (hwloc_topology_ttopology, const char *busid) [static] Find the PCI device object matching the PCI bus id given as a string xxxx:yy:zz.t or yy:zz.t. Author Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code. Version 1.4.1 Mon Feb 27 2012 Advanced I/O object traversal helpers(3)
All times are GMT -4. The time now is 08:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy