// Copyright 2004 Laurent GUEGUEN // This file is part of Sarment. // Sarment is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // Sarment is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with Sarment; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA template S_Noeud_val::S_Noeud_val(): S_Noeud(), _val(0) { } template S_Noeud_val::S_Noeud_val(void*) { } template S_Noeud_val::S_Noeud_val(const S_Noeud_val& c): S_Noeud(c), _val(c._val) { } template S_Noeud_val::~S_Noeud_val() { } //////////////////////////////// // modifications //////////////////////////////// template double S_Noeud_val::val() const { return _val; } template void S_Noeud_val::g_val(double x) { _val=x; } template void S_Noeud_val::init(const S& s, double v, S_Noeud& demar) { S::operator=(s); _val=v; dev_su(demar); } template void S_Noeud_val::modif_dev_su(double v, S_Noeud& s) { _val=v; dev_su(s); } template void S_Noeud_val::operator=(S_Noeud_val& c) { S_Noeud::operator=(c); _val=c._val; } template void S_Noeud_val::operator+=(S_Noeud_val& c) { S_Noeud::operator+=(c); } template void S_Noeud_val::operator+=(double f) { _val+=f; }