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

#include <f5lists.h>

Public Member Functions

 RTagList ()
 
 RTagList (RNode *r)
 
 ~RTagList ()
 
void insert (RNode *r)
 
RNodegetFirst ()
 
RNodeget (int idx)
 
void setFirst (RNode *r)
 
void print ()
 
int getLength ()
 

Private Attributes

RTagNodefirst
 
int length
 

Detailed Description

Definition at line 361 of file f5lists.h.

Constructor & Destructor Documentation

◆ RTagList() [1/2]

RTagList::RTagList ( )

Definition at line 1196 of file f5lists.cc.

1196 {
1197 RTagNode* first = new RTagNode();
1198 length = 0;
1199}
int length
Definition: f5lists.h:364
RTagNode * first
Definition: f5lists.h:363

◆ RTagList() [2/2]

RTagList::RTagList ( RNode r)

Definition at line 1201 of file f5lists.cc.

1201 {
1202 RTagNode* first = new RTagNode(r);
1203 length = 1;
1204}

◆ ~RTagList()

RTagList::~RTagList ( )

Definition at line 1206 of file f5lists.cc.

1206 {
1207 RTagNode* temp;
1208 while(first) {
1209 temp = first;
1210 first = first->getNext();
1211 delete temp;
1212 }
1213}
RTagNode * getNext()
Definition: f5lists.cc:1143

Member Function Documentation

◆ get()

RNode * RTagList::get ( int  idx)

Definition at line 1227 of file f5lists.cc.

1227 {
1228 return first->get(idx, length);
1229}
RNode * get(int idx, int length)
Definition: f5lists.cc:1150

◆ getFirst()

RNode * RTagList::getFirst ( )

Definition at line 1223 of file f5lists.cc.

1223 {
1224 return first->getRNode();
1225}
RNode * getRNode()
Definition: f5lists.cc:1137

◆ getLength()

int RTagList::getLength ( )

Definition at line 1239 of file f5lists.cc.

1239 {
1240 return length;
1241}

◆ insert()

void RTagList::insert ( RNode r)

Definition at line 1216 of file f5lists.cc.

1216 {
1217 first = first->insert(r);
1218 //Print("LENGTH:%d\n",length);
1219 length = length +1;
1220 //Print("LENGTH:%d\n",length);
1221}
RTagNode * insert(RNode *r)
Definition: f5lists.cc:1130

◆ print()

void RTagList::print ( )

Definition at line 1235 of file f5lists.cc.

1235 {
1236 first->print();
1237}
void print()
Definition: f5lists.cc:1174

◆ setFirst()

void RTagList::setFirst ( RNode r)

Definition at line 1231 of file f5lists.cc.

1231 {
1232 first->set(r);
1233}
void set(RNode *)
Definition: f5lists.cc:1169

Field Documentation

◆ first

RTagNode* RTagList::first
private

Definition at line 363 of file f5lists.h.

◆ length

int RTagList::length
private

Definition at line 364 of file f5lists.h.


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