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


Public Member Functions | |
| const std::string & | stdstring () const |
| Access encapsulated std::string. | |
| const char * | typeName () const |
| Name within R of this type of object. | |
Static Public Member Functions | |
| static CachedString * | blank () |
| Blank string. | |
| static CachedString * | obtain (const std::string &str, cetype_t encoding=CE_NATIVE) |
| Get a pointer to a CachedString object. | |
| static const char * | staticTypeName () |
| The name by which this type is known in R. | |
Friends | |
| class | SchwarzCounter< CachedString > |
| class | Symbol |
String object held in a cache.
At any one time, at most one CachedString object with a particular text and encoding may exist.
| static CachedString* CXXR::CachedString::blank | ( | ) | [inline, static] |
Blank string.
const pointer to the string "". | CachedString * CachedString::obtain | ( | const std::string & | str, |
| cetype_t | encoding = CE_NATIVE |
||
| ) | [static] |
Get a pointer to a CachedString object.
If no CachedString with the specified text and encoding currently exists, one will be created, and a pointer to it returned. Otherwise a pointer to the existing CachedString will be returned.
| str | The text of the required CachedString. (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). Note that if str contains no non-ASCII characters, then the encoding is set to CE_NATIVE regardless of the value of the encoding parameter. |
| static const char* CXXR::CachedString::staticTypeName | ( | ) | [inline, static] |
The name by which this type is known in R.
Reimplemented from CXXR::String.
| const std::string& CXXR::CachedString::stdstring | ( | ) | const [inline] |
Access encapsulated std::string.
| const char * CachedString::typeName | ( | ) | const [virtual] |
Name within R of this type of object.
Reimplemented from CXXR::RObject.
1.7.3