FemtoScan Online SDK Documentation
    extends FSAllocator as public
 Self-managed string pointers.
- Source:
 - ../fmutl/smart_string.h:11
 
- Author:
 - ATC
 
- Version:
 - 1.0
 
| Entity | Type | Scope | Short Description | 
| ~smart_string | destructor  | public |  Standart destructor.
 | 
| smart_string | constructor  | public |  Default constructor.
 | 
| smart_string | constructor  | public |  Copy constructor.
 | 
| smart_string | constructor  | public |  Constructor from C-style string or buffer.
 | 
| c_str | method  | 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:
 - 
 
constructor smart_string | ? ^ 
< >  | 
 Copy constructor.
- Source:
 - ../fmutl/smart_string.h:23
 
- Param:
 
- 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 ) | 
 C-style const char pointer (added for compatibility with std::string)
- Source:
 - ../fmutl/smart_string.h:53
 
- Code:
 | public const char * c_str ( |  ) const | 
 Copy assignment operator.
- Source:
 - ../fmutl/smart_string.h:43
 
- Param:
 
- Code:
 | public smart_string & operator = ( |  const smart_string & X ) | 
 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