Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends
ipcStringNode Class Reference

#include <ipcStringList.h>

Collaboration diagram for ipcStringNode:
Collaboration graph

List of all members.

Public Member Functions

 ipcStringNode ()
const char * Value () const
PRBool Equals (const char *val) const
PRBool EqualsIgnoreCase (const char *val) const

Public Attributes

class ipcStringNodemNext

Private Member Functions

voidoperator new (size_t size, const char *str) CPP_THROW_NEW

Private Attributes

char mData [1]


class ipcStringList

Detailed Description

Definition at line 50 of file ipcStringList.h.

Constructor & Destructor Documentation

Definition at line 53 of file ipcStringList.h.


Member Function Documentation

PRBool ipcStringNode::Equals ( const char *  val) const [inline]

Definition at line 57 of file ipcStringList.h.

{ return strcmp(mData, val) == 0; }
PRBool ipcStringNode::EqualsIgnoreCase ( const char *  val) const [inline]

Definition at line 58 of file ipcStringList.h.

{ return PL_strcasecmp(mData, val) == 0; }

Here is the call graph for this function:

void * ipcStringNode::operator new ( size_t  size,
const char *  str 
) [private]

Definition at line 41 of file ipcStringList.cpp.

    int len = strlen(str);

    size += len;

    ipcStringNode *node = (ipcStringNode *) ::operator new(size);
    if (!node)
        return NULL;

    node->mNext = NULL;
    memcpy(node->mData, str, len);
    node->mData[len] = '\0';

    return node;

Here is the call graph for this function:

const char* ipcStringNode::Value ( ) const [inline]

Definition at line 55 of file ipcStringList.h.

{ return mData; }

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class ipcStringList [friend]

Definition at line 67 of file ipcStringList.h.

Member Data Documentation

char ipcStringNode::mData[1] [private]

Definition at line 65 of file ipcStringList.h.

Definition at line 60 of file ipcStringList.h.

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