Скачиваний:
13
Добавлен:
01.05.2014
Размер:
1.42 Кб
Скачать
// ” ©«: celement.cpp
// ” ©« : celement.cpp
// ђҐ «Ё§ жЁп Є« бб  cElement
// Ђўв®а: ђг­®ў Ђ.Ђ. Ја. 2355
// „ в : 20.02.2005


#include "celement.h"
#include <stdio.h>
// Є®­бвагЄв®а:
	template <class tInfo> cElement<tInfo>::cElement(tInfo inf)
	/*
		€­ЁжЁ «Ё§ жЁп н«Ґ¬Ґ­в  бЇЁбЄ 
		§­ зҐ­ЁҐ¬ inf
	*/
	{
		info = inf;
		prev = next = NULL;
	}


// ¤ҐбвагЄв®а:
	template <class tInfo> void cElement<tInfo>::~cElement()
	{
	}



// ᥫҐЄв®ал:
	template <class tInfo> tInfo cElement<tInfo>::getInfo()
	/*
		‚®§ўа й Ґв Ї®«Ґ "§­ зҐ­ЁҐ" н«Ґ¬Ґ­в .
	*/
	{
		return info;
	}


	template <class tInfo> cElement<tInfo>* cElement<tInfo>::getPrev()
	/*
		‚®§ўа й Ґв гЄ § вҐ«м ­  ЇаҐ¤л¤гйЁ© н«Ґ¬Ґ­в.
	*/
	{
		return prev;
	}


	template <class tInfo> cElement<tInfo>* cElement<tInfo>::getNext()
	/*
		‚®§ўа й Ґв гЄ § вҐ«м ­  б«Ґ¤гойЁ© н«Ґ¬Ґ­в.
	*/
	{
		return next;
	}



// ¬®¤ЁдЁЄ в®ал:
	template <class tInfo> void cElement<tInfo>::setInfo(tInfo newinfo)
	/*
		“бв ­ ў«Ёў Ґв Ї®«Ґ "§­ зҐ­ЁҐ" н«Ґ¬Ґ­в .
	*/
	{
		info = newinfo;
	}


	template <class tInfo> void cElement<tInfo>::setPrev(cElement<tInfo>* newprev)
	/*
		“бв ­ ў«Ёў Ґв гЄ § вҐ«м ­  ЇаҐ¤л¤гйЁ© н«Ґ¬Ґ­в.
	*/
	{
		prev = newprev;
	}


	template <class tInfo> void cElement<tInfo>::setNext(cElement<tInfo>* newnext)
	/*
		“бв ­ ў«Ёў Ґв гЄ § вҐ«м ­  б«Ґ¤гойЁ© н«Ґ¬Ґ­в.
	*/
	{
		next = newnext;
	}
Соседние файлы в папке all