Questions tagged [classes]
Core to Object-Oriented Programming (OOP), a class is a template for creating new objects that describes the common state(s) and behavior(s).
444 questions
4
votes
1
answer
193
views
Using Lightweight Objects in VBA
Lightweight Objects implementation in VBA7 (32/64-bit)
As shown here, VB* class instance deallocation becomes exponentially slower the more instances of a particular class module there are.
Cristian ...
1
vote
0
answers
29
views
A calendar event element
Below is code for a front end calendar event element I have just finished. Though I have been programming in JavaScript for a while, this is the first time I have created a custom class and element, ...
1
vote
0
answers
102
views
Counting the number of instances of a class module in VB*
In VBForums I found the following post:
Is there a way of retrieving the number of instances of a VB* class from within the class itself?
One could store an instance counter in a Public variable in a ...
2
votes
1
answer
111
views
IndexedLinkedList.java - A fast list data structure for large data, Take V/V (the finger list)
Intro
This post is all about so called finger list, which is a data structure for speeding up the
linked-list operations.
Code
...
1
vote
0
answers
50
views
IndexTupleIterator.java: an iterator that generates index tuples in lexicographic order, Take IV
(See the previous iteration here.)
This time, I have incorporated the answer from YawarRaza7349.
Now, my code looks like this:
...
3
votes
3
answers
221
views
IndexTupleIterator.java: an iterator that generates index tuples in lexicographic order, Take III
(See the next iteration here.)
(See the previous iteration here.)
This time, I have incorporated a nice answer from Simon Forsberg.
Now, my code looks like this:
...
1
vote
1
answer
60
views
IndexTupleIterator.java: an iterator that generates index tuples in lexicographic order, Take II
(See the previous iteration here.)
(See the next iteration here.)
This time, I improved the iterator such that there is no chance of numeric overflow when computing the total number of iterations. To ...
4
votes
1
answer
89
views
IndexTupleIterator.java: an iterator that generates index tuples in lexicographic order
(See the next iteration here.)
Intro
This time, I have an Iterator<List<Integer>> implementation that generates list index tuples in lexicographic order....
2
votes
1
answer
222
views
Histogram Class Implementation using std::variant for Image in C++
This is a follow-up question for An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++, histogram Template Function Implementation for Image in C++, Histogram of ...
5
votes
1
answer
111
views
Histogram Class Implementation for Image in C++
This is a follow-up question for An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++, histogram Template Function Implementation for Image in C++, Histogram of ...
1
vote
0
answers
49
views
Class to make UserDefaults get/set easier in Swift
I created the following class to ease UserDefaults get/set within my Swift project.
...
7
votes
4
answers
978
views
Project Euler #54: class for poker hands
I'm working right now on Project Euler problem 54, and I figured that this was the perfect opportunity to try to work with classes. This is my first time, so I'm sure that there are a lot of style, ...
8
votes
4
answers
1k
views
13
votes
0
answers
544
views
Faster VB6 / VBA class deallocation
For latest additions, see Edit sections at the bottom of this question.
VB6 / VBA is slow to deallocate class instances
VB* class instance deallocation becomes exponentially slower the more instances ...
1
vote
1
answer
114
views
set Member Function Implementation for Image in C++
This is a follow-up question for draw_if_possible Template Function Implementation for Image in C++. In G. Sliepen's answer, set member function has been mentioned. ...