A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pdb::String Class Reference

#include <PDBString.h>

+ Collaboration diagram for pdb::String:

Public Member Functions

 String ()
 
 ~String ()
 
Stringoperator= (const char *toMe)
 
Stringoperator= (const std::string &s)
 
Stringoperator= (const String &s)
 
 String (const char *fromMe)
 
 String (const char *s, size_t n)
 
 String (const std::string &s)
 
 String (const String &s)
 
char & operator[] (int whichOne)
 
 operator std::string () const
 
char * c_str () const
 
size_t size () const
 
size_t hash () const
 
bool operator== (const String &toMe)
 
bool operator== (const char *toMe)
 
bool operator== (const std::string &toMe)
 
bool operator!= (const String &toMe)
 
bool operator!= (const std::string &toMe)
 
bool operator!= (const char *toMe)
 
bool endsWith (const std::string &suffix)
 

Private Member Functions

Handle< char > & data () const
 

Private Attributes

char storage [sizeof(Handle< char >)]
 

Friends

std::ostream & operator<< (std::ostream &stream, const String &printMe)
 

Detailed Description

Definition at line 43 of file PDBString.h.

Constructor & Destructor Documentation

pdb::String::String ( )
inline

Definition at line 37 of file PDBString.cc.

+ Here is the call graph for this function:

pdb::String::~String ( )
inline

Definition at line 84 of file PDBString.cc.

+ Here is the call graph for this function:

pdb::String::String ( const char *  fromMe)
inline

Definition at line 134 of file PDBString.cc.

+ Here is the call graph for this function:

pdb::String::String ( const char *  s,
size_t  n 
)
inline

Definition at line 147 of file PDBString.cc.

+ Here is the call graph for this function:

pdb::String::String ( const std::string &  s)
inline

Definition at line 162 of file PDBString.cc.

+ Here is the call graph for this function:

pdb::String::String ( const String s)
inline

Definition at line 69 of file PDBString.cc.

+ Here is the call graph for this function:

Member Function Documentation

char * pdb::String::c_str ( ) const
inline

Definition at line 184 of file PDBString.cc.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Handle< char > & pdb::String::data ( ) const
inlineprivate

Definition at line 33 of file PDBString.cc.

+ Here is the caller graph for this function:

bool pdb::String::endsWith ( const std::string &  suffix)
inline

Definition at line 232 of file PDBString.cc.

+ Here is the call graph for this function:

size_t pdb::String::hash ( ) const
inline

Definition at line 45 of file PDBString.cc.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pdb::String::operator std::string ( ) const
inline

Definition at line 180 of file PDBString.cc.

bool pdb::String::operator!= ( const String toMe)
inline

Definition at line 219 of file PDBString.cc.

+ Here is the call graph for this function:

bool pdb::String::operator!= ( const std::string &  toMe)
inline

Definition at line 223 of file PDBString.cc.

+ Here is the call graph for this function:

bool pdb::String::operator!= ( const char *  toMe)
inline

Definition at line 227 of file PDBString.cc.

+ Here is the call graph for this function:

String & pdb::String::operator= ( const char *  toMe)
inline

Definition at line 50 of file PDBString.cc.

+ Here is the call graph for this function:

String & pdb::String::operator= ( const std::string &  s)
inline

Definition at line 115 of file PDBString.cc.

+ Here is the call graph for this function:

String & pdb::String::operator= ( const String s)
inline

Definition at line 90 of file PDBString.cc.

+ Here is the call graph for this function:

bool pdb::String::operator== ( const String toMe)
inline

Definition at line 207 of file PDBString.cc.

+ Here is the call graph for this function:

bool pdb::String::operator== ( const char *  toMe)
inline

Definition at line 215 of file PDBString.cc.

+ Here is the call graph for this function:

bool pdb::String::operator== ( const std::string &  toMe)
inline

Definition at line 211 of file PDBString.cc.

+ Here is the call graph for this function:

char & pdb::String::operator[] ( int  whichOne)
inline

Definition at line 176 of file PDBString.cc.

+ Here is the call graph for this function:

size_t pdb::String::size ( ) const
inline

Definition at line 193 of file PDBString.cc.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const String printMe 
)
friend

Definition at line 201 of file PDBString.cc.

Member Data Documentation

char pdb::String::storage[sizeof(Handle< char >)]
private

Definition at line 45 of file PDBString.h.


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