My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
CListOld Class Reference

#include <f5lists.h>

Public Member Functions

 CListOld ()
 
 CListOld (CPairOld *c)
 
 ~CListOld ()
 
CNodegetFirst ()
 
void insert (CPairOld *c)
 
void insertWithoutSort (CPairOld *c)
 
CNodegetMinDeg ()
 
void print ()
 

Private Attributes

CNodefirst
 

Detailed Description

Definition at line 269 of file f5lists.h.

Constructor & Destructor Documentation

◆ CListOld() [1/2]

CListOld::CListOld ( )

Definition at line 919 of file f5lists.cc.

919 {
920 first = NULL;
921}
CNode * first
Definition: f5lists.h:271
#define NULL
Definition: omList.c:12

◆ CListOld() [2/2]

CListOld::CListOld ( CPairOld c)

Definition at line 923 of file f5lists.cc.

923 {
924 first = new CNode(c);
925}
Definition: f5lists.h:232

◆ ~CListOld()

CListOld::~CListOld ( )

Definition at line 927 of file f5lists.cc.

927 {
928 CNode* temp;
929 while(NULL != first) {
930 temp = first;
931 first = first->getNext();
932 delete temp;
933 }
934}
CNode * getNext()
Definition: f5lists.cc:824

Member Function Documentation

◆ getFirst()

CNode * CListOld::getFirst ( )

Definition at line 946 of file f5lists.cc.

946 {
947 return first;
948}

◆ getMinDeg()

CNode * CListOld::getMinDeg ( )

Definition at line 952 of file f5lists.cc.

952 {
953 CNode* temp = first;
954 first = first->getMinDeg();
955 return temp;
956}
CNode * getMinDeg()
Definition: f5lists.cc:805

◆ insert()

void CListOld::insert ( CPairOld c)

Definition at line 938 of file f5lists.cc.

938 {
939 first = first->insert(c);
940}
CNode * insert(CPairOld *c)
Definition: f5lists.cc:702

◆ insertWithoutSort()

void CListOld::insertWithoutSort ( CPairOld c)

Definition at line 942 of file f5lists.cc.

942 {
944}
CNode * insertWithoutSort(CPairOld *cp)
Definition: f5lists.cc:797

◆ print()

void CListOld::print ( )

Definition at line 958 of file f5lists.cc.

958 {
959 first->print();
960}
void print()
Definition: f5lists.cc:885

Field Documentation

◆ first

CNode* CListOld::first
private

Definition at line 271 of file f5lists.h.


The documentation for this class was generated from the following files: