8 More Discussions You Might Find Interesting
1. Programming
I have the following template codes but some normal functions too and want
to group them together.
I usually put the implementation of templates in an .ipp file. What would be a good scheme for the normal functions. Put their implementations in a .cpp file, or leave them in the .ipp file?
... (3 Replies)
Discussion started by: kristinu
3 Replies
2. UNIX for Advanced & Expert Users
Hi all, for a while now I've been working on a linux distro and I'm a couple of tweaks away from it to be perfected so if any experts want to help me out please message me.
Thanks in advance.
(I know I've posted a similar thread on the same topic but it was closed due to an unhelpful title... (0 Replies)
Discussion started by: allk
0 Replies
3. Programming
I have some C++ code and want to have the class declarations in a .h file and the implementation in the .cpp file.
It seems however that for templates everything need to be put in the header (.h) file and will have problems if I try to separate the code to a .cpp file.
Is this correct? Is... (1 Reply)
Discussion started by: kristinu
1 Replies
4. Solaris
Hello life savers,
I'm having trouble compiling a specific program. The program was originally written for gcc and was compiled successfully under it. When trying to compile under Solaris 11, I get this error:
"Hashtable.h", line 170: Error: Could not find a match for hash needed in... (2 Replies)
Discussion started by: yp515
2 Replies
5. Shell Programming and Scripting
I am trying to write a script that would retrieve specific information from a template. I have been trying to no avail for the longest. This is what I wrote and it's not working.
cat filename | while read F5 F6
do
if ]
then
echo
$F5 $F6
fi
done
Here is the template (filename)
CN ... (7 Replies)
Discussion started by: Ernst
7 Replies
6. Post Here to Contact Site Administrators and Moderators
Hello,
Anybody in here has any idea where I can get a template like this one for vBulletin. I have actually got my board but it just doesn't look good in the template that I have! Thanks anyway!
him (2 Replies)
Discussion started by: him
2 Replies
7. Programming
Are there any web site templates on CGI that allow like this forum software user registration and profiles. I dont need forum software i just need to register and keep profiles of my users on my site. Any suggestions?
:confused:
Thank you all. (1 Reply)
Discussion started by: solvman
1 Replies
8. Programming
what we have:
class TClass {
public:
TClass();
};
template<class T> class FClass<T>: public T {
public:
FClass();
};
TClass::TClass() {
// some code
}
template<class T> FClass<T>::FClass : T() {
// some code
}
int main (int argc,char* argv) { (3 Replies)
Discussion started by: Marhinado John
3 Replies
Building Custom Topologies(3) Hardware Locality (hwloc) Building Custom Topologies(3)
NAME
Building Custom Topologies -
Functions
int hwloc_custom_insert_topology (hwloc_topology_t newtopology, hwloc_obj_t newparent, hwloc_topology_t oldtopology, hwloc_obj_t oldroot)
hwloc_obj_t hwloc_custom_insert_group_object_by_parent (hwloc_topology_t topology, hwloc_obj_t parent, int groupdepth)
Detailed Description
A custom topology may be initialized by calling hwloc_topology_set_custom() after hwloc_topology_init(). It may then be modified by
inserting objects or entire topologies. Once done assembling, hwloc_topology_load() should be invoked as usual to finalize the topology.
Function Documentation
hwloc_obj_t hwloc_custom_insert_group_object_by_parent (hwloc_topology_ttopology, hwloc_obj_tparent, intgroupdepth)
Insert a new group object inside a custom topology. An object with type HWLOC_OBJ_GROUP is inserted as a new child of object parent.
groupdepth is the depth attribute to be given to the new object. It may for instance be 0 for top-level groups, 1 for their children, and
so on.
The custom topology newtopology must have been prepared with hwloc_topology_set_custom() and not loaded with hwloc_topology_load() yet.
parent may be either the root of topology or an object that was added earlier through hwloc_custom_insert_group_object_by_parent().
int hwloc_custom_insert_topology (hwloc_topology_tnewtopology, hwloc_obj_tnewparent, hwloc_topology_toldtopology, hwloc_obj_toldroot)
Insert an existing topology inside a custom topology. Duplicate the existing topology oldtopology inside a new custom topology newtopology
as a leaf of object newparent.
If oldroot is not NULL, duplicate oldroot and all its children instead of the entire oldtopology. Passing the root object of oldtopology in
oldroot is equivalent to passing NULL.
The custom topology newtopology must have been prepared with hwloc_topology_set_custom() and not loaded with hwloc_topology_load() yet.
newparent may be either the root of newtopology or an object that was added through hwloc_custom_insert_group_object_by_parent().
Author
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
Version 1.7 Sun Apr 7 2013 Building Custom Topologies(3)