Sponsored Content
Full Discussion: C++ programming using lists
Top Forums Programming C++ programming using lists Post 302303731 by tiger13e on Friday 3rd of April 2009 10:46:50 AM
Old 04-03-2009
I need help with these parts.

// Remove items in rhs and add to this list (in order?)
void merge(List & rhs)
{
//
}

// Reverse the order of items
void reverse()
{
//
}

// Sort in ascending order
void sort()
{
//
}

// Remove all occurrences of the object
void removeAll(const Object & x)
{
//
}

// Count the number of occurrences of a (value?)
void countOcc(const Object & x)
{
//
}
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check lists for Unix Shell Programming

Hi all, Can anyone provide me any checklists or a list of steps I should follow before executing my scripts. Could also tell me if there are any other standards to be followed while shell programming like naming conventions for variables etc. Your help would be much appreciated. Regards,... (2 Replies)
Discussion started by: srikanth_ksv
2 Replies

2. Shell Programming and Scripting

Question on lists

I'm fairly new to shell scripting and would like to know if what I am seeking to do is possible in shell. I'm trying to make a list of strings. The list will be looped through and each member of the list will be used to pass a parsing option to python. My script looks something like this: ... (3 Replies)
Discussion started by: Nacre
3 Replies

3. UNIX for Dummies Questions & Answers

Carreer:Networking Programming in Unix (C programming Language)

Hello, I am trying to learn Networking Programming in C in unix enviorment. I want to know how good it is to become a network programmer. i am crazy about Network programming but i also want to opt for the best carreer options. Anybody experienced Network Programmer, please tell me is my... (5 Replies)
Discussion started by: vibhory2j
5 Replies

4. Shell Programming and Scripting

Shell Script to Create non-duplicate lists from two lists

File_A contains Strings: a b c d File_B contains Strings: a c z Need to have script written in either sh or ksh. Derive resultant files (File_New_A and File_New_B) from lists File_A and File_B where string elements in File_New_A and File_New_B are listed below. Resultant... (7 Replies)
Discussion started by: mlv_99
7 Replies

5. Shell Programming and Scripting

combining two lists

Hi, So I I received two lists for my merchandise and both are similar but differences do occur. I want to combine two lists that have similar names but I dont want the similar name to come up twice because I will end up purchasing two of those items. Heres an example below (file is massive). ... (1 Reply)
Discussion started by: kylle345
1 Replies

6. Shell Programming and Scripting

get the lists

I expert, I may cross post something similar but I dirtyed my quesion somehow to be clear in the thread #cat file1 88dee gcc: Grok for callconvention-hard to enable hard float a2ad2 eglibc: package mtrace separately 61487 python: bump PR of packages after update of distutils.bbclass... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

7. UNIX for Dummies Questions & Answers

From iOS programming to Linux system programming

Hello. I like Linux and C programming language. Allways wanted to understand kernel and become a Linux system programmer. And I also like Objective-C and iOS. These two programming areas have relations: 1. Linux and iOS are UNIX-like systems, POSIX compliant. 2. It is useful to know C language... (2 Replies)
Discussion started by: Rockatansky
2 Replies

8. UNIX for Dummies Questions & Answers

Lists in awk

Hi togehter! I would like to write an awk script which prints the first column divided by the sum of the second column: So if this is my list 1 2 2 1 3 1 4 1 it should print a list like this: 1/5 2/5 3/5 4/5 My idea was to use END like this: (3 Replies)
Discussion started by: bjoern456
3 Replies

9. Shell Programming and Scripting

Issue with Lists

Hey guys, so I wrote this simple script. The first time I typed it all out, I had the issue where whatever choice I entered, it would simply tell me it was a "bad selection" aka the else output. I redid everything, and now no matter the choice, it does the backup option.. My brain hurts, and... (12 Replies)
Discussion started by: jakelawson44
12 Replies

10. Shell Programming and Scripting

Combining lists

Hello everybody. My operating system is Fedora30, shell - bash I faced combining lists. I will be glad for help regarding strings, arrays and so on. The bottom line is as follows. It is necessary to combine each element from the first list with elements from the second. if the second is longer... (4 Replies)
Discussion started by: nezabudka
4 Replies
SbProfilingData(3)						       Coin							SbProfilingData(3)

