fltk  1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X.
  Fossies Dox: fltk-1.3.5-source.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

Fl_Preferences::Node Class Reference

#include <Fl_Preferences.H>

Collaboration diagram for Fl_Preferences::Node:
[legend]

Public Member Functions

 Node (const char *path)
 
 ~Node ()
 
int write (FILE *f)
 
const char * name ()
 
const char * path ()
 
Nodefind (const char *path)
 
Nodesearch (const char *path, int offset=0)
 
NodechildNode (int ix)
 
NodeaddChild (const char *path)
 
void setParent (Node *parent)
 
Nodeparent ()
 
void setRoot (RootNode *r)
 
RootNodefindRoot ()
 
char remove ()
 
char dirty ()
 
void deleteAllChildren ()
 
int nChildren ()
 
const char * child (int ix)
 
void set (const char *name, const char *value)
 
void set (const char *line)
 
void add (const char *line)
 
const char * get (const char *name)
 
int getEntry (const char *name)
 
char deleteEntry (const char *name)
 
void deleteAllEntries ()
 
int nEntry ()
 
Entryentry (int i)
 

Static Public Attributes

static int lastEntrySet = -1
 

Private Member Functions

void createIndex ()
 
void updateIndex ()
 
void deleteIndex ()
 

Private Attributes

Nodechild_
 
Nodenext_
 
union {
   Node *   parent_
 
   RootNode *   root_
 
}; 
 
char * path_
 
Entryentry_
 
int nEntry_
 
int NEntry_
 
unsigned char dirty_:1
 
unsigned char top_:1
 
unsigned char indexed_:1
 
Node ** index_
 
int nIndex_
 
int NIndex_
 

Detailed Description

Definition at line 191 of file Fl_Preferences.H.

Constructor & Destructor Documentation

◆ Node()

Fl_Preferences::Node::Node ( const char *  path)

Definition at line 1206 of file Fl_Preferences.cxx.

References Fl_Preferences::path().

◆ ~Node()

Fl_Preferences::Node::~Node ( )

Definition at line 1250 of file Fl_Preferences.cxx.

References Fl_Preferences::deleteAllEntries(), and free().

Member Function Documentation

◆ add()

void Fl_Preferences::Node::add ( const char *  line)

Definition at line 1385 of file Fl_Preferences.cxx.

References b.

Referenced by Fl_Preferences::RootNode::read().

◆ addChild()

Fl_Preferences::Node * Fl_Preferences::Node::addChild ( const char *  path)

◆ child()

const char * Fl_Preferences::Node::child ( int  ix)

Definition at line 1509 of file Fl_Preferences.cxx.

References name().

Referenced by Fl_Preferences::group().

◆ childNode()

Fl_Preferences::Node * Fl_Preferences::Node::childNode ( int  ix)

Definition at line 1518 of file Fl_Preferences.cxx.

References next_.

Referenced by Fl_Preferences::Fl_Preferences().

◆ createIndex()

void Fl_Preferences::Node::createIndex ( )
private

Definition at line 1557 of file Fl_Preferences.cxx.

References next_.

◆ deleteAllChildren()

void Fl_Preferences::Node::deleteAllChildren ( )

Definition at line 1218 of file Fl_Preferences.cxx.

References next_.

Referenced by Fl_Preferences::deleteAllGroups().

◆ deleteAllEntries()

void Fl_Preferences::Node::deleteAllEntries ( )

Definition at line 1229 of file Fl_Preferences.cxx.

References free(), and Fl_Preferences::name().

Referenced by Fl_Preferences::deleteAllEntries().

◆ deleteEntry()

char Fl_Preferences::Node::deleteEntry ( const char *  name)

Definition at line 1412 of file Fl_Preferences.cxx.

References Fl_Preferences::name().

Referenced by Fl_Preferences::deleteEntry().

◆ deleteIndex()

void Fl_Preferences::Node::deleteIndex ( )
private

Definition at line 1577 of file Fl_Preferences.cxx.

References free().

◆ dirty()

char Fl_Preferences::Node::dirty ( )

Definition at line 1263 of file Fl_Preferences.cxx.

Referenced by Fl_Preferences::flush().

◆ entry()

Entry& Fl_Preferences::Node::entry ( int  i)
inline

Definition at line 241 of file Fl_Preferences.H.

Referenced by Fl_Preferences::entry().

◆ find()

Fl_Preferences::Node * Fl_Preferences::Node::find ( const char *  path)

◆ findRoot()

Fl_Preferences::RootNode * Fl_Preferences::Node::findRoot ( )

Definition at line 1314 of file Fl_Preferences.cxx.

References parent(), root_, and top_.

Referenced by Fl_Preferences::Fl_Preferences().

◆ get()

const char * Fl_Preferences::Node::get ( const char *  name)

Definition at line 1396 of file Fl_Preferences.cxx.

References Fl_Preferences::name().

