Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

NVList Class Reference

#include <NVList.h>

Inheritance diagram for NVList:

NVlist NVcontainer List of all members.

Public Member Functions

 NVList ()
 NVList (const char *dbname, int flags=0)
int is_empty (void)
void prepend (const char *data, size_t szdata)
void append (const char *data, size_t szdata)
void remove (void)
void clear (void)
void print (std::ostream &os)

Detailed Description

Author:
Thomas Gschwind
Bug:
Documentation missing

Definition at line 15 of file NVList.h.


Constructor & Destructor Documentation

NVList::NVList  )  [inline]
 

Definition at line 19 of file NVList.h.

00019                  :NVlist() {
00020         } NVList(const char *dbname, int flags = 0):NVlist(dbname, flags) {

NVList::NVList const char *  dbname,
int  flags = 0
[inline]
 

Definition at line 20 of file NVList.h.

00020                                                    :NVlist(dbname, flags) {
00021         }


Member Function Documentation

void NVList::append const char *  data,
size_t  szdata
 

Definition at line 27 of file NVList.cc.

References NVcontainer::getdatap(), NVcontainer::lock(), and NVlist::sappend().

00028 {
00029         lock(ExclLock);
00030         sappend(getdatap(), data, szdata);
00031         lock(UnLock);
00032 }

void NVList::clear void   ) 
 

Definition at line 43 of file NVList.cc.

References NVcontainer::getdatap(), NVcontainer::lock(), and NVlist::sclear().

00044 {
00045         lock(ExclLock);
00046         sclear(getdatap());
00047         lock(UnLock);
00048 }

int NVList::is_empty void   ) 
 

Definition at line 11 of file NVList.cc.

References NVcontainer::getdatap(), NVcontainer::lock(), and NVlist::sis_empty().

00012 {
00013         int r;
00014         lock(ShrdLock);
00015         r = sis_empty(getdatap());
00016         lock(UnLock);
00017         return r;
00018 }

void NVList::prepend const char *  data,
size_t  szdata
 

Definition at line 20 of file NVList.cc.

References NVcontainer::getdatap(), NVcontainer::lock(), and NVlist::sprepend().

00021 {
00022         lock(ExclLock);
00023         sprepend(getdatap(), data, szdata);
00024         lock(UnLock);
00025 }

void NVList::print std::ostream &  os  ) 
 

Definition at line 50 of file NVList.cc.

References NVcontainer::getdatap(), NVcontainer::lock(), and NVlist::sprint().

00051 {
00052         lock(ShrdLock);
00053         sprint(getdatap(), os);
00054         lock(UnLock);
00055 }

void NVList::remove void   ) 
 

Definition at line 34 of file NVList.cc.

References NVcontainer::getdata(), NVcontainer::getdatap(), NVcontainer::lock(), and NVlist::sremove().

00035 {
00036         if (getdata()) {
00037                 lock(ExclLock);
00038                 sremove(getdatap());
00039                 lock(UnLock);
00040         }
00041 }


The documentation for this class was generated from the following files:
Generated on Sun Oct 24 21:08:24 2004 for NewsCache by doxygen 1.3.6-20040222