Enhanced C#
Language of your choice: library documentation
Properties | Public Member Functions | Protected fields | List of all members
Loyc.HashTags< ValueT > Class Template Reference

An implementation of IAttributes that can hold one attribute before allocating any memory for a hashtable. It is intended to be used as a base class but can be used on its own. More...


Source file:
Inheritance diagram for Loyc.HashTags< ValueT >:
Loyc.ITags< ValueT >

Remarks

An implementation of IAttributes that can hold one attribute before allocating any memory for a hashtable. It is intended to be used as a base class but can be used on its own.

Properties

IDictionary< Symbol, ValueT > Tags [get]
 
int? TagCount [get]
 
- Properties inherited from Loyc.ITags< ValueT >
IDictionary< Symbol, T > Tags [get]
 Returns a dictionary that can be used to store additional state beyond the standard content of the object. More...
 

Public Member Functions

 HashTags (HashTags< ValueT > original)
 
ValueT GetTag (string key)
 
ValueT GetTag (Symbol key)
 
void SetTag (string key, ValueT val)
 
void SetTag (Symbol key, ValueT val)
 
bool RemoveTag (string key)
 
bool RemoveTag (Symbol key)
 
bool HasTag (string key)
 
bool HasTag (Symbol key)
 

Protected fields

Symbol _cachedAttrKey
 
ValueT _cachedAttrValue
 
Dictionary< Symbol, ValueT > _attrs