|
CXXR (C++ R)
|
String object not held in a cache. More...
#include <UncachedString.h>


Public Member Functions | |
| UncachedString (size_t sz, cetype_t encoding=CE_NATIVE) | |
| Create an UncachedString object, leaving its contents uninitialized. | |
| UncachedString (const std::string &str, cetype_t encoding=CE_NATIVE) | |
| Create an UncachedString object from a std::string. | |
| char * | ptr () |
| Provide read-write access to the string. | |
| const char * | typeName () const |
| Name within R of this type of object. | |
Static Public Member Functions | |
| static const char * | staticTypeName () |
| The name by which this type is known in R. | |
String object not held in a cache.
Unlike CachedString objects, at any one time more than one UncachedString with the same text and encoding may exist, and the text and encoding of an UncachedString may duplicate that of a CachedString. Moreover, the content and encoding of an UncachedString may be modified after it has been constructed; however, since the length may not be modified, this is of limited usefulness.
| CXXR::UncachedString::UncachedString | ( | size_t | sz, |
| cetype_t | encoding = CE_NATIVE |
||
| ) | [inline, explicit] |
Create an UncachedString object, leaving its contents uninitialized.
| sz | Number of elements required. Zero is permissible. |
| encoding | The encoding of the required CachedString. Only CE_NATIVE, CE_UTF8 or CE_LATIN1 are permitted in this context (checked). |
| UncachedString::UncachedString | ( | const std::string & | str, |
| cetype_t | encoding = CE_NATIVE |
||
| ) | [explicit] |
Create an UncachedString object from a std::string.
| str | The std::string whose text is to be copied into the constructed UncachedString. (Embedded null characters are permissible.) |
| encoding | The encoding of the required CachedString. Only CE_NATIVE, CE_UTF8 or CE_LATIN1 are permitted in this context (checked). |
| char* CXXR::UncachedString::ptr | ( | ) | [inline] |
Provide read-write access to the string.
| static const char* CXXR::UncachedString::staticTypeName | ( | ) | [inline, static] |
The name by which this type is known in R.
Reimplemented from CXXR::String.
| const char * UncachedString::typeName | ( | ) | const [virtual] |
Name within R of this type of object.
Reimplemented from CXXR::RObject.
1.7.3