FemtoScan Online SDK Documentation

Home :: FsOnlineSDK :: fmutl classes

class smart_string

? ^ 
    extends FSAllocator as public

Self-managed string pointers.
Source:
../fmutl/smart_string.h:11
Author:
ATC
Version:
1.0

Contents

^ 
EntityTypeScopeShort Description
~smart_stringdestructor public Standart destructor.
smart_stringconstructor public Default constructor.
smart_stringconstructor public Copy constructor.
smart_stringconstructor public Constructor from C-style string or buffer.
c_strmethod public C-style const char pointer (added for compatibility with std::string)
operator =operator public Copy assignment operator.
operator ==operator public Equality operator.
operator const char *operator public Cast to const char pointer operator.

destructor ~smart_string

? ^  > 
Standart destructor.
Source:
../fmutl/smart_string.h:37
Code:
public virtual ~ smart_string ( )

constructor smart_string

? ^  < > 
Default constructor.
Source:
../fmutl/smart_string.h:17
Code:
public smart_string ( )

constructor smart_string

? ^  < > 
Copy constructor.
Source:
../fmutl/smart_string.h:23
Param:
X source string to copy.
Code:
public smart_string ( const smart_string & X )

constructor smart_string

? ^  < > 
Constructor from C-style string or buffer.
Source:
../fmutl/smart_string.h:32
Params:
_ptr pointer to the source buffer.
size size of the buffer, if equal to -1, then string is considered zero-terminated and size is calculated automatically
Code:
public smart_string ( const char * _ptr ,
unsigned size = - 1 )

method c_str

? ^  < > 
C-style const char pointer (added for compatibility with std::string)
Source:
../fmutl/smart_string.h:53
Code:
public const char * c_str ( ) const

operator =

? ^  < > 
Copy assignment operator.
Source:
../fmutl/smart_string.h:43
Param:
X string to copy.
Code:
public smart_string & operator = ( const smart_string & X )

operator ==

? ^  < > 
Equality operator.
Source:
../fmutl/smart_string.h:59
Returns:
true if strings are equal (!strcmp(*this,X)==0)
Code:
public bool operator == ( const smart_string & X ) const

operator const char *

? ^  < > 
Cast to const char pointer operator.
Source:
../fmutl/smart_string.h:48
Code:
public operator const char * ( ) const

(C) Advanced Technologies Center, 2002-2006
For support contact us at fsdev@nanoscopy.net