NAME
SbProfilingData - Data structure for gathering scene graph traversal profiling information. SYNOPSIS
Public Types enum FootprintType { MEMORY_SIZE, VIDEO_MEMORY_SIZE } enum NodeFlag { GL_CACHED_FLAG, CULLED_FLAG } enum NodeDataQueryFlags { INCLUDE_CHILDREN = 0x01 } typedef void SbProfilingDataCB (void *userdata, const SbProfilingData &data, const SbList< SoNode * > &pointers, SbList< int > &childindices, int idx) Public Member Functions SbProfilingData (void) SbProfilingData (const SbProfilingData &rhs) ~SbProfilingData (void) void setActionType (SoType actiontype) SoType getActionType (void) const void setActionStartTime (SbTime starttime) SbTime getActionStartTime (void) const void setActionStopTime (SbTime stoptime) SbTime getActionStopTime (void) const SbTime getActionDuration (void) const void setNodeTiming (const SoPath *path, SbTime timing) void setNodeTiming (int idx, SbTime timing) void preOffsetNodeTiming (int idx, SbTime timing) SbTime getNodeTiming (const SoPath *path, unsigned int queryflags=0) const SbTime getNodeTiming (int idx, unsigned int queryflags=0) const void setNodeFootprint (const SoPath *path, FootprintType type, size_t footprint) void setNodeFootprint (int idx, FootprintType type, size_t footprint) size_t getNodeFootprint (const SoPath *path, FootprintType type, unsigned int queryflags=0) const size_t getNodeFootprint (int idx, FootprintType type, unsigned int queryflags=0) const void setNodeFlag (const SoPath *path, NodeFlag flag, SbBool on) void setNodeFlag (int idx, NodeFlag flag, SbBool on) SbBool getNodeFlag (const SoPath *path, NodeFlag flag) const SbBool getNodeFlag (int idx, NodeFlag flag) const int getIndex (const SoPath *path, SbBool create=FALSE) int getParentIndex (int idx) const SoType getNodeType (int idx) const SbName getNodeName (int idx) const int getLongestNameLength (void) const int getLongestTypeNameLength (void) const int getNumNodeEntries (void) const void reportAll (SbProfilingDataCB *callback, void *userdata) const void getStatsForTypesKeyList (SbList< SbProfilingNodeTypeKey > &keys_out) const void getStatsForType (SbProfilingNodeTypeKey type, SbTime &total, SbTime &max, uint32_t &count) const void getStatsForNamesKeyList (SbList< SbProfilingNodeNameKey > &keys_out) const void getStatsForName (SbProfilingNodeNameKey name, SbTime &total, SbTime &max, uint32_t &count) const void reset (void) SbProfilingData & operator= (const SbProfilingData &rhs) SbProfilingData & operator+= (const SbProfilingData &rhs) int operator== (const SbProfilingData &rhs) const int operator!= (const SbProfilingData &rhs) const size_t getProfilingDataSize (void) const Protected Attributes SoType actionType SbTime actionStartTime SbTime actionStopTime Detailed Description Data structure for gathering scene graph traversal profiling information. Constructor &; Destructor Documentation SbProfilingData::SbProfilingData (void) Constructor. SbProfilingData::SbProfilingData (const SbProfilingData &rhs) Copy constructor. SbProfilingData::~SbProfilingData (void) Desctructor. Member Function Documentation void SbProfilingData::setActionType (SoTypeactiontype) Register which type of action we are recording statistics for. SoType SbProfilingData::getActionType (void) const Return the action type set for this SbProfilingData. void SbProfilingData::setActionStartTime (SbTimestarttime) Set traversal start time. SbTime SbProfilingData::getActionStartTime (void) const Return the action start time. void SbProfilingData::setActionStopTime (SbTimestoptime) Set traversal stop time. SbTime SbProfilingData::getActionStopTime (void) const Return the action stop time. SbTime SbProfilingData::getActionDuration (void) const Return the time the action has spent on the traversal that was profiled. void SbProfilingData::setNodeTiming (const SoPath *path, SbTimetiming) This function calls the index-version of setNodeTiming after having fetched the index. void SbProfilingData::setNodeTiming (intidx, SbTimetiming) This method sets the timing for a node, as if it was new data to be registered. This means that counters of various types are implicitly incremented and similar things. To avoid those sideeffects, use offsetNodeTiming, which leaves all the counters alone. See also: offsetNodeTiming void SbProfilingData::preOffsetNodeTiming (intidx, SbTimetiming) This function will adjust node timings without touching traversal counters. SbTime SbProfilingData::getNodeTiming (const SoPath *path, unsigned intflags = 0) const Returns the timing for a node. int SbProfilingData::getIndex (const SoPath *path, SbBoolcreate = FALSE) Return the index of the tail node in the path. If node is not registered, add it and return that index. int SbProfilingData::getParentIndex (intidx) const Return the index of the parent of the node entry at index idx. If entry is a root entry, -1 is returned. void SbProfilingData::reset (void) Remove all stored data. SbProfilingData & SbProfilingData::operator= (const SbProfilingData &rhs) Assignment operator. SbProfilingData & SbProfilingData::operator+= (const SbProfilingData &rhs) Add profiling data from another data set. size_t SbProfilingData::getProfilingDataSize (void) const Returns the amount of memory allocated for this data structure. Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 SbProfilingData(3)
All times are GMT -4. The time now is 01:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy