• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KMIME Library

  • KMime
  • BoolFlags
Public Member Functions | List of all members
KMime::BoolFlags Class Reference

#include <boolflags.h>

Public Member Functions

 BoolFlags ()
 
 ~BoolFlags ()
 
void clear ()
 
unsigned char * data ()
 
bool get (unsigned int i)
 
void set (unsigned int i, bool b=true)
 

Detailed Description

Provides a class for storing boolean values in single bytes.

This class provides functionality similar to QBitArray but requires much less memory. Only 16-bits (or 2-bytes) can be stored.

Definition at line 44 of file boolflags.h.

Constructor & Destructor Documentation

KMime::BoolFlags::BoolFlags ( )
inline

Constructs an empty 2-byte flag storage.

Definition at line 50 of file boolflags.h.

KMime::BoolFlags::~BoolFlags ( )
inline

Destroys the flag storage.

Definition at line 55 of file boolflags.h.

Member Function Documentation

void KMime::BoolFlags::clear ( )
inline

Sets all bits to false.

Definition at line 79 of file boolflags.h.

unsigned char* KMime::BoolFlags::data ( )
inline

Returns a pointer to the data structure used to store the bits.

Definition at line 84 of file boolflags.h.

bool BoolFlags::get ( unsigned int  i)

Get bit number i.

Parameters
iis the bit number. Valid values are 0 through 15. Higher values all return false.
Returns
Value of the single bit i. Invalid bit numbers return false.

Definition at line 59 of file boolflags.cpp.

void BoolFlags::set ( unsigned int  i,
bool  b = true 
)

Sets bit number i to the value b.

Parameters
iis the bit number. Valid values are 0 through 15. Higher values will be silently ignored.
bis the value to set for bit i.

Definition at line 35 of file boolflags.cpp.


The documentation for this class was generated from the following files:
  • boolflags.h
  • boolflags.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KMIME Library

Skip menu "KMIME Library"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal