#include <opp_string.h>
In simulation models it is better to use std::string or const char * instead.
opp_string has only one data member, a char* pointer. Allocation and deallocation of the contents takes place via opp_strdup() and operator delete.
Public Member Functions | |
opp_string () | |
opp_string (const char *s) | |
opp_string (const opp_string &s) | |
~opp_string () | |
const char * | c_str () const |
bool | empty () const |
char * | buffer () |
char * | reserve (unsigned size) |
const char * | operator= (const char *s) |
opp_string & | operator= (const opp_string &s) |
|
Constructor.
|
|
Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Returns pointer to the internal buffer where the string is stored. It is allowed to write into the string via this pointer, but the length of the string should not be exceeded. |
|
Return pointer to the string.
|
|
Null (empty) string or not.
|
|
Assignment.
|
|
Deletes the old value and opp_strdup()'s the new value to create the object's own copy.
|
|
Allocates a buffer of the given size.
|