Skip to main content
1 vote
2 answers
127 views

I have a very simple Java class that looks like this public class StatementRegister { public static final Map<String, Supplier<Statement<?>>> registry = new HashMap<>(); ...
slit bodmod's user avatar
1 vote
2 answers
98 views

I'm creating GPIO abstraction driver for stm32. There should be a class with register accesses and another class that holds a reference to it. In that way the class holding a reference has no idea ...
Nik's user avatar
  • 11
2 votes
1 answer
125 views

typedef struct { WindowData data; bool vsync; } Window; typedef struct { Window window; GLFWwindow *native_window; } WindowsWindow; Window *windowCreate(const WindowProperties props,...
Aidan's user avatar
  • 87
0 votes
2 answers
74 views

I am using ThemeData's "extensions" property: ThemeData( ... extensions: <ThemeExtension>[ CustomThemeExtension( ... ), ... ), by looking at its definition: Iterable&...
Fi Li Ppo's user avatar
  • 320
3 votes
2 answers
242 views

In my application I want to have an EventPersister trait that defines an abstraction of persisting events, then have various implementations that, for example, persist events in memory, in the file ...
bikeman868's user avatar
  • 2,685
-2 votes
2 answers
140 views

I want to activate, via reflection automatically and recursively all the nested classes inside a class I am instantiating. Here is the template of what I am trying to do, but I do not know how to make ...
Jada's user avatar
  • 25
6 votes
1 answer
497 views

I have been exploring different abstractions in Swift, and I found myself stumped on how to determine the type of a tuple's element from its own type. I know the compiler and Xcode are quick to ...
PipWasHere's user avatar
-1 votes
1 answer
64 views

I am looking for a C# solution that allows me to create a base class (AParam) whose inherited classes (Param) can be generic in order to implement different, type-dependent versions of a function (...
Simon Spielmann's user avatar
-1 votes
1 answer
65 views

I found this idea in the paper Abstraction for AoS and SoA Layout in C++ by Robert Strzodka (PDF) for applying a AoS (Array of Strucures) access to an SoA (Structure of Arrays) container without ...
PyOPTProblem's user avatar
0 votes
1 answer
243 views

I have multiple notifiers with similar search and other logic, the only difference being the API call. How can I abstract that logic out? And reuse my Notifier in multiple places? Example : ...
Burhanuddin Rashid's user avatar
2 votes
1 answer
95 views

Based on this topic, I wonder if it would be possible to have a factory class that would provide a container type, without defining the type of element of the container. Something like: template <...
canellas's user avatar
  • 757
-1 votes
1 answer
61 views

I have searched about this topic everywhere that what's the difference between abstraction and encapsulation , even one of the most voted stack overflow question , but at the end it seems confusing ...
RISHABH SHANDILYA's user avatar
1 vote
2 answers
211 views

SYCL offers NDRange and Hierarchical kernel parallelism abstractions. My questions: Is it true to claim that NDRange better mapped into GPUs hardware and Hierarchical parallelism better mapped into ...
Ami's user avatar
  • 21
-1 votes
2 answers
70 views

I have a class that returns an ArrayList of ArrayLists. I would like to return a Collection of Collections to abstract the output datatype. With a standard ArrayList, its easy - just define the return ...
ecc521's user avatar
  • 667
0 votes
1 answer
143 views

I want to write code to communicate with encoders of different positioning styles (absolute vs. relative). The idea I have is to create a base class that has things common to all encoders. Then there ...
tbickford's user avatar

15 30 50 per page
1
2 3 4 5
76