RenameList Class Reference

#include <datadescriptiondefinition_include.h>

Public Member Functions

 RenameList (const RenameList *parent=nullptr)
 
Result< void > Add (const CString &from, const CString &to)
 
Result< InternedIdRename (const InternedId &original) const
 

Private Types

using Pattern = Tuple< CString, CString, Bool >
 

Static Private Member Functions

static Pattern ToPattern (const CString &str)
 

Private Attributes

BaseArray< Tuple< Pattern, Pattern > > _list
 
const RenameList *const _parent
 

Member Typedef Documentation

◆ Pattern

using Pattern = Tuple<CString, CString, Bool>
private

Constructor & Destructor Documentation

◆ RenameList()

RenameList ( const RenameList parent = nullptr)

Member Function Documentation

◆ Add()

Result<void> Add ( const CString from,
const CString to 
)

◆ Rename()

Result<InternedId> Rename ( const InternedId original) const

◆ ToPattern()

static Pattern ToPattern ( const CString str)
staticprivate

Member Data Documentation

◆ _list

BaseArray<Tuple<Pattern, Pattern> > _list
private

◆ _parent

const RenameList* const _parent
private