Questions tagged [heterogeneous]

This tag is ambiguous. Please use other, more specific tags to narrow down the scope of your question.

This tag is ambiguous. Please use other, more specific tags to narrow down the scope of your question.

116 questions
0
votes
0 answers

What is the better solution to save heterogeneous listview?

I have an adapter for a list of heterogeneous items, all of Action type. ActionAdapter.java import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import…
Giorgio Aresu
  • 1,138
  • 1
  • 7
  • 9
0
votes
3 answers

C++ How to tell apart specific object types from a Heterogeneous Collection?

So if i have a heterogeneous collection of Car objects Car* c = {truck, van, convertible} If the collection of objects was random and I wanted to go through the collection with a for loop, how can I test for the specific object type?
user1057004
0
votes
0 answers

Heterogenous sharding

Exists: Several databases on different DBSM(Postgres, Mysql, Oracle, Firebird etc) Databases have several identical rows (ids, entities names) The task: Execute read SQL query on the whole list of databases. The question: Is there any known…
0
votes
1 answer

Can I make the typesafe heterogeneous container like the one fromf Bloch's Effective Java work with JPA?

What I need is something like public class Catalog { private Map, Object> options = new HashMap, Object>(); public void addOption(Class>, T Option) { ... } public T getSelectedOption() { …
simou
  • 2,467
  • 4
  • 30
  • 39
-1
votes
1 answer

Is there a way to have Heterogeneous Map In C++?

Is there a way to have a heterogeneous map implementation as the below with the following conditions please: The types are known at run time as well as the read keys. Almost zero overhead e.g. not boost::any that's slow for my purposes. No ugly…
Vero
  • 313
  • 2
  • 9
-1
votes
1 answer

Heterogeneous collection as a member of a class in Rust

I am new to Rust, and does not fully understand lifetime, so probably, that is why I can't solv the following issue. I need a solution in which a class has a heterogeneous HashMap containing different objects derived from the same trait. I have to…
FERcsI
  • 388
  • 1
  • 10
-1
votes
1 answer

Sectioned and heterogeneouse recyclerview combination

Hello this seems very complicated layout to me if anyone can help me with the sectioned and heterogeneous recyclerview together it would be very good and helpful for me.
Ankita Singh
  • 304
  • 3
  • 17
-1
votes
1 answer

Alternative to dynamic polymorphisme C++

Consider the following polymorphisme case: class Shape { public: Shape(); virtual void draw() = 0; virtual ~Shape(); } class Triangle : public Shape { public: Triangle(); void draw(); ~Triangle(); } class Square : public Shape…
soall
  • 13
  • 1
  • 4
-1
votes
1 answer

How to create Heterogenous Layouts from json response

Hi please help me inflate layout based on json response type I am trying to merge http://androidcss.com/android/fetch-json-data-android/ this tutorial with this https://github.com/codepath/android_guides/wiki/Heterogenous-Layouts-inside-RecyclerView…
Muhsin
  • 47
  • 3
  • 11
-1
votes
2 answers

How to store tabular data

I need your help for a functionnal question about data storage. I'm on a project where the user can save a sort of excel table on the server. The size of the tables isn't fixed. What is the best solution to store the tables ? As an array stored as a…
DescampsAu
  • 1,056
  • 2
  • 10
  • 29
-2
votes
1 answer

Heterogeneous list and dynamic array allocation

So I'm having an issue populating this heterogeneous list. I'm passed in a text file and use it to populate the member data of the objects then add them to the list. This is my first time using this and I can't understand why it's not working…
1 2 3 4 5 6 7
8