ulib  1.0
S.W. Lee's essential C++ library
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Public Member Functions | Public Attributes | List of all members
ulib::CUListNode Class Reference

List Node. More...

#include <ulist.h>

Inheritance diagram for ulib::CUListNode:
Inheritance graph
[legend]
Collaboration diagram for ulib::CUListNode:
Collaboration graph
[legend]

Public Member Functions

 CUListNode ()
 생성자
 ~CUListNode ()
 소멸자
bool HaveNext ()
 다음 node가 있는지 체크
bool HavePrev ()
 이전 node가 있는지 체크
- Public Member Functions inherited from ulib::CUNode
 CUNode ()
 ~CUNode ()
bool SetData (void *arg_data, short arg_data_size)
bool GetData (void *ret_data)
void Clear ()
bool IsEmpty ()
void Verbose (int arg_verbose)

Public Attributes

CUListNodenext
 이전 노드
CUListNodeprev
 다음 노드
- Public Attributes inherited from ulib::CUNode
int id
void * data
size_t data_size

Detailed Description

List Node.

Date
Jun. 2, 2006 ~
Author
swlee
Warning
Bug:
Note

Constructor & Destructor Documentation

ulib::CUListNode::CUListNode ( )

생성자

Parameters
arg_data추가할 data의 시작 주소
arg_data_size추가할 data의 크기
Warning
추가하려는 data가 동적으로 생성되었을 때:
arg_data_size는 pointer의 크기(4byte)를 넣어주면 됨.
동적 data의 해제는 나중에 직접 해줘야 함.

References next, and prev.

ulib::CUListNode::~CUListNode ( )

소멸자

Member Function Documentation

bool ulib::CUListNode::HaveNext ( )

다음 node가 있는지 체크

Returns
있다면 true

References next.

Referenced by ulib::CUList::MoveToNext().

bool ulib::CUListNode::HavePrev ( )

이전 node가 있는지 체크

Returns
있다면 true

References prev.

Referenced by ulib::CUList::MoveToPrev().

Member Data Documentation

CUListNode* ulib::CUListNode::next
CUListNode* ulib::CUListNode::prev

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