You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* Brain.cpp :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2022/06/24 11:24:53 by narnaud #+# #+# */
|
|
|
|
/* Updated: 2022/07/19 14:22:38 by narnaud ### ########.fr */
|
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#include "Brain.hpp"
|
|
|
|
|
|
|
|
Brain::Brain (void) {
|
|
|
|
cout << "Brain default constructor called " << endl;
|
|
|
|
}
|
|
|
|
|
|
|
|
Brain::Brain (Brain const & src) {
|
|
|
|
for (int i = 0; i < 100; i++)
|
|
|
|
_ideas[i] = src._ideas[i];
|
|
|
|
cout << "Brain copy constructor called" << endl;
|
|
|
|
}
|
|
|
|
|
|
|
|
Brain & Brain::operator= (Brain const & src) {
|
|
|
|
for (int i = 0; i < 100; i++)
|
|
|
|
_ideas[i] = src._ideas[i];
|
|
|
|
cout << "Brain assignment operator called" << endl;
|
|
|
|
return (*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
Brain::~Brain (void) {
|
|
|
|
|
|
|
|
cout << "Brain default destructor called" << endl;
|
|
|
|
}
|