|
| SymbolSet (void) |
|
| SymbolSet (const TBaseSet< std::string > &rOtherSet) |
|
| SymbolSet (const std::string &rFilename, const std::string &rLabel="SymbolSet") |
|
virtual | ~SymbolSet (void) |
|
bool | Valid (const std::string &symbol) const |
|
bool | Insert (const std::string &symbol) |
|
Idx | Signature (void) const |
|
std::string | Str (const std::string &symbol) const |
|
| TBaseSet (void) |
|
| TBaseSet (const TBaseSet &rOtherSet) |
|
| TBaseSet (const std::string &rFilename, const std::string &rLabel="BaseSet") |
|
virtual | ~TBaseSet (void) |
|
const std::string & | Name (void) const |
|
void | Name (const std::string &rName) |
|
virtual void | Clear (void) |
|
Idx | Size (void) const |
|
bool | Empty (void) const |
|
virtual std::string | Str (const std::string &rElem) const |
|
Iterator | Begin (void) const |
|
Iterator | End (void) const |
|
virtual bool | Valid (const std::string &rElem) const |
|
virtual bool | Erase (const std::string &rElem) |
|
virtual Iterator | Erase (const Iterator &pos) |
|
virtual void | EraseSet (const TBaseSet &rOtherSet) |
|
virtual void | RestrictSet (const TBaseSet &rOtherSet) |
|
virtual bool | Disjoint (const TBaseSet &rOtherSet) const |
|
virtual bool | Insert (const std::string &rElem) |
|
virtual Iterator | Inject (const Iterator &pos, const std::string &rElem) |
|
virtual void | Inject (const std::string &rElem) |
|
virtual void | InsertSet (const TBaseSet &rOtherSet) |
|
bool | Exists (const std::string &rElem) const |
|
Iterator | Find (const std::string &rElem) const |
|
TBaseSet | operator+ (const TBaseSet &rOtherSet) const |
|
TBaseSet | operator- (const TBaseSet &rOtherSet) const |
|
TBaseSet | operator* (const TBaseSet &rOtherSet) const |
|
bool | operator<= (const TBaseSet &rOtherSet) const |
|
bool | operator>= (const TBaseSet &rOtherSet) const |
|
bool | operator< (const TBaseSet &rOtherSet) const |
|
void | DValid (const std::string &rMessage="") const |
|
void | Detach (DetachMode flag=AttrIncl) const |
|
void | Lock (void) const |
|
virtual const AttributeVoid * | AttributeType (void) const |
|
virtual bool | AttributeTest (const Type &rAttr) const |
|
virtual TBaseSet & | AssignWithoutAttributes (const TBaseSet &rSourceSet) |
|
virtual void | Attributes (const TBaseSet &rOtherSet) |
|
Idx | AttributesSize (void) const |
|
void | ClearAttributes (void) |
|
bool | EqualAttributes (const TBaseSet &rOtherSet) const |
|
virtual AttributeVoid * | Attributep (const std::string &rElem) |
|
virtual const AttributeVoid & | Attribute (const std::string &rElem) const |
|
virtual void | Attribute (const std::string &rElem, const Type &rAttr) |
|
virtual void | AttributeTry (const std::string &rElem, const Type &rAttr) |
|
virtual void | ClrAttribute (const std::string &rElem) |
|
virtual void | XElementTag (const std::string &rTag) |
|
virtual const std::string & | TypeName (void) const |
|
virtual void | TypeName (const std::string &rType) |
|
Type & | operator= (const Type &rSrc) |
|
bool | operator== (const Type &rOther) const |
|
bool | operator!= (const Type &rOther) const |
|
| Type (void) |
|
| Type (const Type &rType) |
|
virtual | ~Type (void) |
|
virtual Type * | New (void) const |
|
virtual Type * | Copy (void) const |
|
virtual const Type * | Cast (const Type *pOther) const |
|
virtual Type & | Assign (const Type &rSrc) |
|
Type & | operator= (const Type &rSrc) |
|
virtual bool | Equal (const Type &rOther) const |
|
bool | operator== (const Type &rOther) const |
|
bool | operator!= (const Type &rOther) const |
|
void | Write (const Type *pContext=0) const |
|
void | Write (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const |
|
void | Write (const std::string &pFileName, std::ios::openmode openmode) const |
|
void | Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
|
virtual void | XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const |
|
void | XWrite (const Type *pContext=0) const |
|
void | XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
|
std::string | ToString (const std::string &rLabel="", const Type *pContext=0) const |
|
std::string | ToText (const std::string &rLabel="", const Type *pContext=0) const |
|
void | DWrite (const Type *pContext=0) const |
|
void | DWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const |
|
void | DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
|
void | SWrite (TokenWriter &rTw) const |
|
void | SWrite (void) const |
|
std::string | ToSText (void) const |
|
void | Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) |
|
void | FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0) |
|
void | Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
|
|
void | DoAssign (const SymbolSet &rSource) |
|
void | DoWrite (TokenWriter &tw, const std::string &rLabel="", const Type *pContext=0) const |
|
void | DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
|
virtual const std::string & | XElementTag (void) const |
|
virtual void | DoDWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
|
virtual void | DoSWrite (TokenWriter &rTw) const |
|
void | DoAssign (const TBaseSet &rSourceSet) |
|
bool | DoEqual (const TBaseSet &rOtherSet) const |
|
void | DoAttribute (const std::string &rElem, const Type *pAttr) |
|
const AttributeVoid * | DoAttribute (const std::string &rElem) const |
|
AttributeVoid * | DoAttributeExplicit (const std::string &rElem) |
|
TBaseSet< std::string, std::less< std::string > >::Iterator | ThisIterator (const typename std::set< std::string, std::less< std::string > >::const_iterator &sit) const |
|
void | RelinkClients (void) |
|
void | AttachClient (TBaseSet *pRef) const |
|
void | DetachClient (TBaseSet *pRef) const |
|
void | AttachIterator (Iterator *pFit) const |
|
void | DetachIterator (Iterator *pFit) const |
|
virtual const TypeDefinition * | TypeDefinitionp (void) const |
|
void | DoAssign (const Type &rSrc) |
|
bool | DoEqual (const Type &rOther) const |
|
virtual void | DoXWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
|
virtual Token | XBeginTag (const std::string &rLabel="", const std::string &rFallbackLabel="") const |
|
|
typedef std::set< std::string, std::less< std::string > >::iterator | iterator |
|
typedef std::set< std::string, std::less< std::string > >::const_iterator | const_iterator |
|
typedef std::map< std::string, AttributeVoid * >::iterator | aiterator |
|
typedef std::map< std::string, AttributeVoid * >::const_iterator | const_aiterator |
|
std::string | mMyName |
|
std::set< std::string, std::less< std::string > > * | pSet |
|
std::set< std::string, std::less< std::string > > * | mpSet |
|
std::map< std::string, AttributeVoid * > * | pAttributes |
|
std::map< std::string, AttributeVoid * > * | mpAttributes |
|
TBaseSet< std::string, std::less< std::string > > * | pHostSet |
|
std::list< TBaseSet< std::string, std::less< std::string > > * >::iterator | mClientRecord |
|
std::list< TBaseSet< std::string, std::less< std::string > > * > * | mpClients |
|
bool | mDetached |
|
bool | mLocked |
|
std::set< Iterator * > | mIterators |
|
std::string | mXElementTagDef |
|
static std::set< std::string, std::less< std::string > > | msEmptySet |
|
static std::map< std::string, AttributeVoid * > | msEmptyAttributes |
|
Set of symbols.
The class is built on top of the faudes version TBaseSet of STL sets. It provides the essentials of the STL interface and plus token based file IO. Invalid iterators throw an exception (id 62) when used as an argument to a SymbolSet function. If the macro FAUDES_CHECKED is defined, the attempt to insert an invalid symbol an exception (id 61).
Note that a symbol set holds a plain set of valid faudes symbols with no indices or symboltable associated. If you are looking for a set of items with mandatory symbolic names you most likely are better of with a NameSet or a TaNameSet. Currently, there is no attributed version of a SymbolSet.
The token IO format is demonstrated by the following example of a set with name "MySymbols"
<MySymbols>
"ASymbol"
"AnotherSymbol"
</MySymbols>
Note that you can read SymbolSet files to NameSets and vice versa.
Definition at line 70 of file cfl_symbolset.h.