• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

bt::BListNode

bt::BListNode Class Reference

#include <bnode.h>

Inheritance diagram for bt::BListNode:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Joris Guisson

Represents a list in bencoded data

Definition at line 160 of file bnode.h.


Public Member Functions

void append (BNode *node)
 BListNode (Uint32 off)
BNode * getChild (Uint32 idx)
BDictNode * getDict (Uint32 idx)
BListNode * getList (Uint32 idx)
Uint32 getNumChildren () const
BValueNode * getValue (Uint32 idx)
void printDebugInfo ()
virtual ~BListNode ()

Constructor & Destructor Documentation

bt::BListNode::BListNode ( Uint32  off  ) 

Definition at line 135 of file bnode.cpp.

bt::BListNode::~BListNode (  )  [virtual]

Definition at line 140 of file bnode.cpp.


Member Function Documentation

void bt::BListNode::append ( BNode *  node  ) 

Append a node to the list.

Parameters:
node The node

Definition at line 150 of file bnode.cpp.

BNode* bt::BListNode::getChild ( Uint32  idx  )  [inline]

Get a node from the list.

Parameters:
idx The index
Returns:
The node or 0 if idx is out of bounds

Definition at line 182 of file bnode.h.

BDictNode * bt::BListNode::getDict ( Uint32  idx  ) 

Get a BDictNode.

Parameters:
idx The index
Returns:
The node or 0 if the index is out of bounds or the element at postion idx isn't a BDictNode.

Definition at line 160 of file bnode.cpp.

BListNode * bt::BListNode::getList ( Uint32  idx  ) 

Get a BListNode.

Parameters:
idx The index
Returns:
The node or 0 if the index is out of bounds or the element at postion idx isn't a BListNode.

Definition at line 155 of file bnode.cpp.

Uint32 bt::BListNode::getNumChildren (  )  const [inline]

Get the number of nodes in the list.

Definition at line 175 of file bnode.h.

BValueNode * bt::BListNode::getValue ( Uint32  idx  ) 

Get a BValueNode.

Parameters:
idx The index
Returns:
The node or 0 if the index is out of bounds or the element at postion idx isn't a BValueNode.

Definition at line 165 of file bnode.cpp.

void bt::BListNode::printDebugInfo (  )  [virtual]

Print some debugging info.

Implements bt::BNode.

Definition at line 170 of file bnode.cpp.


The documentation for this class was generated from the following files:
  • bnode.h
  • bnode.cpp

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal