I have a couple questions about how to use C++ sets (std::set)
Is there a way to get the union, intersection, or difference of two C++ sets? (It's pretty easy to write my own functionto do that but I wanted to know if there was a built in function for it)
Can C++ sets be used as keys in a map?
...
Hi! I've a custom google map with different points:
Markers[0] = new Array(new GMarker(new GLatLng(45.0, 9.0)), "Location1", "<strong>Address Line</strong><br/>Some information");
Markers[1] = new Array(new GMarker(new GLatLng(45.0, 12.0)), "Location2", "<strong>Address Line</strong><br/>Some information");
etc.
Simply I want to chan...
Hi,
I'm trying to map a collection (of type map) using a foreign key and a fixed value as the key/mapping arguments.
I have several tables of product types and a language table which holds stuff like product names and so on.
Now let's say we have an Accessory table which holds (obviously) accessories, then the name of an accesory is s...
I was going through Josuttis's "Using Map's as associative arrays" and came across Using a std::map as an associative array in this forum. Now I have more questions on the constructors that are called when inserting into map.
Here is my sample program, ( Not using best coding practices, excuse me for that)
class C
{
public:
string ...
I want to create a large HashMap but the put() performance is not good enough. Any ideas?
Other data structure suggestions are welcome but I need the lookup feature of a Java Map:
map.get(key)
In my case I want to create a map with 26 million entries. Using the standard Java HashMap the put rate becomes unbearably slow after 2-3 milli...
I am iterating over, and modifying a map (which is created from an existing group of enum objects) like the following:
public class Dispenser {
private Map<Ingredient, Integer> availableIngredients =
new EnumMap<Ingredient, Integer>(Ingredient.class);
public void orderSandwich(SandwichType sandwichType) {
Map<Ingre...
How to decide the current point reach on google map?
Hi to All,
I have a list of points (pickup points) of a route that I want to show in my google map with polyline.
Now i have to get the current location of bus after every 30 second, so now how we can assume that our current location is reach on our pickup up point location. because ...
How can we add building names and/or landmarks to Google Maps? & to get new customize url to use it with adding our predefine landmarks.
...
Hi to All,
I am creating a custom map into MyMap link on google map for creating our own map with various placemark points &/or lines.
Can I use the url getting from crated map into our application to show it programmatically with adding some points through application.
Regards,
Girish
...
(Specifically, org.codehaus.groovy.util.AbstractConcurrentMap)
While doing some profiling of our application thats mixed Java/Groovy, I'm seeing a lot of references to the AbstractConcurrentMap class, none of which are explicit in the code base. Does groovy use this class when maps are instantiated in the groovy dynamic def myMap = [:]...
Hi,
I defined a tag map, and got a xml data file. I want to convert the xml data file to PDF by using iText. The question is how to embed fonts (e.g. polish font, chinese font) into target PDF when converting xml to PDF?
Thanks.
...
So you have this simple program that creates a set from a file :
#include <fstream>
#include <string>
#include <set>
int main()
{
std::set<std::string> Sdictionnary;
std::set<std::string>::const_iterator it = Sdictionnary.begin();
std::ifstream file("french.txt"); // A file containing 200 000 lines
std::string line;
while(getline...
I have a number of events that happen in a game. I want to control the time and order at which these events occur.
For example:
Event 1: Show some text on screen for N frames & play a sound effect
Event 2: Clear the text on the screen
My solution (maybe there is a better one), is to have a list of functions that contain the events. ...
I'm trying to build an an interactive map using RaphaelJS (e.g. http://raphaeljs.com/australia.html). Please check the source. It requires map path data to input. There is no clear explanation anywhere about how to obtain this information, other than the fact that illustrator or inkscape are capable of doing it.
I'm looking to obtain "S...
I have set (s) of unique maps (Java HashMaps currently) and wish to remove from it any maps that are completely contained by some other map in the set (i.e. remove m from s if m.entrySet() is a subset of n.entrySet() for some other n in s.)
I have an n^2 algorithm, but it's too slow. Is there a more efficient way to do this?
Edit:
th...
I have several markers on my map and want to center dynamily each time I click on a selected point which show a bunch of markers group.
Does anyone know how to do that in As3?
...
Hi!
Before I was trying to map my classes and namespaces, by using static calls I succeded and now I need to map the functions of my classes because they will be used dinamically.
Firstly I was thinking to hardcode in the constructor so I can assign a std:map with the string of the name of function pointing to the function itself.
f...
Hi,
My previous question about this subject was answered and I got some tests working nice.
http://stackoverflow.com/questions/1786809/c-map-functions-of-a-class
My question is now, if there is a way to while declaring the function, be able to register it in a map, like I realized in this question about namespaces and classes:
http://s...
Does the map::find method support case insensitive search?
I have a map as follows
map<string,vector<string> > directory;
and want the below search to ignore case.
directory.find(search_string);
...
I am looking for help on the subject how to use an Interface as Maps Key. I tried to implement a solution, and get no compiletime errors but runtime errors when running my integration tests. Is it not possible to use an Interface as a Key, or is it my tests there is something wrong with?
My code looks something like this
private Map<AI...