C# 클래스 Agnos.HeteroMap

an heterogeneous map. it is basically a regular Dictionary, but it associates with each entry a packer for the key and a packer for the value. for "simple types", for which a packer can be inferred, you may use the 2-argument version of Add() or the [] operator, but for all other types, you should use the 4-argument version of Add(), where you specify the packers for the key and value. note: this class implements IDictionary, so it can be used by third-party code, but only for "simple types", for which a packer can be inferred
상속: IDictionary
파일 보기 프로젝트 열기: tomerfiliba/agnos 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
data System.Collections.Hashtable
fields FieldInfo>.Dictionary

공개 메소드들

메소드 설명
Add ( Object key, Object value ) : void

a Version of Add that implements IDictionary.Add. It attempts to infer the packers for the key and for the value

Add ( Object key, Object value, Packers valpacker ) : void

specialized version of Add that attempts to infer the packer for the key, but the packer for the value must be provided

Add ( Object key, Packers keypacker, Object value, Packers valpacker ) : void

Adds the given given value (with the given value-packer) under the given key (with the given key packer)

Add ( String key, String value ) : void

specialized version of Add

Add ( String key, int value ) : void

specialized version of Add

Add ( int key, String value ) : void

specialized version of Add

Add ( int key, int value ) : void

specialized version of Add

AddNewMap ( String name ) : HeteroMap

Adds a new HeteroMap instance to this HeteroMap under the given key This is a convenience function, used by the Agnos binding code, but it's not expected to be useful to the general public.

Clear ( ) : void
Contains ( Object key ) : bool
ContainsKey ( Object key ) : bool
ContainsValue ( Object value ) : bool
CopyTo ( Array array, int arrayIndex ) : void
GetEnumerator ( ) : IDictionaryEnumerator
HeteroMap ( ) : System
HeteroMap ( HeteroMap other ) : System
HeteroMap ( int capacity ) : System
Remove ( object key ) : void
ToString ( ) : string
TryGetValue ( Object key, Object &value ) : bool
Update ( HeteroMap other ) : void
getKeyPacker ( Object key ) : Packers.AbstractPacker

returns the key-packer associated with the given vey

getValuePacker ( Object key ) : Packers.AbstractPacker

returns the value-packer associated with the given vey

this ( Object key ) : Object

보호된 메소드들

메소드 설명
ToStringHelper ( String indent, StringBuilder sb ) : void
getPackerForBuiltinType ( object val ) : Packers.AbstractPacker

비공개 메소드들

메소드 설명
IEnumerable ( ) : IEnumerator

메소드 상세

Add() 공개 메소드

a Version of Add that implements IDictionary.Add. It attempts to infer the packers for the key and for the value
public Add ( Object key, Object value ) : void
key Object
value Object
리턴 void

Add() 공개 메소드

specialized version of Add that attempts to infer the packer for the key, but the packer for the value must be provided
public Add ( Object key, Object value, Packers valpacker ) : void
key Object
value Object
valpacker Packers
리턴 void

Add() 공개 메소드

Adds the given given value (with the given value-packer) under the given key (with the given key packer)
public Add ( Object key, Packers keypacker, Object value, Packers valpacker ) : void
key Object /// The key (any object) ///
keypacker Packers /// The packer for the key (an AbstractPacker) ///
value Object /// The value (any object) ///
valpacker Packers /// The packer for the value (an AbstractPacker) ///
리턴 void

Add() 공개 메소드

specialized version of Add
public Add ( String key, String value ) : void
key String
value String
리턴 void

Add() 공개 메소드

specialized version of Add
public Add ( String key, int value ) : void
key String
value int
리턴 void

Add() 공개 메소드

specialized version of Add
public Add ( int key, String value ) : void
key int
value String
리턴 void

Add() 공개 메소드

specialized version of Add
public Add ( int key, int value ) : void
key int
value int
리턴 void

AddNewMap() 공개 메소드

Adds a new HeteroMap instance to this HeteroMap under the given key This is a convenience function, used by the Agnos binding code, but it's not expected to be useful to the general public.
public AddNewMap ( String name ) : HeteroMap
name String /// The key ///
리턴 HeteroMap

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

Contains() 공개 메소드

public Contains ( Object key ) : bool
key Object
리턴 bool

ContainsKey() 공개 메소드

public ContainsKey ( Object key ) : bool
key Object
리턴 bool

ContainsValue() 공개 메소드

public ContainsValue ( Object value ) : bool
value Object
리턴 bool

CopyTo() 공개 메소드

public CopyTo ( Array array, int arrayIndex ) : void
array System.Array
arrayIndex int
리턴 void

GetEnumerator() 공개 메소드

public GetEnumerator ( ) : IDictionaryEnumerator
리턴 IDictionaryEnumerator

HeteroMap() 공개 메소드

public HeteroMap ( ) : System
리턴 System

HeteroMap() 공개 메소드

public HeteroMap ( HeteroMap other ) : System
other HeteroMap
리턴 System

HeteroMap() 공개 메소드

public HeteroMap ( int capacity ) : System
capacity int
리턴 System

Remove() 공개 메소드

public Remove ( object key ) : void
key object
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToStringHelper() 보호된 메소드

protected ToStringHelper ( String indent, StringBuilder sb ) : void
indent String
sb StringBuilder
리턴 void

TryGetValue() 공개 메소드

public TryGetValue ( Object key, Object &value ) : bool
key Object
value Object
리턴 bool

Update() 공개 메소드

public Update ( HeteroMap other ) : void
other HeteroMap
리턴 void

getKeyPacker() 공개 메소드

returns the key-packer associated with the given vey
public getKeyPacker ( Object key ) : Packers.AbstractPacker
key Object
리턴 Packers.AbstractPacker

getPackerForBuiltinType() 보호된 메소드

protected getPackerForBuiltinType ( object val ) : Packers.AbstractPacker
val object
리턴 Packers.AbstractPacker

getValuePacker() 공개 메소드

returns the value-packer associated with the given vey
public getValuePacker ( Object key ) : Packers.AbstractPacker
key Object
리턴 Packers.AbstractPacker

this() 공개 메소드

public this ( Object key ) : Object
key Object
리턴 Object

프로퍼티 상세

data 보호되어 있는 프로퍼티

protected Hashtable,System.Collections data
리턴 System.Collections.Hashtable

fields 보호되어 있는 프로퍼티

protected Dictionary fields
리턴 FieldInfo>.Dictionary