Referenced by Fl_Preferences::get(), and Fl_Preferences::size().

◆ getEntry()

int Fl_Preferences::Node::getEntry ( const char *  name)

Definition at line 1402 of file Fl_Preferences.cxx.

References Fl_Preferences::name().

Referenced by Fl_Preferences::entryExists().

◆ name()

const char * Fl_Preferences::Node::name ( )

Definition at line 1499 of file Fl_Preferences.cxx.

Referenced by child().

◆ nChildren()

int Fl_Preferences::Node::nChildren ( )

Definition at line 1487 of file Fl_Preferences.cxx.

References next_.

Referenced by Fl_Preferences::groups().

◆ nEntry()

int Fl_Preferences::Node::nEntry ( )
inline

Definition at line 240 of file Fl_Preferences.H.

Referenced by Fl_Preferences::entries().

◆ parent()

Node* Fl_Preferences::Node::parent ( )
inline

Definition at line 224 of file Fl_Preferences.H.

Referenced by findRoot(), search(), and Fl_Preferences::~Fl_Preferences().

◆ path()

const char* Fl_Preferences::Node::path ( )
inline

Definition at line 218 of file Fl_Preferences.H.

◆ remove()

char Fl_Preferences::Node::remove ( )

Definition at line 1537 of file Fl_Preferences.cxx.

References child_, dirty_, and next_.

Referenced by Fl_Preferences::deleteGroup().

◆ search()

Fl_Preferences::Node * Fl_Preferences::Node::search ( const char *  path,
int  offset = 0 
)

◆ set() [1/2]

void Fl_Preferences::Node::set ( const char *  line)

Definition at line 1363 of file Fl_Preferences.cxx.

References Fl_Preferences::nameBuffer, Fl_Preferences::set(), and strlcpy.

◆ set() [2/2]

void Fl_Preferences::Node::set ( const char *  name,
const char *  value 
)

Definition at line 1336 of file Fl_Preferences.cxx.

References free(), and Fl_Preferences::name().

Referenced by Fl_Preferences::RootNode::read(), and Fl_Preferences::set().

◆ setParent()

void Fl_Preferences::Node::setParent ( Node parent)

Definition at line 1304 of file Fl_Preferences.cxx.

References child_, free(), Fl_Preferences::nameBuffer, and path_.

Referenced by find().

◆ setRoot()

void Fl_Preferences::Node::setRoot ( RootNode r)
inline

Definition at line 225 of file Fl_Preferences.H.

Referenced by Fl_Preferences::Fl_Preferences().

◆ updateIndex()

void Fl_Preferences::Node::updateIndex ( )
private

Definition at line 1573 of file Fl_Preferences.cxx.

◆ write()

int Fl_Preferences::Node::write ( FILE *  f)

Definition at line 1273 of file Fl_Preferences.cxx.

References f, and Fl_Preferences::name().

Member Data Documentation

◆ @15

union { ... }

◆ child_

Node* Fl_Preferences::Node::child_
private

Definition at line 193 of file Fl_Preferences.H.

Referenced by remove(), and setParent().

◆ dirty_

unsigned char Fl_Preferences::Node::dirty_
private

Definition at line 201 of file Fl_Preferences.H.

Referenced by remove().

◆ entry_

Entry* Fl_Preferences::Node::entry_
private

Definition at line 199 of file Fl_Preferences.H.

◆ index_

Node** Fl_Preferences::Node::index_
private

Definition at line 205 of file Fl_Preferences.H.

◆ indexed_

unsigned char Fl_Preferences::Node::indexed_
private

Definition at line 203 of file Fl_Preferences.H.

◆ lastEntrySet

int Fl_Preferences::Node::lastEntrySet = -1
static

Definition at line 211 of file Fl_Preferences.H.

◆ nEntry_

int Fl_Preferences::Node::nEntry_
private

Definition at line 200 of file Fl_Preferences.H.

◆ NEntry_

int Fl_Preferences::Node::NEntry_
private

Definition at line 200 of file Fl_Preferences.H.

◆ next_

Node * Fl_Preferences::Node::next_
private

◆ NIndex_

int Fl_Preferences::Node::NIndex_
private

Definition at line 206 of file Fl_Preferences.H.

◆ nIndex_

int Fl_Preferences::Node::nIndex_
private

Definition at line 206 of file Fl_Preferences.H.

◆ parent_

Node* Fl_Preferences::Node::parent_

Definition at line 195 of file Fl_Preferences.H.

◆ path_

char* Fl_Preferences::Node::path_
private

Definition at line 198 of file Fl_Preferences.H.

Referenced by setParent().

◆ root_

RootNode* Fl_Preferences::Node::root_

Definition at line 196 of file Fl_Preferences.H.

Referenced by findRoot().

◆ top_

unsigned char Fl_Preferences::Node::top_
private

Definition at line 202 of file Fl_Preferences.H.

Referenced by findRoot().


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