nany
Public Member Functions | List of all members
ny::StringRefs Struct Referencefinal

Container for minimizing memory use of duplicate strings. More...

#include <stringrefs.h>

Public Member Functions

 StringRefs (StringRefs &&)=default
 
 StringRefs (const StringRefs &)
 
AnyString refstr (const AnyString &text)
 Add a new entry within the catalog.
 
uint32_t ref (const AnyString &text)
 Get the unique id of a string.
 
bool exists (const AnyString &text) const
 Get if a given string is already indexed.
 
void clear ()
 Clear the container.
 
AnyString operator[] (uint32_t ix) const
 Retrieve a stored string from its index.
 
StringRefsoperator= (const StringRefs &)
 
StringRefsoperator= (StringRefs &&)=default
 

Detailed Description

Container for minimizing memory use of duplicate strings.


The documentation for this struct was generated from the following files: