SNAP Library 3.0, Developer Reference  2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TSStr Class Reference

#include <bd.h>

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.

518  : Bf(NULL){
519  Bf=new char[0+1]; Bf[0]=0;}
char * Bf
Definition: bd.h:516
TSStr::TSStr ( const TSStr SStr)
inline

Definition at line 520 of file bd.h.

References Bf.

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

Definition at line 522 of file bd.h.

References Bf.

522  : Bf(NULL){
523  Bf=new char[strlen(_Bf)+1]; strcpy(Bf, _Bf);}
char * Bf
Definition: bd.h:516
TSStr::~TSStr ( )
inline

Definition at line 524 of file bd.h.

References Bf.

524 {delete[] Bf;}
char * Bf
Definition: bd.h:516

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().

531 {return Bf;}
char * Bf
Definition: bd.h:516

Here is the caller graph for this function:

const char* TSStr::CStr ( ) const
inline

Definition at line 532 of file bd.h.

References Bf.

532 {return Bf;}
char * Bf
Definition: bd.h:516
bool TSStr::Empty ( ) const
inline

Definition at line 533 of file bd.h.

References Bf.

533 {return Bf[0]==0;}
char * Bf
Definition: bd.h:516
int TSStr::Len ( ) const
inline

Definition at line 534 of file bd.h.

References Bf.

534 {return int(strlen(Bf));}
char * Bf
Definition: bd.h:516
TSStr& TSStr::operator= ( const TSStr SStr)
inline

Definition at line 526 of file bd.h.

References Bf.

526  {
527  if (this!=&SStr){
528  delete[] Bf; Bf=new char[strlen(SStr.Bf)+1]; strcpy(Bf, SStr.Bf);}
529  return *this;}
char * Bf
Definition: bd.h:516

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: