All Questions
13 questions
6
votes
3
answers
1k
views
Simple Container Class
I'm learning C++ and trying to create my own container class just for practice (I know about vector, list, map, set). I plan to improve this class and add new methods as I learn new material. Please ...
1
vote
1
answer
114
views
An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++
This is a follow-up question for Multi-dimensional Image Data Structure with Variadic Template Functions in C++. Considering the suggestion from G. Sliepen:
Make everything work for more than 5 ...
5
votes
1
answer
294
views
Multi-dimensional Image Data Structure with Variadic Template Functions in C++
This is a follow-up question for Three dimensional data structure in C++. I am trying to implement multi-dimensional image data structure with variadic template functions. For example, ...
5
votes
2
answers
840
views
Three dimensional data structure in C++
This is a follow-up question for Three dimensional gaussian image generator in C++. Considering the suggestion from G. Sliepen:
Structure of a 3D image
Your 2D ...
1
vote
1
answer
176
views
A greedy approach to the Knapsack problem with C++ templates
The assignment is to be implemented on the following instructions:
You are to write a Knapsack class and the main() to support and
demonstrate the functionality required here.
A function generate(int)...
2
votes
2
answers
333
views
Template Complex class
I have created a class Complex which represents a complex number of any arbitrary arithmetic type. Overloads are given for the 4 common functions, addition, ...
2
votes
2
answers
692
views
Checking image size in C++
This is a follow-up question for 3D Inverse Discrete Cosine Transformation Implementation in C++. After checking G. Sliepen's answer, I am trying to update the part of width and height checking of <...
2
votes
1
answer
132
views
Gallery template class
I have created a template class Gallery which is intended to be used as a container for objects. I used a private member of type...
2
votes
1
answer
110
views
Tests for the operators of image template class in C++
This is a follow-up question for Two dimensional gaussian image generator in C++. Thanks for Cris Luengo's answer and JDługosz's answer. I am attempting to update the implementation of ...
7
votes
2
answers
2k
views
Cleanly passing in a large number of mutable parameters through a python class
I want to create two classes, one for attributes and one for functional behaviors. The point of the attributes class was to hold all of the attributes along with property methods (setters/getters), ...
2
votes
1
answer
941
views
Generic Doubly Linked-list implementation in C++
I am just learning about C++ templates and generic types, I decided it would be nice to try to create a generic container class as a challenge and test my knowledge in the process. Here is what I have ...
4
votes
2
answers
2k
views
Email Template Parser PHP Class
This is a very basic PHP class that I am working on which will allow me to provide an HTML template in the form of a string saved to a variable or into an actual template file. I can then pass into ...
5
votes
1
answer
5k
views
Wrap function pointers in template classes
I'm working on a C++ library for Arduino and other embedded systems.
I'm currently working on wrapping up function pointers and member-function pointers into two C++ template classes (function and ...