tk_list
List of: Classes
Contents: Kernel

Purpose: Base class that can be used to manage a list of items.

Derivation: tk_list : ACIS_OBJECT : -

Filename: kern/kernel/geomhusk/tklist.hxx

Description: Refer to the purpose.

Constructor: public: tk_list::tk_list ();


Default constructor.




Destructor: public: tk_list::~tk_list ();


Deletes this object when it goes out of scope. However deleting the object would not delete the items in the list.



Methods: public: void tk_list::add_after (


tk_list_object* obj //


);


Adds the object after the current position.






public: void tk_list::add_before (


tk_list_object* obj //


);


Adds the object before the current position






public: void tk_list::add_head (


tk_list_object* obj //


);


Adds the object to the head of the list.






public: void tk_list::add_tail (


tk_list_object* obj //


);


Adds the object to the end of the list.






public: int tk_list::count ();


Returns number of objects in the list.






public: tk_list_object* tk_list::del ();


Deletes the current object from the list.






public: tk_list_object* tk_list::del_head ();


Deletes an object from the head of the list and returns a pointer to the deleted object.






public: tk_list_object* tk_list::del_object (


tk_list_object* //


);


Deletes a specific object from the list referenced by the pointer.






public: tk_list_object* tk_list::del_tail ();


Deletes an object from the end of the list and returns a pointer to the deleted object.






public: tk_list_object* tk_list::get_current ();


Returns the current object from the list.






public: tk_list_object* tk_list::head ();


Sets the current object to the first object in the list.






public: tk_list_object* tk_list::next ();


Moves the current object to the next item in the list.






public: tk_list_object* tk_list::pop ();


Pops an object from the end of the list.






public: tk_list_object* tk_list::prev ();


Moves the current object to the previous item in the list.






public: void tk_list::push (


tk_list_object* obj //


);


Pushes an object to the end of the list.






public: void tk_list::set_current (


tk_list_object* obj //


);


Sets the current object to the object referenced by the pointer.






public: tk_list_object* tk_list::tail ();


Sets the current object to the last object in the list.
PDF/KERN/38CLT.PDF
HTM/DATA/KERN/KERN/38CLT/0007.HTM