SNAP Library 2.1, User Reference  2013-09-25 10:47:25
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.

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

Definition at line 520 of file bd.h.

                          : 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.

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

Definition at line 524 of file bd.h.

{delete[] Bf;}

Member Function Documentation

char* TSStr::CStr ( ) [inline]

Definition at line 531 of file bd.h.

{return Bf;}
const char* TSStr::CStr ( ) const [inline]

Definition at line 532 of file bd.h.

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

Definition at line 533 of file bd.h.

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

Definition at line 534 of file bd.h.

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

Definition at line 526 of file bd.h.

                                     {
    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.


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