SNAP Library , Developer Reference  2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TSStr Class Reference

#include <bd.h>

List of all members.

Public Member Functions

 TSStr ()
 TSStr (const TSStr &SStr)
 TSStr (const char *_Bf)
 ~TSStr ()
TSStroperator= (const TSStr &SStr)
char * CStr ()
const char * CStr () const
bool Empty () const
int Len () const

Private Attributes

char * Bf

Detailed Description

Definition at line 514 of file bd.h.


Constructor & Destructor Documentation

TSStr::TSStr ( ) [inline]

Definition at line 518 of file bd.h.

References Bf.

         : Bf(NULL){
    Bf=new char[0+1]; Bf[0]=0;}
TSStr::TSStr ( const TSStr SStr) [inline]

Definition at line 520 of file bd.h.

References Bf.

                          : Bf(NULL){
    Bf=new char[strlen(SStr.Bf)+1]; strcpy(Bf, SStr.Bf);}
TSStr::TSStr ( const char *  _Bf) [inline]

Definition at line 522 of file bd.h.

References Bf.

                        : Bf(NULL){
    Bf=new char[strlen(_Bf)+1]; strcpy(Bf, _Bf);}
TSStr::~TSStr ( ) [inline]

Definition at line 524 of file bd.h.

References Bf.

{delete[] Bf;}

Member Function Documentation

char* TSStr::CStr ( ) [inline]

Definition at line 531 of file bd.h.

References Bf.

Referenced by TFRnd::GetFNm(), TSBase::GetSNm(), TFRnd::TFRnd(), and TStr::TStr().

{return Bf;}

Here is the caller graph for this function:

const char* TSStr::CStr ( ) const [inline]

Definition at line 532 of file bd.h.

References Bf.

{return Bf;}
bool TSStr::Empty ( ) const [inline]

Definition at line 533 of file bd.h.

References Bf.

{return Bf[0]==0;}
int TSStr::Len ( ) const [inline]

Definition at line 534 of file bd.h.

References Bf.

{return int(strlen(Bf));}
TSStr& TSStr::operator= ( const TSStr SStr) [inline]

Definition at line 526 of file bd.h.

References Bf.

                                     {
    if (this!=&SStr){
      delete[] Bf; Bf=new char[strlen(SStr.Bf)+1]; strcpy(Bf, SStr.Bf);}
    return *this;}

Member Data Documentation

char* TSStr::Bf [private]

Definition at line 516 of file bd.h.

Referenced by CStr(), Empty(), Len(), operator=(), TSStr(), and ~TSStr().


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